[JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-23862 at 5/16/17 10:00 AM:
--------------------------------------------------------------------
Escaping {code}builder.directory(new File("/Users/adietish/Downloads/oc\\ binaries/ocp-3.4.1.1.2"));{code} or quoting {code}builder.directory(new File("\"/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2\""));{code} has no effect. The same error is reported
Using an URI or single quotes, both have no positive effect. Things are still failing.
was (Author: adietish):
Escaping {code}builder.directory(new File("/Users/adietish/Downloads/oc\\ binaries/ocp-3.4.1.1.2"));{code} or quoting {code}builder.directory(new File("\"/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2\""));{code} has no effect. The same error is reported
> 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.5.0.AM1
>
> Attachments: ProcessMain.java
>
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-23862 at 5/16/17 9:59 AM:
-------------------------------------------------------------------
running the following snippets errors with the same message on MacOS:
{code}
import java.io.File;
import java.io.IOException;
import java.lang.ProcessBuilder.Redirect;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException {
List<String> params = new ArrayList<String>();
params.add("oc");
params.add("version");
ProcessBuilder builder = new ProcessBuilder(params);
builder.directory(new File("/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2"));
// builder.directory(new File("\"/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2\""));
// builder.directory(new File("/Users/adietish/Downloads/oc\\ binaries/ocp-3.4.1.1.2"));
// builder.directory(new File(new URI("file:///Users/adietish/Downloads/oc%20binaries/ocp-3.4.1.1.2")));
// builder.directory(new File("'/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2'"));
builder.redirectOutput(Redirect.INHERIT);
Process process = builder.start();
process.waitFor();
}
}
{code}
The output is:
{code}
Exception in thread "main" java.io.IOException: Cannot run program "oc" (in directory ""/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2""): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at Main.main(Main.java:17)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 1 more
{code}
was (Author: adietish):
running the following snippets errors with the same message on MacOS:
{code}
import java.io.File;
import java.io.IOException;
import java.lang.ProcessBuilder.Redirect;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
List<String> params = new ArrayList<String>();
params.add("oc");
params.add("version");
ProcessBuilder builder = new ProcessBuilder(params);
builder.directory(new File("/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2"));
builder.redirectOutput(Redirect.INHERIT);
Process process = builder.start();
process.waitFor();
}
}
{code}
The output is:
{code}
Exception in thread "main" java.io.IOException: Cannot run program "oc" (in directory ""/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2""): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at Main.main(Main.java:17)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 1 more
{code}
> 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.5.0.AM1
>
> Attachments: ProcessMain.java
>
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (JBIDE-23862) Server adapter: if "oc" in preferences is set to path with a " " syncing fails
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23862?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-23862:
------------------------------------------
running the following snippets errors with the same message on MacOS:
{code}
import java.io.File;
import java.io.IOException;
import java.lang.ProcessBuilder.Redirect;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
List<String> params = new ArrayList<String>();
params.add("oc");
params.add("version");
ProcessBuilder builder = new ProcessBuilder(params);
builder.directory(new File("/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2"));
builder.redirectOutput(Redirect.INHERIT);
Process process = builder.start();
process.waitFor();
}
}
{code}
The output is:
{code}
Exception in thread "main" java.io.IOException: Cannot run program "oc" (in directory ""/Users/adietish/Downloads/oc binaries/ocp-3.4.1.1.2""): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at Main.main(Main.java:17)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 1 more
{code}
> 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.5.0.AM1
>
> Attachments: ProcessMain.java
>
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (JBIDE-24448) Application wizard: error decoration is not removed when I correct "Custom Template" url to be valid
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-24448?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-24448:
-------------------------------------
Steps to Reproduce:
See screencast.
# EXEC: launch application wizard and select "Custom Template" tab
# EXEC: start typing some url
# ASSERT: the url text field is decorated with an error marker as long as the url is not valid. The same error is show in the title area.
# EXEC: continue typing until the url is a formally valid url
Result:
The error disappears in the title area but the error decoration to the text field wont go away.
It only disappears if you resize the window.
was:See screencast.
> Application wizard: error decoration is not removed when I correct "Custom Template" url to be valid
> ----------------------------------------------------------------------------------------------------
>
> Key: JBIDE-24448
> URL: https://issues.jboss.org/browse/JBIDE-24448
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.4.4.Final
> Environment: Win 10.
> Reporter: Radim Hopp
> Priority: Minor
> Labels: application_wizard, openshift_v3
> Fix For: 4.5.0.AM1
>
>
> Error decorator is not redrawn until windows is resized.
> See screencast: https://youtu.be/BQo-NtDS_c0
> For more detailed info, see JBIDE-23473
> I tried it on Win10 & Fedora 25.... Win10 has this issue, Fedora 25 does not.
> Mac is not affected either.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months