Clojure

clojure.java.io/Coercions doesn't handle URL-escaping

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: Release 1.3
  • Fix Version/s: Release 1.4
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

clojure.java.io/Coercions implementations for URL -> File and File -> URL don't take URL escaping into account, and I think they should.

This breaks things like slurping a resource file that has spaces in the path.

Example behavior here: https://gist.github.com/1398972

I will post a link to the clojure-dev list discussion in the comments once I have the link for this ticket to post there.

Activity

Hide
Stuart Sierra added a comment -

Vetted & assigned to "Approved Backlog" in preparation for next release.

Show
Stuart Sierra added a comment - Vetted & assigned to "Approved Backlog" in preparation for next release.
Hide
Colin Jones added a comment -

Updated patch to fix the issue David Powell brought up on the dev list, so that "+" in a URL does not get translated to " " in a File.

Show
Colin Jones added a comment - Updated patch to fix the issue David Powell brought up on the dev list, so that "+" in a URL does not get translated to " " in a File.
Hide
Colin Jones added a comment -

clojure-dev posting with more details (and presumably forthcoming discussion): https://groups.google.com/d/topic/clojure-dev/bTNX4pt_b4w/discussion

Show
Colin Jones added a comment - clojure-dev posting with more details (and presumably forthcoming discussion): https://groups.google.com/d/topic/clojure-dev/bTNX4pt_b4w/discussion

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: