-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 'other' is different type of Path #5525
Comments
I had a moment to look at this issue and I can reproduce it. Ad-hoc modules cannot import libraries without location hint: ; xst run "import module namespace functx='http://www.functx.com/';functx:atomic-type(4)"
Error executing your query
Failed to invoke method executeQuery in class org.exist.xmlrpc.RpcConnection: 'other' is different type of Path |
As @lguariento also found out, saving the module to the database allows the library to be imported. |
This affects eXist-6.3.0, develop, develop-6.x.x |
@lguariento Hi Luca, I have a fix for you that I prepared, and I was about to publish an eXist-db 6.3.1 release to address this. I am sad to say that I can't do that now; see the Slack |
@adamretter is there a PR/commit for this fix? |
fixes eXist-db#5525 - 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 "."
fixes eXist-db#5525 - 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 "."
Thank you. I'll apply that later and will report back. |
@reinhapa Yes. |
fixes eXist-db#5525 - 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 "."
fixes eXist-db#5525 - 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 "."
fixes eXist-db#5525 fixes eXist-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 "."
fixes eXist-db#5525 fixes eXist-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
With a simple query, be it via Java Admin, via rest, or in eXide, one gets a
'other' is different type of Path
error under certain conditions.
Expected behavior
Getting the result of the query.
To Reproduce
Open eXide -> new XQuery. Query a collection of XML document with a simple for loop importing the
functx
module.Copy-pasting the same query in the Java Admin console returns the same error.
Full error:
org.xmldb.api.base.XMLDBException: Failed to invoke method compile in class org.exist.xmlrpc.RpcConnection: 'other' is different type of Path at org.exist.xmldb.RemoteCollection.execute(RemoteCollection.java:129) at org.exist.xmldb.RemoteXPathQueryService.compileAndCheck(RemoteXPathQueryService.java:151) at org.exist.xmldb.RemoteXPathQueryService.compile(RemoteXPathQueryService.java:128) at org.exist.client.QueryDialog$QueryRunnable.run(QueryDialog.java:577) at java.lang.Thread.run(Thread.java:750) Caused by: org.apache.xmlrpc.XmlRpcException: Failed to invoke method compile in class org.exist.xmlrpc.RpcConnection: 'other' is different type of Path at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:214) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:173) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:142) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:70) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147) at org.exist.xmldb.RemoteCollection.execute(RemoteCollection.java:127) ... 4 more
Additional context
conf.xml
? NoThe text was updated successfully, but these errors were encountered: