Opened 12 years ago

Last modified 12 years ago

#998 closed defect

uri->string / make-uri path encoding inconsistencies — at Version 1

Reported by: andyjpb Owned by: sjamaan
Priority: major Milestone: someday
Component: unknown Version: 4.8.x
Keywords: Cc:
Estimated difficulty:

Description (last modified by sjamaan)

(use uri-common)

#;11> (uri->string (uri-reference "./5:123"))
"./5:123"

Correct!

#;12> (uri->string (make-uri path: '("5:123")))
"5%3A123"

Incorrect!

#;13> (uri->string (make-uri path: '("." "5:123")))
"./5%3A123"

Incorrect!

make-uri appears to have its own path encoder which is encoding an overly broad set of characters. It also seems to lack the logic for consing "./" onto paths that have a colon in the first part.

Change History (1)

comment:1 Changed 12 years ago by sjamaan

Description: modified (diff)
Owner: set to sjamaan
Status: newaccepted
Note: See TracTickets for help on using tickets.