WebQueryOpen agent not running for Anonymous

It’s been a number of years since I did any Domino web development, so I apologize if this is a dumb question. I just can’t seem to get it working…

We recently went through a merger, but due to some complications we’re still in competition with the other company so their (our new) employees can only have reader access to our databases. We’re currently going about this by web-enabling some of our most-used systems. For now, anyway, we have not combined systems and they do not have Notes clients, nor do they have entries in the NAB, so they need to be able to access the web databases anonymously.

Here’s the issue: I have a webqueryopen agent that loops through a list of views to help create web navigation. This runs in a page that lives in one frame (I know, frames are so web 1.0, but we just don’t have time right now to learn all the new web stuff.)

Anonymous is in the ACL as Reader, and I have the agent set up to run on behalf of me - I have Manager access, so I would think that it should run without requiring a login. (The agent does not access any other databases that might not accept anonymous access.)

The content in the other frames displays with no problem when not logged in (i.e. hitting anonymously), but the frame containing the agent page displays the Domino server login form. What am I missing here?

Thanks,

Esther

Subject: WebQueryOpen agent not running for Anonymous

Obviously an access rights issue.

Couple of things to check:

Did the agent execute at all?

Are there any errors or suspicious entries in log.nsf or weblog.nsf?

Add some error checking to the code (Julian’s OpenLog makes basic error checking a snap).

Do you have the right to sign agents to run on behalf of someone else (not every admin necessarily has)?

Subject: RE: WebQueryOpen agent not running for Anonymous

Thanks for the response. It was a dumb mistake on my part - the page that calls the agent wasn’t set to allow public access. It works correctly now.

Subject: RE: WebQueryOpen agent not running for Anonymous

So, you don’t even grant them reader access, but rather access to public notes only? I like this approach in theory, but in practice, it can be pretty hard to find all dependencies (and then there are still e.g. shared fields, which are never available to public access users).