From: greg.howdeshell@... Date: 2020-10-30T14:58:48+00:00 Subject: [ruby-core:100667] [Ruby master Bug#17293] URI.parse fails to parse correctly URN or other special characters in path/url Issue #17293 has been reported by greg.howdeshell (Greg Howdeshell). ---------------------------------------- Bug #17293: URI.parse fails to parse correctly URN or other special characters in path/url https://bugs.ruby-lang.org/issues/17293 * Author: greg.howdeshell (Greg Howdeshell) * Status: Open * Priority: Normal * ruby -v: 2.6.x * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- URI.parse looks to fail parsing endpoints that have special characters. For example: ``` ruby 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 ```ruby key = 'urn:api:baz:1' url = 'http://foobar.com/api' URI.join(url, key).to_s ``` The result renders `urn:api:baz:1`. -- https://bugs.ruby-lang.org/ Unsubscribe: