W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2007

[Bug 4516] Escape SGML:Parser:OpenSP's croaking on some error messages

From: <bugzilla@wiggum.w3.org>
Date: Tue, 01 May 2007 15:03:57 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1HittV-0001Iu-OL@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4516

           Summary: Escape SGML:Parser:OpenSP's croaking on some error
                    messages
           Product: Validator
           Version: 0.8.0b1
          Platform: All
               URL: http://lists.w3.org/Archives/Public/www-
                    validator/2007Apr/0118.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: ot@w3.org
         QAContact: www-validator-cvs@w3.org


As reported by Frank on www-validator:
[[
| Unexpected error message format ((invalid
location):47239440633056.2322:W: URL | Redirected to
| "http://www.xyzzy.claranet.de/w3c/html2070.dtd"
| ) at /usr/local/lib/perl/5.8.8/SGML/Parser/OpenSP.pm 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)
Received on Tuesday, 1 May 2007 15:04:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:22 UTC