[jbosstools-issues] [JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails

Andre Dietisheim (JIRA) issues at jboss.org
Wed Feb 15 18:05:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13364289#comment-13364289 ] 

Andre Dietisheim commented on JBIDE-23862:
------------------------------------------

[~jrichter1] thx for spotting. I dont know how my patch in openshift-restclient-java even worked at some point. I can perfectly replicate the issue and found the reason(s):
* the java process builder (that's being used to launch the oc binary) wont accept commands (nor arguments) with spaces.
* the openshift-restclient-java ([AbstractOpenShiftBinaryCapability#startProcess|https://github.com/adietish/openshift-restclient-java/blob/master/src/main/java/com/openshift/internal/restclient/capability/resources/AbstractOpenShiftBinaryCapability.java#L156] splits the command line by whitespaces and thus  trashes a command with spaces in it's path.
Nevertheless I dont find a proper solution:
If I put the command in double quotes (like it is suggested in many entries on the net), the binary is still not being found. Any other quoting that I tried (like "\\" or "%20" or even new FIle().getCanonicalPath()) dont work either. 
Postponing this non-critical issue to later.

> Server adapter: if "oc" in preferences is set to path with a " " syncing fails
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-23862
>                 URL: https://issues.jboss.org/browse/JBIDE-23862
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.3.Final
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.4.3.Final
>
>




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list