Hi all,
I have created a non-admin user and given dls-user role.
And the user has default premessions (read,update,insert,execute) for the
dls-user role.
I have inserted a document using
dls:document-insert-and-manage(
"book.xml",
fn:true(),
$contents,
"creating document after permission change."
, xdmp:default-permissions())
It is executed successfully. I can view the document using
fn:doc("book.xml")
I am facing problem while trying to checkout the document using
dls:document-checkout("book.xml",fn:true(),"checking out by santhosh",())
Note: I can lock a document which is not managed under version control.
But can't lock or checkout the document which is managed under version
control.
It is giving the following Error.
<error:error xsi:schemaLocation="http://marklogic.com/xdmp/error error.xsd
" xmlns:error="http://marklogic.com/xdmp/error" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<error:code>SEC-PERMDENIED</error:code>
<error:name />
<error:xquery-version>1.0-ml</error:xquery-version>
<error:message>Permission denied</error:message>
<error:format-string>SEC-PERMDENIED: xdmp:lock-acquire("final.xml",
"exclusive", "0", "checking out version 1 by santhosh", ()) -- Permission
denied</error:format-string>
<error:retryable>false</error:retryable>
<error:expr>xdmp:lock-acquire("final.xml", "exclusive", "0", "checking
out version 1 by santhosh", ())</error:expr>
<error:data />
- <error:stack>
- <error:frame>
<error:uri>/Marklogic/dls.xqy</error:uri>
<error:line>1516</error:line>
<error:operation>dls-lock-acquire("final.xml", "exclusive", "0",
"checking out version 1 by santhosh", ())</error:operation>
- <error:variables>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">uri</error:name>
<error:value>"final.xml"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">scope</error:name>
<error:value>"exclusive"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">depth</error:name>
<error:value>"0"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">owner</error:name>
<error:value>"checking out version 1 by santhosh"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">timeout</error:name>
<error:value>()</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
- <error:frame>
<error:uri>/Marklogic/dls.xqy</error:uri>
<error:line>268</error:line>
<error:operation>dls:document-checkout("final.xml", true(), "checking
out version 1 by santhosh", ())</error:operation>
- <error:variables>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">uri</error:name>
<error:value>"final.xml"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">deep</error:name>
<error:value>fn:true()</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">annotation</error:name
>
<error:value>"checking out version 1 by santhosh"</error:value>
</error:variable>
- <error:variable>
<error:name xmlns="http://marklogic.com/xdmp/dls">timeout</error:name>
<error:value>()</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
- <error:frame>
<error:line>5</error:line>
<error:operation>xdmp:eval("(: Check out and checkout status
:) xquery version &quo...", (), <options
xmlns="xdmp:eval"><database>14055916019304044600</database><modules>0</modules><ro...</options>)
</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
- <error:frame>
<error:uri>/cq/eval.xqy</error:uri>
<error:line>119</error:line>
<error:xquery-version>0.9-ml</error:xquery-version>
</error:frame>
</error:stack>
</error:error>
Please say what is going wrong., How to solve this problem.
Thanks and Regards,
Santhosh Rajasekaran
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general