PDA

View Full Version : Session.js , run as web suser, names.nsf



roudoudou
19 Oct 2009, 4:48 AM
Dear all,

Is it necessary to run the extnd/3x/Session.js agent with the option "run as web user" ?

Because I'm using a secondary adress book for some external web users.

Whenever a external user try to open the main.html page there is this error :

{error: { query: "OpenAgent&db=mks-gva/mydatabase.nsf",
line: "Error 4060 on line 47",
msg: ""GETADDRESSBOOKS line 34 User XXX cannot open database names.nsf""}}

And we cannot enabling read access of Names.nsf for external web users for security reasons.

Tks in advance.

hirecules
24 Dec 2009, 10:17 AM
Would someone be able to reply to this query. I am having the same problem.

It's funny because the version 2 did not have this problem. But when I moved to beta 3, I get that issue.

Beta 3 works though when the user is "Anonymous"!!!! But this is not what it is supposed to be.

hirecules
26 Dec 2009, 8:29 AM
Folks,

There seems to be a workaround on this issue. I commented out the AddressBooks lookup:

' AddressBooks
' jsonText = jsonText + | "addressBooks" : | + getAddressBooks(session)
' jsonText = jsonText + SEP + nl


Jack, is there a particular reason that we need to lookup each address book on the server when running session.js?