Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6197

Dot at the end of PATH_WITH_JAVA in karaf-wrapper.conf break PATH variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.3
    • 4.3.0, 4.2.5
    • karaf
    • Child processes under Linux and Unix.

    Description

      The improvement KARAF-6108 introduced a bug, which breaks the PATH variable, by adding a "." (dot) at the end of the new variable PATH_WITH_JAVA, without any separator:

      set.default.PATH_WITH_JAVA=%JAVA_HOME%%WRAPPER_FILE_SEPARATOR%bin%WRAPPER_PATH_SEPARATOR%%PATH%.
      set.PATH=%PATH_WITH_JAVA%

      On a CentOS 7 e.g. PATH will end now in "...:/usr/bin."

      All child processes spawned by the JVM of karaf will no longer find any executbale below "/usr/bin", which breaks most of our scripts, because "/bin" as a fallback is not part of the PATH under CentOS for processes started as a service/daemon. E.g. a simple "ls" call will no longer work now.

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              c.bruessow@cenit.de Christian Brüssow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: