Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-5120

Optimize distribution scripts don't work if the absolute file system path contains whitespaces

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.7.0
    • None
    • backend
    • 2
    • S

      Given:
      I extract the Optimize demo distribution/production into a folder and the absolute file system path to that folder contains whitespaces, e.g. `/home/meggle/Downloads/my little folder/optimize`

      When:
      I start either optimize-demo.sh or optimize-startup.sh

      Then:
      The scripts fail with errors like these:

      ./optimize-startup.sh 
      
      Starting Camunda Optimize 3.4.0...
      
      Error: Could not find or load main class little
      Caused by: java.lang.ClassNotFoundException: little
      

      Expected:
      It should work

      Hint:
      Seems like internal BASEDIR variable does not correctly escape whitespace in the paths on at least UNIX systems. We also need to verify this on windows.

        This is the controller panel for Smart Panels app

            [OPT-5120] Optimize distribution scripts don't work if the absolute file system path contains whitespaces

            Sebastian Bathke created issue -
            Sebastian Bathke made changes -
            Summary Original: Optimize demo scripts don't work if the absolute file system path contains whitespaces New: Optimize distribution scripts don't work if the absolute file system path contains whitespaces
            Sebastian Bathke made changes -
            Description Original: Given:
            I extract the Optimize demo distribution/production into a folder and the absolute file system path to that folder contains whitespaces, e.g. `/home/meggle/Downbloads/my little folder/optimize`

            When:
            I start either optimize-demo.sh or optimize-startup.sh

            Then:
            The scripts fail with errors like these:
            {code}
            ./optimize-startup.sh

            Starting Camunda Optimize 3.4.0...

            Error: Could not find or load main class little
            Caused by: java.lang.ClassNotFoundException: little
            {code}

            Hint:
            Seems like internal BASEDIR variable does not correctly escape whitespace in the paths on at least UNIX systems. We also need to verify this on windows.

            Expected:
            It should work

            New: *Given:*
            I extract the Optimize demo distribution/production into a folder and the absolute file system path to that folder contains whitespaces, e.g. `/home/meggle/Downbloads/my little folder/optimize`

            *When:*
            I start either optimize-demo.sh or optimize-startup.sh

            *Then:*
            The scripts fail with errors like these:
            {code}
            ./optimize-startup.sh

            Starting Camunda Optimize 3.4.0...

            Error: Could not find or load main class little
            Caused by: java.lang.ClassNotFoundException: little
            {code}

            *Expected:*
            It should work :)

            *Hint:*
            Seems like internal BASEDIR variable does not correctly escape whitespace in the paths on at least UNIX systems. We also need to verify this on windows.


            Sebastian Bathke made changes -
            Mentioned Roles
            Sebastian Bathke made changes -
            Mentioned Groups
            Sebastian Bathke made changes -
            Description Original: *Given:*
            I extract the Optimize demo distribution/production into a folder and the absolute file system path to that folder contains whitespaces, e.g. `/home/meggle/Downbloads/my little folder/optimize`

            *When:*
            I start either optimize-demo.sh or optimize-startup.sh

            *Then:*
            The scripts fail with errors like these:
            {code}
            ./optimize-startup.sh

            Starting Camunda Optimize 3.4.0...

            Error: Could not find or load main class little
            Caused by: java.lang.ClassNotFoundException: little
            {code}

            *Expected:*
            It should work :)

            *Hint:*
            Seems like internal BASEDIR variable does not correctly escape whitespace in the paths on at least UNIX systems. We also need to verify this on windows.


            New: *Given:*
            I extract the Optimize demo distribution/production into a folder and the absolute file system path to that folder contains whitespaces, e.g. `/home/meggle/Downloads/my little folder/optimize`

            *When:*
            I start either optimize-demo.sh or optimize-startup.sh

            *Then:*
            The scripts fail with errors like these:
            {code}
            ./optimize-startup.sh

            Starting Camunda Optimize 3.4.0...

            Error: Could not find or load main class little
            Caused by: java.lang.ClassNotFoundException: little
            {code}

            *Expected:*
            It should work :)

            *Hint:*
            Seems like internal BASEDIR variable does not correctly escape whitespace in the paths on at least UNIX systems. We also need to verify this on windows.


            Sebastian Bathke made changes -
            Mentioned Roles
            Sebastian Bathke made changes -
            Mentioned Groups
            Sebastian Bathke made changes -
            Assignee New: Sebastian Bathke [ sebastian.bathke ]
            Sebastian Bathke made changes -
            Fix Version/s New: 3.5.0 [ 16724 ]

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: