karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6197) Dot at the end of PATH_WITH_JAVA in karaf-wrapper.conf break PATH variable
Date Mon, 25 Mar 2019 05:12:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16800412#comment-16800412
] 

ASF subversion and git services commented on KARAF-6197:
--------------------------------------------------------

Commit f18fb570375d6927885bd7c02013146323a239ef in karaf's branch refs/heads/karaf-4.2.x from
Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=f18fb57 ]

[KARAF-6197] Fix default PATH in wrapper


> Dot at the end of PATH_WITH_JAVA in karaf-wrapper.conf break PATH variable
> --------------------------------------------------------------------------
>
>                 Key: KARAF-6197
>                 URL: https://issues.apache.org/jira/browse/KARAF-6197
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.3
>         Environment: Child processes under Linux and Unix.
>            Reporter: Christian Brüssow
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: wrapper
>             Fix For: 4.3.0, 4.2.5
>
>
> 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:
> {code:java}
> set.default.PATH_WITH_JAVA=%JAVA_HOME%%WRAPPER_FILE_SEPARATOR%bin%WRAPPER_PATH_SEPARATOR%%PATH%.
> set.PATH=%PATH_WITH_JAVA%{code}
>  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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message