Ticket UUID: | c315712173b359bcb61b3d3a8a8dbb91089f66ea | |||
Title: | uri::resolve doesn't handle scheme-relative urls | |||
Type: | Bug | Version: | 1.2.4 | |
Submitter: | anonymous | Created on: | 2015-03-12 21:01:26 | |
Subsystem: | uri | Assigned To: | aku | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2015-04-15 19:49:47 | |
Resolution: | Fixed | Closed By: | aku | |
Closed on: | 2015-04-15 19:49:47 | |||
Description: |
A uri with an authority but no scheme should be resolved correctly. Example: uri::resolve http://www.foo.com/ //www.bar.com/ should be http://www.bar.com uri::resolve https://www.foo.com/ //www.bar.com/ should be https://www.bar.com/ Currently these will use the authority of the base url. http://tools.ietf.org/html/rfc3986#section-4.2 | |||
User Comments: |
aku added on 2015-04-15 19:49:47:
Based on the given examples testcases were added, and resolve modified to make them pass while not failing other cases. Considered fixed with revision [a29e0299a8]. Pushed. Version bumped to 1.2.5. aku added on 2015-04-14 23:24:03: Lets see if the examples are good enough to make test-cases from, and from there then a fix. |