Bug 67418 - Startup Fails If Install Location Path Contains "#"
Summary: Startup Fails If Install Location Path Contains "#"
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2004-06-16 04:54 EDT by Markus Stier CLA
Modified: 2005-06-08 14:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Stier CLA 2004-06-16 04:54:11 EDT
If the eclipse platform is installed within a directory which path contains 
a "#" (numbersign), startup fails. The class org.eclipse.core.launcher.Main 
ignores the characters following the "#".
This is bad especially for RCP-Applications, which might be installed anywhere 
on the enduser system.

Steps:
-create a directory like "C:\dev\#work\myapp"
-copy required plugins and startup.jar to that directory
-execute "java -cp startup.jar org.eclipse.core.launcher.Main -consoleLog -
debug -application de.test.myapp %*"
(you don't need an RCP-Application to reproduce- Main won't reach the point...)

Result:
The debug output will state the Install Location as "file:/C:/dev/"
Comment 1 Jeff McAffer CLA 2004-06-16 10:48:11 EDT
readme
Comment 2 Jeff McAffer CLA 2005-05-19 16:43:41 EDT
another one from Equinox.

Review and assign milestone appropriately.
Comment 3 Pascal Rapicault CLA 2005-05-21 00:03:06 EDT
investigate for rc1
Comment 4 Pascal Rapicault CLA 2005-05-26 10:31:44 EDT
new File("d:/tmp#/foo.txt).toURL() returns an invalid URL.
This is a wellknown sun bug:
- http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4472849
- http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6179468

The workaround proposed can't be applied because foundation does not have URIs
and URIs do not support UNC paths.

We will readme the issue.
Comment 5 John Arthorne CLA 2005-06-08 14:17:14 EDT
This was already added to the readme for 3.0, and is still in the readme for
3.1. Closing.