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
Replace the following instances of the function xmldb:is-admin-user with sm:is-dba
./modules/login.xql:87if (not($asDba) orxmldb:is-admin-user($user)) then (
./modules/login.xql:137if ($isLoggedIn and (not($asDba) orxmldb:is-admin-user($user))) then (
Replace the following instances of the module datetime with XQuery 3.1, FunctX, or other implementations
@duncdrum noted in last week's community call many of these were fixed. I re-ran the latest version of the script on the latest, and got these remaining issues:
$ perl ../audit_exist_5x_removals/audit_removals.pl
>>> Replace the following instances of the function httpclient:get with EXPath HTTP Client.
./src/main/xar-resources/modules/display/image-view.xql:21 let $response := httpclient:get($image-href, false(), ())
./src/main/xar-resources/data/util/TwitterUserFeed.xql:18 let $response := httpclient:get($uri, false(), ())
>>> Replace the following instances of the module httpclient with EXPath HTTP Client.
./src/main/xar-resources/data/util/TwitterUserFeed.xql:7 import module namespace httpclient="http://exist-db.org/xquery/httpclient"
Running https://github.com/craigberry/audit_exist_5x_removals on this repository reveals several outstanding issues:
Replace the following instances of the function
map:new
withmap:merge
Replace the following instances of the function
xmldb:copy
with xmldb:copy-collection orxmldb:copy-resource
(no replacement in 4.x.x!)Replace the following instances of the function
xmldb:get-current-user
withsm:id
Replace the following instances of the function
xmldb:get-user-groups
withsm:get-user-groups
Replace the following instances of the function
xmldb:get-users
withsm:list-users
Replace the following instances of the function
xmldb:is-admin-user
withsm:is-dba
Replace the following instances of the module
datetime
with XQuery 3.1, FunctX, or other implementationsReplace the following instances of the module
httpclient
with EXPath HTTP ClientThe text was updated successfully, but these errors were encountered: