<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4516</bug_id>
          
          <creation_ts>2007-05-01 15:03:54 +0000</creation_ts>
          <short_desc>Escape SGML:Parser:OpenSP&apos;s croaking on some error messages</short_desc>
          <delta_ts>2008-06-15 18:43:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>0.8.0b1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-validator/2007Apr/0118.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.8.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Thereaux">ot</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14953</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-05-01 15:03:54 +0000</bug_when>
    <thetext>As reported by Frank on www-validator:
[[
| Unexpected error message format ((invalid
location):47239440633056.2322:W: URL | Redirected to
| &quot;http://www.xyzzy.claranet.de/w3c/html2070.dtd&quot;
| ) 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)(?:&lt;[^&gt;]+&gt;)?\Q$name\E:(\d+):(\d+):\s*/, $mess);
but this regexp seems to not catch some rare messages (in this case, a redirected DTD SI)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14954</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-05-01 15:05:36 +0000</bug_when>
    <thetext>Fixed in CVS:
http://lists.w3.org/Archives/Public/www-validator-cvs/2007May/0003.html
by eval{}ing the call to split_message and moving on if the routine has croak&apos;d.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20540</commentid>
    <comment_count>2</comment_count>
      <attachid>557</attachid>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-06-15 18:43:38 +0000</bug_when>
    <thetext>Created attachment 557
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</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>557</attachid>
            <date>2008-06-15 18:43:38 +0000</date>
            <delta_ts>2008-06-15 18:43:38 +0000</delta_ts>
            <desc>test case</desc>
            <filename>bogus-dtd-redirect.html</filename>
            <type>text/html</type>
            <size>103</size>
            <attacher name="Olivier Thereaux">ot</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgU1lTVEVNICJodHRwOi8vanVianViLnczLm9yZy9nbHJncmIiPgo8aHRt
bD48aGVhZD48dGl0bGU+dGVzdCBib2d1cyBEVEQgcmVkaXJlY3Q8L3RpdGxlPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>