tools.namespace

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

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

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.

Activity

Hide
Stuart Sierra added a comment -

Mark old resolved issues as 'closed'

Show
Stuart Sierra added a comment - Mark old resolved issues as 'closed'
Hide
Stuart Sierra added a comment -

Applied in commit 8f116ba8c6944acc347cba97db0244e247021016

Show
Stuart Sierra added a comment - Applied in commit 8f116ba8c6944acc347cba97db0244e247021016

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: