I don’t have an answer, but I was curious and so I tried setting the option 
RESTPATH to /tmp. I am using 8.6.5.

With that, run=some.xq and run=../tmp/some.xq both ran the same query. In 
some.xq I had doc(‘../tmp/some.xml’) and I get an error that
/opt/tomcat/webapps/basex/tmp/some.xml doesn’t exist. WEBPATH is 
/opt/tomcat/webapps/basex/.

So, it could be a difference in settings or default settings between the 2 
versions, as opposed to being a bug.

Kendall

From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Günter 
Dunz-Wolff <guenter.dunzwo...@gmail.com>
Date: Sunday, September 3, 2017 at 4:09 AM
To: BaseX <basex-talk@mailman.uni-konstanz.de>
Subject: [basex-talk] New basex-version -> broken paths

Hi all,

I updated my aged basex-version (8.5.3) to 8.6.6. With the new version, my 
defined file-references are broken, for example:
let $style := doc('../xq_diff/remove_elements_from_doc.xsl‘)
Even files in the same directory with the XQuery-file (corrigenda.xq) like: let 
$tokens := doc(„tokens.xml")

With 8.5.3 the REST-Requests with 
http://localhost:8984/rest?run=xqs/corrigenda.xq<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8984_rest-3Frun-3Dxqs_corrigenda.xq&d=DwMFaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=oOlfiKZawgkSitHZYJ_efZTO4FbrLxjI0NrGm2CgKio&s=2_gllMgHxtkfLyw0vLzpCaWr3leohjjigaO42goQlus&e=>
 worked without problems.

With 8.6.6 and with the same request I’ll get the following error:
Stopped at ., 11/18:
[FODC0002] Resource '/Users/xq_diff/remove_elements_from_doc.xsl' does not exist
OR
Stopped at ., 79/26:
[FODC0002] Resource '/Users/xxx/kleist_tokens.xml' does not exist.

It does work in BaseXGUI but not with the http-server.

Thanks for any help, Guenter



Reply via email to