<< Back to previous view

[CLJ-885] clojure.java.io/Coercions doesn't handle URL-escaping Created: 27/Nov/11  Updated: 09/Dec/11  Resolved: 09/Dec/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.3
Fix Version/s: Release 1.4

Type: Defect Priority: Minor
Reporter: Colin Jones Assignee: Unassigned
Resolution: Completed Votes: 1
Labels: None

Attachments: Text File 0001-Handle-URL-escaping-in-both-directions-in-java.io-Co.patch     Text File 0002-Handle-URL-escaping-in-both-directions-in-java.io-Co.patch    
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.



 Comments   
Comment by Colin Jones [ 27/Nov/11 10:37 PM ]

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

Comment by Colin Jones [ 30/Nov/11 12:31 PM ]

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.

Comment by Stuart Sierra [ 30/Nov/11 2:04 PM ]

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

Generated at Sat Apr 19 20:31:34 CDT 2014 using JIRA 4.4#649-r158309.