Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4303

Artemis Windows Service fails to start correctly when filepath has a space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.28.0
    • 2.29.0
    • Broker
    • None
    • Windows 10

    Description

      Steps to reproduce:

      1. Download / extract zip: https://activemq.apache.org/components/artemis/download/
      2. run "bin/artemis create" giving it a target path which has a space e.g.:
        1. ./bin/artemis create --user default --password default --require-login /c/Program\ Files/artemis
      3. Install and try and start the service
        1. "C:\Program Files\artemis\bin\artemis-service.exe"install
        2. "C:\Program Files\artemis\bin\artemis-service.exe" start
      4. Notice the web console does not come up and there are errors in the logs (as shown in attachment artemis-service.out.log)

       

      I believe the problem lies in line 29 of the generated artemis-service.xml (attached), which has a unnecessarily double-escaped space character (%%20) for the value of ARTEMIS_INSTANCE_ETC_URI.

      Attachments

        1. artemis-service.out.log
          16 kB
          Jake Sperlazza
        2. artemis-service.xml
          4 kB
          Jake Sperlazza

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wjsperlazza Jake Sperlazza
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h