Community
Participate
Working Groups
1) Open an Eclipse that is installed at a path with a space in it 2) Create a plug-in project,add an extension that comes from the default target platform 3) Select the extension and click "Open extension point schema" Result: Nothing happens, no error dialog, no schema is opened Two fixes should be made: 1) OpenSchemaAction.run(), line 192 and 194, where we get a path from the url we should use the URIUtils to correctly handle spaces and other special characters. 2) Inside openSchemaFile and openSchemaJar, we should check that the file exists and report an error if it doesn't.
Fix should be well contained, consider for 3.6
See also bug 292938.
Created attachment 191755 [details] Patch
Created attachment 192707 [details] Final patch
Curtis, can you plz verify the patch once on linux? I have tested already for Mac and WinXp. I just want to be sure before checking this in.
Added a null check after decoding. Otherwise if there is a problem decoding the action would throw NPEs instead of putting up the error dialog. Fixed in HEAD.
(In reply to comment #4) > Created attachment 192707 [details] [diff] > Final patch URLDecoder is always wrong if you want to extract the path of an URL. It e.g. doesn't handle a "+" in the path properly. The right solution is url.toURI().getPath(). Filed bug 392950.