Community
Participate
Working Groups
Build Identifier: I20100608-0911 Attempts to start the testing tool in v8.2.X result in error " ... choose a writable location using the '-configuration' . ERROR MESSAGE The error message opens immediately, even before the workspace dialog box. An example of the full error message is as follows. Note the trailing space in the path. The configuration area at 'G:\IBM\RFT\eclipse\conf ' is not writable. Please choose a writable location using the '-configuration' command line option. The value of osgi.configuration.area from config.ini contains a trailing space. Eclipse 3.5 does not have this issue. RATLC02574293 Reproducible: Always Steps to Reproduce: 1.Add the following line to [<code>]<install dir>\configuration\config.ini[</code>] with a trailing space. osgi.configuration.area=F\:\\IBM\\RFT\\eclipse\\conf Where F: is the user's home drive. 2. Start Eclipse
Not sure if it is framework or launcher reading this. We should be able to just trim() the input.
(In reply to comment #1) > Not sure if it is framework or launcher reading this. We should be able to just > trim() the input. Is there ever valid a case where the folder would really have a leading or trailing space? Or is that simply a degenerate case and we should be lenient on the input and assume the configuration really did not intend to include the leading/trailing spaces?
Trailing whitespace is technically legal in Unix filenames, and illegal in Windows. On Unix it is common if you actually want a trailing whitespace you need to surround with quotes, something like: osgi.configuration.area="/home/foo/file with space " Another option is using something like java.io.File#getCanonicalFile() which will cause the whitespace to be discarded on platforms where it is not valid.
I suggest we just trim the input on windows and leave it alone elsewhere. It is arguably not a bug on other platforms where trailing spaces are legal.
I think we would need to do the adjustments to the inputs in the methods org.eclipse.equinox.launcher.Main.buildURL(String, boolean) and org.eclipse.core.runtime.internal.adaptor.LocationHelper.buildURL(String, boolean)
Fixed in commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=87d904bb25c232845160fa7fac98be5ad82eebef