Sym links in BaseX 9.7.2

Wednesday, 29 June 2022 · 4 messages · last reply 7 Jul 2022
MI
Maud Ingarao29 Jun 2022 15:27 #
Hi everybody ! As we had problems getting our formatDateTime() outputs in french, we followed Christian's advice and updated to BaseX 9.7.2. Now it works and we get our outputs in French, thanks a lot ! But we face a new problem : symbolic links inside the webapp are no longer followed. We tried to had the following to jetty.xml :
|<!-- Allow symbolic links --> <Call name="addAliasCheck"> <Arg><New
class="org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker"/></Arg>
</Call> |
But this doesn't seem to be the answer. I can't remember configuring anything in particular in the previous versions of BaseX and our webapp was just running fine. Thanks for your help. Maud ||
-- Maud Ingarao IHRIM - UMR 5317 Institut d’histoire des représentations et des idées dans les modernités École Normale Supérieure de Lyon 15 Parvis René Descartes - BP7000 - 69342 Lyon CEDEX 07 +33 4 37 37 65 79 - maud.ingarao at ens-lyon.fr */Présente les lundi - mardi - mercredi/* */At the office on mondays - tuesdays - wednesdays/* http://ihrim.ens-lyon.fr/ http://ahn.ens-lyon.fr/ https://cahier.hypotheses.org/
CG
Christian Grün30 Jun 2022 15:52 #
Hi Maud,
Quoted text · Maud Ingarao · 3 lines
> But we face a new problem : symbolic links inside the webapp are no longer > followed. >
I cannot remember of a particular feature that might have caused this. Maybe it’s due to a more recent version of Jetty? Can you recollect which was the latest version of BaseX/Jetty that allowed symbolic links? All the best! Christian
ML
Maud Ingarao (IHRIM - ENS de Lyon)5 Jul 2022 15:48 #
Hi Christian :-) The prior version we were using was 9.3.2 and everything worked fine. Now with 9.7.2 I get this error : Stopped at /path/to/basex/webapp/synopsx/workspace/bvm/models/mixed.xqm, 38/55: [XQST0059] Could not retrieve module: /path/to/basex/webapp/synopsx/models/synopsx.xqm. although nothing changed in our webapp. Thanks a lot, and all the best :-) Maud
CG
Christian Grün7 Jul 2022 11:42 #
Hi Maud,
Quoted text · Maud Ingarao (IHRIM - ENS de Lyon) · 6 lines
> The prior version we were using was 9.3.2 and everything worked fine. > > Now with 9.7.2 I get this error : > > Stopped at /path/to/basex/webapp/synopsx/workspace/bvm/models/mixed.xqm, 38/55: > [XQST0059] Could not retrieve module: /path/to/basex/webapp/synopsx/models/synopsx.xqm.
I believe I remember that we have checked multiple locations for libraries modules in the past, and that we have made the import more strict to avoid ambiguities. Thus, it could be that some import paths need to be slightly rewritten. Could you possibly share the lines of code with us (in particular, line 38 from “mixed.xqm”) that triggers this error? Where is “synopsx.xqm” supposed to be located? If both modules are in the same directory, it should suffice to supply the file name: import module ... = '...' at 'synopsx.xqm'; Feel free to send me a copy of your project in private. Cordialement ! Christian

⚡Generated with XQuery