REPOPATH prefixed twice on current snapshots?

Friday, 16 March 2012 · 9 messages · last reply 17 Mar 2012
CG
Christian Grünin reply to Charles Duffy, 16 Mar 2012, 20:2016 Mar 2012 19:43 #
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?
Quoted text · Charles Duffy · 30 lines
On Fri, Mar 16, 2012 at 7:19 PM, Charles Duffy <charles at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CD
Charles Duffy16 Mar 2012 20:14 #
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).
CD
Charles Duffy16 Mar 2012 20:20 #
Quoted text · Charles Duffy · 16 lines
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.
CD
Charles Duffyin reply to Christian Grün, 16 Mar 2012, 19:4316 Mar 2012 21:06 #
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'.
Quoted text · Christian Grün · 36 lines
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 Duffy<charles at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grün16 Mar 2012 21:48 #
Weird - still can't reproduce this here (your query correctly returns "4" on my machine). Has anyone else tried this? Thanks in advance, Christian
Quoted text · Charles Duffy · 64 lines
On Fri, Mar 16, 2012 at 8:05 PM, Charles Duffy <charles at 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 Duffy<charles at 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 at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CD
Charles Duffy17 Mar 2012 00:00 #
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?
Quoted text · Christian Grün · 73 lines
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 Duffy<charles at 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 Duffy<charles at 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 at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>
CD
Charles Duffy17 Mar 2012 00:15 #
My temporary workaround is to set HTTPPATH to /, which avoids the issue.
Quoted text · Charles Duffy · 98 lines
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 Duffy<charles at 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 Duffy<charles at 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 at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>
CG
Christian Grün17 Mar 2012 00:44 #
Quoted text · Charles Duffy · 1 line
> 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.
Quoted text · Charles Duffy · 116 lines
> 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 Duffy<charles at 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 Duffy<charles at 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 at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CD
Charles Duffy17 Mar 2012 21:33 #
Quoted text · Christian Grün · 3 lines
On 03/16/2012 06:44 PM, Christian Grün wrote: > I've once more updated the code base and the > snapshot. If the problem persists, I'll do some tests on a different system.
The new release fixes this bug. Thanks!

⚡Generated with XQuery