Can't find files when their absolute path contains a space

Description

The URLClassloader getURLs call is returning URLs that contain %20 instead of spaces. The current code calls .getPath, which leaves the %20 in there and ultimately can't find the directory. Changing the .getPath call to .toURI calls a different java.io.File constructor and fixed the problem for me.

Environment

None

Attachments

1
  • 12 Dec 2013, 08:34 PM

Activity

Show:

Stuart Sierra January 10, 2014 at 5:26 PM

Mark old resolved issues as 'closed'

Stuart Sierra December 13, 2013 at 3:22 PM

Applied in commit 8f116ba8c6944acc347cba97db0244e247021016

Completed

Details

Assignee

Reporter

Patch

Code

Priority

Created December 12, 2013 at 8:34 PM
Updated January 10, 2014 at 5:26 PM
Resolved January 10, 2014 at 5:26 PM