Resource URI verfication rejects valid URIs
Issue #371
resolved
The specification states that the resource URIs MUST BE absolute, MUST NOT have a fragment and SHOULD NOT have a query (https://datatracker.ietf.org/doc/html/rfc8707#section-2). The current verification rejects all URIs that do not have a host, which is not according to spec:
urn ==> "urn:uuid:33336dcd-a239-444a-90ae-76d381c3e6d5"
jshell> URI.create(urn).isAbsolute()
$14 ==> true
jshell> URI.create(urn).getHost()
$15 ==> null
Also, the check should not reject URIs with a query. The spec only recommends against it, but does not forbid them.
Comments (3)
-
-
- changed status to open
Ouch. Thanks for the report.
-
- changed status to resolved
Fix landed: 6edf65b
Release will be in 9.12.
- Log in to comment
I created this ticket with an expired session at Bitbucket. Somehow, it caused the ticket to be created with a ‘Former user’.