Resource URI verfication rejects valid URIs

Issue #371 resolved
Former user created an issue

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)

  1. Emond Papegaaij

    I created this ticket with an expired session at Bitbucket. Somehow, it caused the ticket to be created with a ‘Former user’.

  2. Log in to comment