You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
Running through current eval endpoint seems to either hide this issue, or it simply doesn't occur that way. But if I make execute_query use xcc_query, it starts complaining that create-scheduled-tasks fails at the xdmp:user calls in there. I added following function, and used that instead. That solved the issue:
declarefunctionsetup:get-user-id($user-name as xs:string) as xs:unsignedLong? {
xdmp:eval(
'import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; declare variable $user-name as xs:string external; /sec:user[sec:user-name = $user-name]/sec:user-id',
(xs:QName("user-name"), $user-name),
<options xmlns="xdmp:eval">
<database>{$default-security}</database>
</options>)
};
The text was updated successfully, but these errors were encountered:
Running through current eval endpoint seems to either hide this issue, or it simply doesn't occur that way. But if I make execute_query use xcc_query, it starts complaining that create-scheduled-tasks fails at the xdmp:user calls in there. I added following function, and used that instead. That solved the issue:
The text was updated successfully, but these errors were encountered: