Hi, I think the problem now is that in 3.2, MarkLogic will not execute a document with the URI extension .xq. It needs to be .xqy. So when you go to that URL, it just displays the text document instead of treating it like an executable XQuery document.
Try changing the URI in the xdmp:document-load command to Tmp/browser.xqy. If you are running as admin, there is no need for the execute permissions (but you will need them for non-admin users to read and execute the document). Sorry, that was my error... -Danny -----Original Message----- From: Florent Georges [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 1:11 PM To: Danny Sokolsky; General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] Set the Modules and Documents DB to be thesame? Danny Sokolsky wrote: > I tried this and it worked (all run as a user with the > admin role) Thanks a lot for those useful explanations! I think I am quite close to have it running. Everything's fine now, except that when I access http://localhost:8003/browser.xq (8003 is the Tmp HTTP server I created for this test,) the server serves the browser.xq file itself. I've set the execute permission with: xdmp:document-add-permissions( "Tmp/browser.xq", xdmp:permission("admin", "execute") ) then: xdmp:get-current-user(), xdmp:document-get-permissions("Tmp/browser.xq") => admin <sec:permission xmlns:sec="http://marklogic.com/xdmp/security"> <sec:capability>execute</sec:capability> <sec:role-id>9324775496087773648</sec:role-id> </sec:permission> In the admin console, I checked the admin role is ticked for user admin. Did I miss something to set or to check? Regards, --drkm _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
