Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4967

Karaf Wrapper fails if Path to KARAF_HOME Contains Spaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Karaf
    • Labels:
    • Environment:

      SunOS 5.10/5.11 / Solaris 10/11

    • Sprint:
      Sprint 5 - towards ER2
    • Steps to Reproduce:
      Hide
      • Install Fuse in a directory tree containing spaces
      • Start Fuse
      • Install the wrapper feature and install the wrapper
      • Shutdown Fuse and attempt to start with the service script
      • Script falls into an endless loop
      Show
      Install Fuse in a directory tree containing spaces Start Fuse Install the wrapper feature and install the wrapper Shutdown Fuse and attempt to start with the service script Script falls into an endless loop

      Description

      The service script generated by the wrapper:install command leaves variables containing the path to $KARAF_HOME unquoted. As a result service operations fail to be parsed correctly and the service fails to start.

      Additionally, there is a missing line (SCRIPT=`echo $SCRIPT | sed -e 's;:; ;g'`) in the generated script that results in an endless loop as REALPATH and SCRIPT variables are compared when one still has colons substituted for spaces and the other has spaces.

      Under Solaris, the "ps" command fails to return the entire process with arguments - resulting in failure to resolve the PID / service for status and start operations. Using pargs seems to work here.

      Sample doctored script attached.

        Gliffy Diagrams

          Attachments

          1. fuse
            5 kB
            Luca Burgazzoli
          2. fuse.conf
            1 kB
            Luca Burgazzoli
          3. fuse-service
            15 kB
            Duane Hawkins

            Issue Links

              Activity

                People

                • Assignee:
                  lburgazzoli Luca Burgazzoli
                  Reporter:
                  hawkinsds Duane Hawkins
                  Tester:
                  Tomas Plevko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: