-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
XSLWeb v4.0.0-RC-1 will not launch when the path to the application contains whitespace chars. For v3 this didn't pose a problem.
Test setup: application in /data/demo/xslweb/brea king
:
[…]
17:13:08,513 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[global] - File property is set to [/data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/xslweb.log]
17:13:08,515 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[global] - Failed to create parent directories for [/data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/xslweb.log]
17:13:08,515 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[global] - openFile(/data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/xslweb.log,true) call failed. java.io.FileNotFoundException: /data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/xslweb.log (No such file or directory)
at java.io.FileNotFoundException: /data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/xslweb.log (No such file or directory)
[…]
17:13:08,518 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[pipeline] - openFile(/data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/pipeline.log,true) call failed. java.io.FileNotFoundException: /data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home/logs/pipeline.log (No such file or directory)
[…]
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
2020-10-08 17:13:08.531:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2020-10-08 17:13:08.531:INFO:oejs.session:main: No SessionScavenger set, using defaults
2020-10-08 17:13:08.532:INFO:oejs.session:main: node0 Scavenging every 660000ms
INFO [main] - Opening XSLWeb Context ...
INFO [main] - No /xslweb/home in JNDI
INFO [main] - Using system property xslweb.home: /data/demo/xslweb/brea\ king/bin/jetty/jetty-base/../../../home
ERROR [main] - FATAL: Directory "xslweb.home" not found
ERROR [main] - Could not open XSLWeb Context
nl.armatiek.xslweb.error.XSLWebException: FATAL: Directory "xslweb.home" not found
[…]
ERROR [main] - Could not initialise servlet filter.
java.lang.NullPointerException: null
Starting the application under application in /data/demo/xslweb/working
works as expected.
This is admittedly an edge case, but I think it would be good to allow paths containing whitespace or to put a warning in the Installation section of the documentation.
I happened to find this when following a nice tutorial by @pmasereeuw during Declarative Amsterdam 2020.
My platform: Linux 5.4.0-7642-generic x86_64
Metadata
Metadata
Assignees
Labels
No labels