-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent handling of URLs in hrefs and rlinks #12
Comments
david-waltermire
added a commit
to david-waltermire/metaschema-java-old
that referenced
this issue
May 13, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. Exposed URISyntaxExceptions on all loader URI-based methods.
8 tasks
david-waltermire
added a commit
to usnistgov/metaschema-java
that referenced
this issue
May 13, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. (#28) Exposed URISyntaxExceptions on all loader URI-based methods.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 16, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
8 tasks
8 tasks
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 17, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 17, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 17, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 17, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 18, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to usnistgov/metaschema-java
that referenced
this issue
May 18, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. (#28) Exposed URISyntaxExceptions on all loader URI-based methods.
david-waltermire
added a commit
to usnistgov/metaschema-java
that referenced
this issue
May 18, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. (#28) Exposed URISyntaxExceptions on all loader URI-based methods.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 18, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
May 18, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12.
12 tasks
david-waltermire
added a commit
to usnistgov/metaschema-java
that referenced
this issue
Jun 21, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. (#28) Exposed URISyntaxExceptions on all loader URI-based methods.
david-waltermire
added a commit
to usnistgov/metaschema-java
that referenced
this issue
Jun 21, 2022
… validators. Partially addresses usnistgov/liboscal-java#12. (#28) Exposed URISyntaxExceptions on all loader URI-based methods.
david-waltermire
added a commit
to david-waltermire/liboscal-java
that referenced
this issue
Jun 29, 2022
…resolved. Added support for a custom EntityResolver providing an extension point for custom URI resolution. Resolves usnistgov#12. (usnistgov#20)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The
ProfileResolver
treats an absolute URL at/profile/import/@href
differently to a/profile/import/@href
that links to a/profile/back-matter/resource
with an absolute URL at/profile/back-matter/resource/rlink
. The former is passed toIDocumentLoader.loadAsNodeItem(@NotNull URL url)
, but the latter is attempted to be resolved and passed as a stream viaURISource.newInputStream()
. Therefore, theDocumentLoader
can not handle the URL as expected.Who is the bug affecting?
liboscal-java users using a custom
DocumentLoader
during profile resolution.What is affected by this bug?
Breaks profile resolution.
When does this occur?
On profile resolution when:
DocumentLoader
that is expecting to handle the external URI.Profile
contains a/profile/import/@href
with a/back-matter/resource
link and the/back-matter/resource
contains an absolute URL at/profile/back-matter/resource/rlink/@href
How do we replicate the issue?
Profile
below and attempt to rewrite the URL before resolution via a customDocumentLoader
to the abc-simple_catalog.xml file.Expected behavior (i.e. solution)
The
ProfileResolver
should pass all externalhref
toIDocumentLoader.loadAsNodeItem(@NotNull URL url)
for processing. It would also be acceptable for a newIDocumentLoader.loadAsNodeItem(@NotNull URI uri)
interface to be developed and used, aligning closely with theuri-reference
within the data model.Other Comments
None
The text was updated successfully, but these errors were encountered: