Hi,

Our developer is trying out xray, the XQuery test framework, and I've run
into a security problem.

According to the documentation the user needs a role with several execute
privileges: *xdmp:eval**, **xdmp:filesystem-directory**, *
*xdmp:filesystem-file**, **xdmp:invoke**, **xdmp:xslt-invoke. Our code is
not in the modules db.*

So, I've create a new role with these privileges and assigned that role to
the user, no problem.

But we keep getting the same error message:

500 Internal Server Error

SEC-PRIV: xdmp:filesystem-directory("Apps/theocom-maggie/app/test") -- Need
privilege: http://marklogic.com/xdmp/privileges/xdmp-filesystem-directory

in /xray/src/modules-filesystem.xqy, at 42:19,
in filesystem-directory-exists("Apps/theocom-maggie/app/test") [1.0-ml]

$dir = "Apps/theocom-maggie/app/test"

in /xray/src/modules-filesystem.xqy, at 16:8,
in modules-fs:get-modules("test", "") [1.0-ml]

$test-dir = "test"
$pattern = ""
$test-dir = "test"
$fs-dir = "Apps/theocom-maggie/app/test"

in /xray/src/modules.xqy, at 22:9,
in modules:get-modules("test", "") [1.0-ml]

$test-dir = "test"
$pattern = ""

in /xray/src/xray.xqy, at 17:32,
in xray:run-tests("test", (), (), "html") [1.0-ml]

$test-dir = "test"
$module-pattern = ()
$test-pattern = ()
$format = "html"

in /xray/, at 18:0 [1.0-ml]


Any ideas where I'm going wrong?

Thanks,

Chris

Christine Schwartz
Metadata Librarian and XML Database Administrator
Princeton Theological Seminary Library
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to