Project

General

Profile

Actions

Bug #17293

closed

URI.parse fails to parse correctly URN or other special characters in path/url

Added by greg.howdeshell (Greg Howdeshell) over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:100667]

Description

URI.parse looks to fail parsing endpoints that have special characters. For example:

url = 'http://foobar.com/#/applications/'
path = 'my_application'
URI.join(url, path).to_s

The result renders http://foobar.com/my_application.

Or in the case of executing an API marked by URNs so the ID field in my GET request is something like

key = 'urn:api:baz:1'
url = 'http://foobar.com/api'
URI.join(url, key).to_s

The result renders urn:api:baz:1.

Actions

Also available in: Atom PDF

Like0
Like0