Thanks Danny and Keith - your pointers led us in the right direction.
Indeed the problem had to do with permissions on documents and
directories. We had updated the permissions on all the documents by
reloading them using the correct user, but in the end the one remaining
quirk was that the root directory (/) had no permissions. This problem
was obscured by the fact that we could call
xdmp:directory-properties ("/") and get back some stuff, I guess for
documents included in that directory - this led us to believe (falsely)
that we had permission to read that directory...
but
xdmp:document-properties ("/") would not return anything.
-Mike
On 05/13/2011 12:34 PM, Danny Sokolsky wrote:
> You should not need any special permissions to run this, but you will only
> see the properties if:
>
> 1) you have a role corresponding to a read permission on the specified
> directory
>
> and
>
> 2) you have a role corresponding to a read permission on the URIs under that
> directory that have properties
>
> So this is not a privilege thing, it is a permissions thing.
>
> To start figuring this out, run the following (as admin) on the specified
> directory URI:
>
> xdmp:document-get-permissions("/your-dir-uri/")
>
> If there are no permissions on that URI, then only a user with the admin role
> can access it.
>
> -Danny
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Mike Sokolov
> Sent: Friday, May 13, 2011 9:24 AM
> To: General MarkLogic Developer Discussion
> Cc: Donal Boyle
> Subject: [MarkLogic Dev General] granting access to
> xdmp:directory-properties()
>
> How does one grant access to xdmp:directory-properties() to a user/role?
>
> None of our users except those with the "admin" role are able to execute
> this function, and it's not listed on the security page as a function to
> which you can grant access. Is it part of some other privilege?
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general