Hi Gary, Yes that was the issue, and I should know this… Thanks for the help.
Regards Erik Från: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] För Gary Vidal Skickat: den 31 mars 2017 13:38 Till: general@developer.marklogic.com Ämne: Re: [MarkLogic Dev General] question about permissions 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