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 4516 - Escape SGML:Parser:OpenSP's croaking on some error messages
Summary: Escape SGML:Parser:OpenSP's croaking on some error messages
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.8.0b1
Hardware: All All
: P2 normal
Target Milestone: 0.8.0
Assignee: Terje Bless
QA Contact: qa-dev tracking
Depends on:
Reported: 2007-05-01 15:03 UTC by Olivier Thereaux
Modified: 2008-06-15 18:43 UTC (History)
0 users

See Also:

test case (103 bytes, text/html)
2008-06-15 18:43 UTC, Olivier Thereaux

Description Olivier Thereaux 2007-05-01 15:03:54 UTC
As reported by Frank on www-validator:
| Unexpected error message format ((invalid
location):47239440633056.2322:W: URL | Redirected to
| ""
| ) at /usr/local/lib/perl/5.8.8/SGML/Parser/ line 45

SPO has a regexp to match what is an acceptable error message from OpenSP
    my @comp = split(/(?:^|\n)(?:<[^>]+>)?\Q$name\E:(\d+):(\d+):\s*/, $mess);
but this regexp seems to not catch some rare messages (in this case, a redirected DTD SI)
Comment 1 Olivier Thereaux 2007-05-01 15:05:36 UTC
Fixed in CVS:
by eval{}ing the call to split_message and moving on if the routine has croak'd.

Comment 2 Olivier Thereaux 2008-06-15 18:43:38 UTC
Created attachment 557 [details]
test case

the original (online) test case is no longer displaying the same behavior, so creating a new test case with:
* a system ID
* redirecting
* to a 404