NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 721 - data: scheme URIs with a fragment id are reported as errors
data: scheme URIs with a fragment id are reported as errors
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-25 20:13 CET by Yudai IWASAKI
Modified: 2010-06-22 10:15 CEST (History)
1 user (show)

See Also:


Attachments
a patch for the bug 721 (4.36 KB, patch)
2010-05-25 12:02 CEST, Yudai IWASAKI
Details
keeping it as errors, and showing user friendly message (4.58 KB, patch)
2010-05-25 12:49 CEST, Yudai IWASAKI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yudai IWASAKI 2010-02-25 20:13:34 CET
The validator raises errors when given data: scheme URIs with a fragment id (eg. "data:text/html;base64,Zm9vYmFy#frag"). This behavior does not conform to RFC 3986. 

RFC 3986 says: 
"Fragment identifier semantics are independent of the URI scheme and thus cannot be redefined by scheme specifications."
Comment 1 Yudai IWASAKI 2010-05-25 12:02:28 CEST
Created attachment 167 [details]
a patch for the bug 721

Reusing Jena's IRI object to extract the PATH part to remove the fragment part of the URL.
If a string URL given, create a new IRI object.
Comment 2 Yudai IWASAKI 2010-05-25 12:49:21 CEST
Created attachment 168 [details]
keeping it as errors, and showing user friendly message
Comment 3 Henri Sivonen 2010-06-22 10:15:47 CEST
Landed and deployed. Thank you.