Open joewiz opened 5 years ago
@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 Client