I can make sure both the xml and module files (.xqy) have the read, update,
execute permissions.

After debugged the code, I found the root cause is the -- Module D:\Program
Files\MarkLogic\Modules\MarkLogic\cpf\cpf.xqy not found. The role editor
has already inherited the "filesystem-access" role. For now, it works only
when the role editor inherits the admin role.

<error:code>XDMP-MODNOTFOUND</error:code>
      <error:name>err:XQST0059</error:name>
      <error:xquery-version>1.0-ml</error:xquery-version>
      <error:message>Module not found</error:message>
      <error:format-string>XDMP-MODNOTFOUND: (err:XQST0059)
xdmp:invoke("/update-action.xqy", (xs:QName("trgr:uri"), "/test.xml",
xs:QName("trgr:trigger"), ...), &lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;&lt;prevent-deadlocks&gt;t...&lt;/options&gt;)
-- Module D:\Program Files\MarkLogic\Modules\MarkLogic\cpf\cpf.xqy not
found</error:format-string>
      <error:retryable>false</error:retryable>
      <error:expr>xdmp:invoke("/update-action.xqy", (xs:QName("trgr:uri"),
"/test.xml", xs:QName("trgr:trigger"), ...), &lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;&lt;prevent-deadlocks&gt;t...&lt;/options&gt;)</error:expr>
      <error:data>
<error:datum>D:\Program
Files\MarkLogic\Modules\MarkLogic\cpf\cpf.xqy</error:datum>
      </error:data>
      <error:stack>
<error:frame>
  <error:uri>/MarkLogic/cpf/triggers/internal-cpf.xqy</error:uri>
  <error:line>179</error:line>
  <error:column>8</error:column>
  <error:operation>execute-action("on-state-enter", "
http://marklogic.com/states/updated";,


On Tue, Nov 13, 2012 at 7:06 PM, Michael Blakeley <[email protected]> wrote:

> Probably the document lacks execute permission (permission, not privilege)
> for any of john's assigned roles.
>
> http://docs.marklogic.com/guide/security/permissions#id_85471 and
> http://markmail.org/message/ohi55uhfsji6gmq4 might help.
>
> -- Mike
>
> On 13 Nov 2012, at 15:16 , John Zhong <[email protected]> wrote:
>
> > Hi,
> >
> > I have a WebDAV server configured on ML 5.0-1.2. I have configured
> different users/roles, for example, user john, role editor. Also, I
> configured a cpf pipeline to trigger a file updated action.
> >
> > Then, I used Oxygen XML Editor 13 to connect to the WebDAV by the user
> john, edit a xml file, then click save. I can save the xml, but the cpf
> pipeline throw a error, see below. I guess this is because some privileges,
> so I enabled all the Execute Privileges to the role editor, but that did
> not work. I also tried to enable those four URI Privileges,
> domain-config-uri, domain-uri, pipeline-uri, triggers-uri, did not work
> either. I also tried to inherit some roles, such as pipeline-execution,
> dls-user, dls-internal, dls-admin......., did not work either. The only way
> that worked is to inherit the "admin" role.
> >
> > So, is this only way to resolve my problem?
> >
> > <error:message>Server unable to build program from
> request</error:message>
> > 2012-11-13 16:58:14.674 Info: TaskServer:
> <error:format-string>XDMP-NOPROGRAM: xdmp:invoke("/update-action.xqy",
> (xs:QName("trgr:uri"), "/test.xml", xs:QName("trgr:trigger"), ...),
> &lt;options
> xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;&lt;prevent-deadlocks&gt;t...&lt;/options&gt;)
> -- Server unable to build program from request</error:format-string>
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://developer.marklogic.com/mailman/listinfo/general
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to