My temporary workaround is to set HTTPPATH to /, which avoids the issue.
What OS do you use? My current assumption is that this is a Linux-/Mac-related issue. I've once more updated the code base and the snapshot. If the problem persists, I'll do some tests on a different system. __________________________
On 03/16/2012 05:00 PM, Charles Duffy wrote:
The subject line of this thread isn't actually consistent with the behavior I'm seeing from the current snapshot -- I wonder how much time could have been saved if I'd been paying more attention earlier:
Running the current snapshot with a default configuration, the behavior I actually see is it prefixing HTTPPATH during the module load (but not when loading the expath-pkg.xml file beforehand); since both of these are absolute, combining them doesn't work so well.
[pid 2346]
open("/home/cduffy/Downloads/basex/repo/http-dyfis.net-example-ns-test-0.1.136892-build.20120224.105428/expath-pkg.xml", O_RDONLY) = 41 [pid 2346]
stat("/home/cduffy/Downloads/basex/http/home/cduffy/Downloads/basex/repo/http-dyfis.net-example-ns-test-0.1.136892-build.20120224.105428/ns-test/foo.xq", 0x7ff5e6d99400) = -1 ENOENT (No such file or directory)
Perhaps you can reproduce the issue on your end when using the REST interface?
On 03/16/2012 03:48 PM, Christian Grün wrote:
Weird - still can't reproduce this here (your query correctly returns "4" on my machine). Has anyone else tried this?
Thanks in advance, Christian ___________________________
On Fri, Mar 16, 2012 at 8:05 PM, Charles Duffycharles@dyfis.net wrote:
I'm able to reproduce this with the "ns-test" module, first given in my post at http://permalink.gmane.org/gmane.text.xml.basex.talk/235 (and now attached).
$ basex-query 'repo:install("/home/cduffy/ns-test.xar")' $ basex-query -<<EOF import module namespace foo="http://dyfis.net/example/ns-test/foo"; import module namespace bar="http://dyfis.net/example/ns-test/bar"; foo:test() + bar:test() EOF basex.rest.RemoteException: [XQST0059] Could not retrieve module
'/home/cduffy/local/opt/basex-data/home/cduffy/local/opt/basex-data/repo/http-dyfis.net-example-ns-test-0.1.136892-build.20120224.105428/ns-test/foo.xq'.
On 03/16/2012 01:43 PM, Christian Grün wrote:
Sounds serious; but I didn't manage to reproduce this locally. Does your module import yet another module? Could you try to build an example that demonstrates the problem?
On Fri, Mar 16, 2012 at 7:19 PM, Charles Duffycharles@dyfis.net wrote:
On 03/16/2012 01:13 PM, Charles Duffy wrote: > > > > In my .basex file: > > REPOPATH = /home/cduffy/local/opt/basex-data/repo > > ...and running repo:list() shows my local package, with namespace > http://dyfis.net/ as installed, but trying to use anything from it > leads > to an error similar to the following: > > releng.db.basex.rest.RemoteException: [XQST0059] Could not retrieve > module > > > > '/home/cduffy/local/opt/basex-data/home/cduffy/local/opt/basex-data/repo/http-dyfis.net-0.1.140101/dyfis/reporting.xq'. > > > > This is happening with a local build of > 230e16551cf397def9e6c59044ff605e48908e1c (current master on github).
This appears to have been caused by commit e7362aee ("[MOD] XQuery: unique resolution of file locations"); reverting this commit, the error no longer occurs.
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk