You have no document permissions. When you inserted the content you probably used the admin role which means all docs in database have no permissions. YOu can confirm this by just running xdmp:document-get-permissions($uri) on any document.
To solve this problem always load your content with permissions explicitly. If you dont have that luxury to reload you can use the task-server to spawn functions to add them. Make sure you have enough task queue depth on task server. let $perms := ( xdmp:permission("role","read"), ... ) return for $uri in cts:uris() return xdmp:spawn-function(function(){ xdmp:document-set-permissions($uri,$perms) }, <options xmlns="xdmp:eval"> <transaction-mode>update-auto-commit</transaction-mode> </options)
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general