Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-9791

Failed startup of console when install dir has unicode characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • AMQ 7.13.0.GA
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      curl -L -o amq-broker-7.13.0.CR2-bin.zip http://download.devel.redhat.com/devel/candidates/amq/amq-broker-7.13.0.CR2/amq-broker-7.13.0.CR2-bin.zip

      unzip amq-broker-7.13.0.CR2-bin.zip -d amq-broker-7.13.0.CR2-bin

      mv amq-broker-7.13.0.CR2-bin/apache-artemis-2.40.0.redhat-00003/ with\ spaces\ And\ Weird\ %26\ Characters\ Čeština

      with\ spaces\ And\ Weird\ %26\ Characters\ Čeština/bin/artemis create broker --user admin --password admin --require-login

      broker/bin/artemis run

      Show
      curl -L -o amq-broker-7.13.0.CR2-bin.zip http://download.devel.redhat.com/devel/candidates/amq/amq-broker-7.13.0.CR2/amq-broker-7.13.0.CR2-bin.zip unzip amq-broker-7.13.0.CR2-bin.zip -d amq-broker-7.13.0.CR2-bin mv amq-broker-7.13.0.CR2-bin/apache-artemis-2.40.0.redhat-00003/ with\ spaces\ And\ Weird\ %26\ Characters\ Čeština with\ spaces\ And\ Weird\ %26\ Characters\ Čeština/bin/artemis create broker --user admin --password admin --require-login broker/bin/artemis run

      The error shows is the console log when
      https://github.com/apache/activemq-artemis/blob/main/artemis-distribution/src/test/scripts/validate-spaces.sh
      is executed, but we don't check the return of the sanity check of the console.

      ./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters works
      ./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters\ Čeština doesn't work (e

      2025-05-02 11:51:26,604 INFO [org.apache.activemq.artemis] AMQ241003: Starting embedded web server
      2025-05-02 11:51:26,852 WARN [org.eclipse.jetty.ee8.webapp.WebAppContext] Failed startup of context oeje8w.WebAppContext@682abca7
      
      {/activemq-branding,/activemq-branding,null,false,@Connector-0} {/home/jenkins/agent/workspace/activemq-artemis/activemq-artemis-pipeline/activemq-artemis/artemis-distribution/src/test/scripts/target/with spaces And Weird %26 Characters Čeština 漢字 водка 昨夜のコ ﷹ/apache-artemis-2.39.0-SNAPSHOT/web/activemq-branding.war}
      java.lang.IllegalArgumentException: Bad escape
      at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:88) ~[?:?]
      at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:102) ~[?:?]
      at java.base/java.nio.file.Path.of(Path.java:203) ~[?:?]
      at java.base/java.nio.file.Paths.get(Paths.java:98) ~[?:?]
      at org.eclipse.jetty.util.resource.FileSystemPool$Bucket.<init>(FileSystemPool.java:400) ~[jetty-util-12.0.15.jar:12.0.15]
      

              jcliffor@redhat.com John Clifford
              dbruscin Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: