Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use unmasked URIs for RDDL; also, disable RDDL parsing by default#255

Merged
ndw merged 1 commit intoxmlresolver:mainfrom
ndw:iss-253
Jul 17, 2025
Merged

Use unmasked URIs for RDDL; also, disable RDDL parsing by default#255
ndw merged 1 commit intoxmlresolver:mainfrom
ndw:iss-253

Conversation

@ndw
Copy link
Collaborator

@ndw ndw commented Jul 17, 2025

Fix #253

By default jar: URIs are masked. If a resource is resolved locally, but the resolved location is in a jar: file, we return the original URI not the resolved URI. This is necessary because Java.net.URI doesn’t understand jar: URIs. (Oh, the irony.)

Unfortunately, when the RDDL parser asked for the resolved URI, it got back the original too. So it would go attempt to parse the “real” location not the resolved resource. That’s been fixed. It now parses the unmasked URI, not the resolved URI.

This is also the second bug (I think) caused by RDDL parsing. With some regret, I’m going to disable RDDL parsing by default. That means it will get used far, far less often, but since it’s not widely supported, that probably won’t have a huge impact. If you’re relying on it, remember to enable it.

Fix xmlresolver#253

By default jar: URIs are masked. If a resource is resolved locally, but the
resolved location is in a jar: file, we return the original URI not the resolved
URI. This is necessary because Java.net.URI doesn’t understand jar: URIs. (Oh,
the irony.)

Unfortunately, when the RDDL parser asked for the resolved URI, it got back the
original too. So it would go attempt to parse the “real” location not the
resolved resource. That’s been fixed. It now parses the unmasked URI, not the
resolved URI.

This is also the second bug (I think) caused by RDDL parsing. With some regret,
I’m going to disable RDDL parsing by default. That means it will get used far,
far less often, but since it’s not widely supported, that probably won’t have a
huge impact. If you’re relying on it, remember to enable it.
@ndw ndw merged commit f793496 into xmlresolver:main Jul 17, 2025
2 checks passed
@ndw ndw deleted the iss-253 branch July 17, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolver attempts to resolve XSDs from w3c.org site [rename]

1 participant