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
One-off queries that import library modules with a location hint (import module namespace ... at ...;) raise error err:XQST0059 that the source could not be found regardless if the library module is available at the location or not.
Expected behavior
One-off queries evaluated in exist-db must allow imports of library modules with a location hint.
To Reproduce
Evaluate the any query importing a library with a location hint in eXide or over XML-RPC (eg. xst run)
fixeseXist-db#5525fixeseXist-db#5530
- add functx to autodeploy for xquery tests
- add tests for one-off queries with module imports
- of a registered module without location hint
- of a module with location hint
- change XQueryContext to allow imports again
- change SourceFactory to work with contextPath set to "."
line-o
added a commit
to line-o/exist
that referenced
this issue
Nov 19, 2024
fixeseXist-db#5525fixeseXist-db#5530
- add functx to autodeploy for xquery tests
- add tests for one-off queries with module imports
- of a registered module without location hint
- of a module with location hint
- change XQueryContext to allow imports again
- change SourceFactory to work with contextPath set to "."
Describe the bug
One-off queries that import library modules with a location hint (
import module namespace ... at ...;
) raise errorerr:XQST0059
that the source could not be found regardless if the library module is available at the location or not.Expected behavior
One-off queries evaluated in exist-db must allow imports of library modules with a location hint.
To Reproduce
Evaluate the any query importing a library with a location hint in eXide or over XML-RPC (eg.
xst run
)xst run "import module namespace functx='http://www.functx.com' at '/db/system/repo/functx-1.0.1/functx/functx.xq';functx:atomic-type(4)"
The query will raise error err:XQST0059 that the module could not be found
running
xst run "util:binary-doc-available('/db/system/repo/functx-1.0.1/functx/functx.xq')"
returns
true()
Context (please always complete the following information)
Additional context
conf.xml
? noneThe text was updated successfully, but these errors were encountered: