[jbosstools-issues] [JBoss JIRA] (JBIDE-20306) Central is unable to load icons, when there is space in path to workspace
Konstantin Marmalyukov (JIRA)
issues at jboss.org
Mon Jul 20 10:20:03 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-20306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090840#comment-13090840 ]
Konstantin Marmalyukov commented on JBIDE-20306:
------------------------------------------------
[~fbricon] I guess there is no need to decode [here|https://github.com/jbosstools/jbosstools-central/blob/master/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/internal/ImageUtil.java#L182]. Decoding happens while reading streams in inherited URLStreamJarProvider. WDYT?
> Central is unable to load icons, when there is space in path to workspace
> -------------------------------------------------------------------------
>
> Key: JBIDE-20306
> URL: https://issues.jboss.org/browse/JBIDE-20306
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.3.0.Beta2
> Environment: JBDS 9.0.0.Beta2, Fedora 22
> Reporter: Radim Hopp
> Assignee: Fred Bricon
> Fix For: 4.3.0.CR1
>
>
> Icons for projects in Central (HTML5 Project, Java EE Web Project, ...) cannot be loaded, when there is space character in path to workspace.
> Console ouptut:
> {noformat}org.eclipse.core.runtime.CoreException: Error extracting jar:file:/home/rhopp/workspace-with space/.metadata/.plugins/org.jboss.tools.central/proxyWizards/1437377857515/com.jboss.jbds.central.discovery_9.0.0.Beta2_v20150717_1337_B72.jar_7206157800595541887.jar!/images/wizards/newcordovaprj_wiz.png
> at org.jboss.tools.central.internal.ImageUtil.throwCoreException(ImageUtil.java:169)
> at org.jboss.tools.central.internal.ImageUtil.access$0(ImageUtil.java:167)
> at org.jboss.tools.central.internal.ImageUtil$UrlStreamJarProvider.readStream(ImageUtil.java:143)
> at org.jboss.tools.central.internal.ImageUtil.getImageAsLocalUrl(ImageUtil.java:90)
> at org.jboss.tools.central.internal.JsonUtil.jsonifyWizards(JsonUtil.java:40)
> at org.jboss.tools.central.editors.GettingStartedHtmlPage.getLoadProxyWizardsScript(GettingStartedHtmlPage.java:511)
> at org.jboss.tools.central.editors.GettingStartedHtmlPage.resetWizards(GettingStartedHtmlPage.java:465)
> at org.jboss.tools.central.editors.GettingStartedHtmlPage.onProxyWizardUpdate(GettingStartedHtmlPage.java:470)
> at org.jboss.tools.central.internal.discovery.wizards.ProxyWizardManager.notifyListeners(ProxyWizardManager.java:276)
> at org.jboss.tools.central.internal.discovery.wizards.ProxyWizardManager.loadWizards(ProxyWizardManager.java:116)
> at org.jboss.tools.central.internal.discovery.wizards.ProxyWizardUpdateJob.run(ProxyWizardUpdateJob.java:45)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.net.URISyntaxException: Illegal character in path at index 31: file:/home/rhopp/workspace-with space/.metadata/.plugins/org.jboss.tools.central/proxyWizards/1437377857515/com.jboss.jbds.central.discovery_9.0.0.Beta2_v20150717_1337_B72.jar_7206157800595541887.jar
> at java.net.URI$Parser.fail(URI.java:2848)
> at java.net.URI$Parser.checkChars(URI.java:3021)
> at java.net.URI$Parser.parseHierarchical(URI.java:3105)
> at java.net.URI$Parser.parse(URI.java:3053)
> at java.net.URI.<init>(URI.java:588)
> at org.jboss.tools.central.internal.ImageUtil$UrlStreamJarProvider.readStream(ImageUtil.java:133)
> ... 9 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jbosstools-issues
mailing list