Bug 183684 - [testing] JSFTestUtils.getAbsolutePath() fails with spaces in path name
Summary: [testing] JSFTestUtils.getAbsolutePath() fails with spaces in path name
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Cameron Bateman CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-04-23 19:44 EDT by Cameron Bateman CLA
Modified: 2008-04-15 17:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Bateman CLA 2007-04-23 19:44:58 EDT
This method was added to allow an absolute path to be generated for a bundle relative one.  To do this it tries to use the bundle resolver to get a file:// URL pointing to a bundle entry.  But to convert this to a usable path it converts the URL to a URI, passes that to a java.io.File to get the disk-based path.  But the conversion to URI throws a syntax exception if there are spaces in the file.

To reproduce, run TestJARFileJSFAppConfigProvider from a ws that has a space in it's path name (i.e. C:\Program Files\myworkspace).
Comment 1 Raghunathan Srinivasan CLA 2008-04-15 17:23:53 EDT
junits