evolvedbinary / fusion-studio-api

Server Side API for Fusion Studio
GNU Affero General Public License v3.0
5 stars 3 forks source link

API no longer compatible with eXist-db 4.x.x #14

Closed adamretter closed 4 years ago

adamretter commented 4 years ago
2020-07-31 18:23:04,538 [qtp256004657-58] ERROR (ExistXqueryRegistry.java [findServices]:268) - XQuery '/db/system/repo/fusion-studio-api-0.1.1/modules/collection.xqm' could not be compiled! Unable to compile XQuery: /db/system/repo/fusion-studio-api-0.1.1/modules/collection.xqm: err:XPST0017 Function xmldb:copy-collection()  is not defined in module namespace: http://exist-db.org/xquery/xmldb [at line 62, column 27]
2020-07-31 18:23:04,538 [qtp256004657-58] INFO  (ExistXqueryRegistry.java [reexamineModulesWithResolvedDependencies]:321) - Discovered 0 resource functions for /db/system/repo/fusion-studio-api-0.1.1/modules/collection.xqm
2020-07-31 18:23:04,539 [qtp256004657-58] INFO  (ExistXqueryRegistry.java [reexamineModulesWithResolvedDependencies]:318) - Missing dependency '/db/system/repo/fusion-studio-api-0.1.1/modules/error.xqm' has been added to the database, re-examining '/db/system/repo/fusion-studio-api-0.1.1/modules/document.xqm'...
2020-07-31 18:23:04,577 [qtp256004657-58] ERROR (ExistXqueryRegistry.java [findServices]:268) - XQuery '/db/system/repo/fusion-studio-api-0.1.1/modules/document.xqm' could not be compiled! Unable to compile XQuery: /db/system/repo/fusion-studio-api-0.1.1/modules/document.xqm: err:XPST0017 Function xmldb:copy-resource()  is not defined in module namespace: http://exist-db.org/xquery/xmldb [at line 137, column 13]
2020-07-31 18:23:04,577 [qtp256004657-58] INFO  (ExistXqueryRegistry.java [reexamineModulesWithResolvedDependencies]:321) - Discovered 0 resource functions for /db/system/repo/fusion-studio-api-0.1.1/modules/document.xqm
webapp/WEB-INF/logs/restxq.log (END)

We should likely update the compatibility details of the EXPath package to require the minimum version of 5.x.x. We need to test what this is but I suspect 5.0.0 will be fine.