NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 749 - improve reporting for IRI validation errors
improve reporting for IRI validation errors
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 enhancement
Assigned To: Michael[tm] Smith
http://lists.w3.org/Archives/Public/w...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-28 02:32 CEST by Michael[tm] Smith
Modified: 2010-12-17 12:43 CET (History)
0 users

See Also:


Attachments
test cases (as text/html) (1.18 KB, text/html)
2010-05-31 12:23 CEST, Michael[tm] Smith
Details
junk -- ignore (1.18 KB, text/plain)
2010-05-31 12:25 CEST, Michael[tm] Smith
Details
test cases (as text/plain) (1.18 KB, text/plain)
2010-05-31 12:32 CEST, Michael[tm] Smith
Details
patch (8.01 KB, patch)
2010-05-31 12:41 CEST, Michael[tm] Smith
Details
updated patch (8.08 KB, patch)
2010-06-02 11:46 CEST, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2010-05-28 02:32:57 CEST
A user on the www-validator list reported that the message "DOUBLE_WHITESPACE in PATH" for the case href=" " (single space) is misleading. http://lists.w3.org/Archives/Public/www-validator/2010May/0048.html

In general, the raw Jena IRI violation codes like "DOUBLE_WHITESPACE" are not particularly helpful to end users anyway. However, given that documentation/explanations for the violation codes is available online. at URLs with fragment IDs for each of the codes; e.g.:

  http://jena.sourceforge.net/iri/javadoc/com/hp/hpl/jena/iri/ViolationCodes.html#DOUBLE_WHITESPACE

...maybe we can help mitigate the problem by having the message-emitter backend take the text of the violation codes and make  it into hyperlinked text with the corresponding Jena IRI violation-code documentation as the target.
Comment 1 Michael[tm] Smith 2010-05-28 08:35:50 CEST
It occurs to me now that linking to the (third party) Jena docs is probably not ideal. It also occurs to me that maybe we don't really need to introduce hyperlinks here, but instead just need to translate the (arcane) Jena violation codes into something understandable; e.g., instead of doing this:

  Bad value for attribute href on element a: DOUBLE_WHITESPACE in PATH.

...we instead do:

  Bad value for attribute href on element a: The IRI path component contains illegal whitespace.
Comment 2 Michael[tm] Smith 2010-05-31 12:23:09 CEST
Created attachment 177 [details]
test cases (as text/html)

some test cases
Comment 3 Michael[tm] Smith 2010-05-31 12:25:56 CEST
Created attachment 178 [details]
junk -- ignore

HTML file with test cases
Comment 4 Michael[tm] Smith 2010-05-31 12:32:09 CEST
Created attachment 179 [details]
test cases (as text/plain)
Comment 5 Michael[tm] Smith 2010-05-31 12:41:15 CEST
Created attachment 180 [details]
patch
Comment 6 Michael[tm] Smith 2010-06-02 11:46:01 CEST
Created attachment 181 [details]
updated patch
Comment 7 Michael[tm] Smith 2010-11-29 12:48:10 CET
syntax r576 = r927484d
https://github.com/validator/syntax/commit/927484d7d7af3f20c0cedcb160530fe6d44c421a