This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2131 - Fatal error handling for non-HTML output formats
Summary: Fatal error handling for non-HTML output formats
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC All
: P2 normal
Target Milestone: 1.0
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://validator.w3.org/check?uri=htt...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-11 05:18 UTC by Bj
Modified: 2007-05-17 04:28 UTC (History)
0 users

See Also:


Attachments

Description Bj 2005-09-11 05:18:51 UTC
http://validator.w3.org/check?uri=http://example.invalid&output=n3

"end of document in prolog" might not be the best way to handle this; HEAD 
inherits this problem from 0.7.x; I'm not sure though what should be done here, 
the non-HTML output modes are not really designed to handle this as yet.
Comment 1 Olivier Thereaux 2005-10-18 07:28:21 UTC
The XML (soon-to-be soap) output has "fault" messages for this exact purpose. Not sure about earl/n3.
Comment 2 Olivier Thereaux 2007-03-28 01:47:11 UTC
(In reply to comment #1)
> The XML (soon-to-be soap) output has "fault" messages for this exact purpose.
> Not sure about earl/n3.

Earl output will be updated in the near future, with the update of the earl spec.
Targeting a future release.
Comment 3 Olivier Thereaux 2007-05-17 04:28:22 UTC
Note on the issue: the brokenness mostly comes from sub abort_if_error_flagged() which does not take into account outputs other than html. 

The issue is somewhat alleviated for the soap output by a hack that passes all the File->{Templates}->{Error}->param()s to the SOAPFault template, but it would be good to rewrite this with a cleaner model where:

* for all of validation parameters are passed to only two html::template objects (output and fatal error) - or only one.
* at output time, the template is assigned to a specific output