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

Space in path results in bin/karaf: line 417: [: /home/fuse/te: binary operator expected

    XMLWordPrintable

    Details

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

      ubuntu 14.04, rhel 7

    • Sprint:
      6.3 Sprint 2 (1-Feb - 26-Feb)

      Description

      Installing fuse into a directory that contains space char results in:

      /home/fuse/te st/jboss-fuse-6.2.1.redhat-084/bin/karaf: line 417: [: /home/fuse/te: binary operator expected
      

      while starting. Fuse then runs ok but probably messes up the patching lib/ dir afterwards, as the error is in this code:

      415        # When users want to update the lib version of, they just need to create
      416        # a lib.next directory and on the new restart, it will replace the current lib directory.
      417        if [ -d ${KARAF_HOME}/lib.next ] ; then
      418            echo "Updating libs..."
      419            rm -rf "${KARAF_HOME}/lib"
      420            mv -f "${KARAF_HOME}/lib.next" "${KARAF_HOME}/lib"
      421        fi
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                grgrzybek Grzegorz Grzybek
                Reporter:
                avano Andrej Vano
                Tester:
                Andrej Vano
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: