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

Karaf Wrapper fails if Path to KARAF_HOME Contains Spaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Karaf
    • % %
    • 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
    • Sprint 5 - towards ER2

    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.

      Attachments

        1. fuse
          5 kB
        2. fuse.conf
          1 kB
        3. fuse-service
          15 kB

        Issue Links

          Activity

            People

              lburgazz@redhat.com Luca Burgazzoli
              rhn-support-dhawkins Duane Hawkins
              Tomas Plevko Tomas Plevko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: