<?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>837</bug_id>
          
          <creation_ts>2004-08-09 04:05:02 +0000</creation_ts>
          <short_desc>Support for IPv6</short_desc>
          <delta_ts>2015-03-12 22:33:11 +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>check</component>
          <version>0.6.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://[2001:618:1:8000::5]/test/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Troels Arvin">troels</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          <cc>alexandre</cc>
    
    <cc>baryluk-w3-bugzilla</cc>
    
    <cc>inox</cc>
    
    <cc>jeromepoulin</cc>
    
    <cc>martin</cc>
    
    <cc>mmn</cc>
          
          <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>2127</commentid>
    <comment_count>0</comment_count>
    <who name="Troels Arvin">troels</who>
    <bug_when>2004-08-09 04:05:02 +0000</bug_when>
    <thetext>http://validator.w3.org/ doesn&apos;t support checking of pages in IPv6 hosts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14046</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-02-22 04:36:17 +0000</bug_when>
    <thetext>*** Bug 3322 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14047</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-02-22 04:39:24 +0000</bug_when>
    <thetext>The validator depends on libwww-perl (a.k.a LWP) for the HTTP layer, and is unlikely to support IPV6 until lwp does. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14048</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-02-22 04:42:25 +0000</bug_when>
    <thetext>See LWP bug:
http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1621152&amp;group_id=14630&amp;atid=364630</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19550</commentid>
    <comment_count>4</comment_count>
    <who name="Andre-John Mas">andrejohn.mas</who>
    <bug_when>2008-03-19 22:14:24 +0000</bug_when>
    <thetext>Is libwww-perl even active any more. The last mailing list entry I see, in the archive, is 2001 and there was a ticket opened with regards to IPv6 in 2006, with no activity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19574</commentid>
    <comment_count>5</comment_count>
    <who name="Andre-John Mas">andrejohn.mas</who>
    <bug_when>2008-03-21 01:34:00 +0000</bug_when>
    <thetext>I have made some changes to the libwww library and have made them available here:

http://www.geocities.com/ajmas/software/libwww-perl-5.808-ipv6.tgz

I am going to see whether I can eventually get something more official done.

It should also be noted that in doing this support for filtering out http://[::1] should be added to the validator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19575</commentid>
    <comment_count>6</comment_count>
      <attachid>538</attachid>
    <who name="Andre-John Mas">andrejohn.mas</who>
    <bug_when>2008-03-21 02:50:29 +0000</bug_when>
    <thetext>Created attachment 538
Modified W3C::Validator::UserAgent

This is a modified version of W3C::Validator::UserAgent to filter out [::1] addresses. I have explicitly tested for [::1] since I couldn&apos;t work out how to gethostbyname() and Net::IP to play nicely with IPv6. Additionally it would appear the $uri-&gt;host() operation is returning a bracketed IPv6 address when it should not be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19576</commentid>
    <comment_count>7</comment_count>
    <who name="Andre-John Mas">andrejohn.mas</who>
    <bug_when>2008-03-21 02:59:32 +0000</bug_when>
    <thetext>Changes in W3C::Validator::UserAgent seem to have issues. Ignore for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22979</commentid>
    <comment_count>8</comment_count>
    <who name="Martin List-Petersen">martin</who>
    <bug_when>2009-01-07 20:43:06 +0000</bug_when>
    <thetext>the URL mentioned doesn&apos;t seem to be accessible, but http://www.ipv6.sixxs.net/ or http://www.ipv6.airwire.ie/ could be used for a test.

Is there any progress on this ? </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54391</commentid>
    <comment_count>9</comment_count>
    <who name="Jérôme Poulin">jeromepoulin</who>
    <bug_when>2011-08-08 19:51:21 +0000</bug_when>
    <thetext>This bug has been open for so many years and still no progress. Adding me to CC anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61677</commentid>
    <comment_count>10</comment_count>
    <who name="Witold Baryluk">baryluk-w3-bugzilla</who>
    <bug_when>2011-12-16 17:22:57 +0000</bug_when>
    <thetext>Please. This doesn&apos;t even work if I use URL without literal IPv6 address, but DNS name which have only CNAME/AAAA records. Validator says:

500 Can&apos;t connect to some.domain.name.com:80 (Bad hostname &apos;some.domain.name.com&apos;)


Also validator.w3.org is not yet accessible over IPv6.

It looks that development (officially) moved to http://gitorious.org/projects/libwww-perl


A bug report is opened here https://rt.cpan.org/Public/Bug/Display.html?id=29468

Also same bug is reported in Debian repository http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614948

For example it looks that connection functionality was moved to libnet-http-perl module.

if someone with knowledge of validator code would step up, it should be less than hour of work to switch to new code, and test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61737</commentid>
    <comment_count>11</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-12-17 09:11:53 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; It looks that development (officially) moved to
&gt; http://gitorious.org/projects/libwww-perl

Actually it&apos;s https://github.com/gisle/libwww-perl

&gt; if someone with knowledge of validator code would step up, it should be less
&gt; than hour of work to switch to new code, and test it.

There&apos;s no need for any knowledge of the validator code yet.  When libwww-perl gains IPv6 support, then it&apos;s time to look into if something needs to be done on the validator side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118571</commentid>
    <comment_count>12</comment_count>
    <who name="Mikael Nordfeldth">mmn</who>
    <bug_when>2015-03-12 22:33:11 +0000</bug_when>
    <thetext>The following URL explains how to add IPv6 support to LWP: https://stackoverflow.com/questions/2215049/how-do-i-enable-ipv6-support-in-lwp

The &quot;best answer&quot;, by user cjm, was:

   It looks like you just need to use Net::INET6Glue::INET_is_INET6. To quote its example:
   
    use Net::INET6Glue::INET_is_INET6;
    use LWP::Simple;
    print get( &apos;http://[::1]:80&apos; );
    print get( &apos;http://ipv6.google.com&apos; );


Another answer, by Ondrej Prochazka, mentions that it might not work with &quot;$ua = new LWP::UserAgent();&quot;, then running -&gt;request on an object created from &quot;HTTP::Request&quot;. I.e. this doesn&apos;t work:

   use Net::INET6Glue::INET_is_INET6;
   use LWP::Simple;
   $ua = new LWP::UserAgent();
   my $req = new HTTP::Request(&quot;GET&quot;, &quot;http://[::1]/&quot;);
   my $res = $ua-&gt;request($req);


Do these hints help in any way to adapt the validator script to support IPv6 web sources?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>538</attachid>
            <date>2008-03-21 02:50:29 +0000</date>
            <delta_ts>2008-03-21 02:50:29 +0000</delta_ts>
            <desc>Modified W3C::Validator::UserAgent</desc>
            <filename>W3C-Validator-UserAgent.txt</filename>
            <type>text/plain</type>
            <size>1509</size>
            <attacher name="Andre-John Mas">andrejohn.mas</attacher>
            
              <data encoding="base64">cGFja2FnZSBXM0M6OlZhbGlkYXR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9zdCA9IGdldGhvc3RieW5hbWUoJHVyaS0+aG9zdCgp
KSkgewogICAgJGFkZHIgPSBpbmV0X250b3AoJGhvc3QtPmFkZHJ0eXBlLCRob3N0LT5hZGRyKCkp
IGlmICRob3N0LT5hZGRyKCk7CiAgICBpZiAoJGFkZHIgJiYgKG15ICRpcCA9IE5ldDo6SVAtPm5l
dygkYWRkcikpKSB7CiAgICAgICRpcHR5cGUgPSAkaXAtPmlwdHlwZSgpOwogICAgfQogIH0KICAK
ICBpZiAoICR1cmktPmhvc3QoKSA9PSAiWzo6MV0iIHx8ICgkaXB0eXBlICYmICRpcHR5cGUgbmUg
J1BVQkxJQycpICkgewogICAgbXkgJEZpbGUgPSAkc2VsZi0+eydXM0M6OlZhbGlkYXRvcjo6Rmls
ZSd9OwogICAgJEZpbGUtPnsnRXJyb3IgRmxhZ2dlZCd9ID0gMTsKICAgICRGaWxlLT57VGVtcGxh
dGVzfS0+e0Vycm9yfS0+cGFyYW0oZmF0YWxfaXBfZXJyb3IgICAgPT4gMSk7CiAgICAkRmlsZS0+
e1RlbXBsYXRlc30tPntFcnJvcn0tPnBhcmFtKGZhdGFsX2lwX2hvc3RuYW1lID0+IDEpCiAgICAg
IGlmICRhZGRyIGFuZCAkdXJpLT5ob3N0KCkgbmUgJGFkZHI7CiAgICAkRmlsZS0+e1RlbXBsYXRl
c30tPntFcnJvcn0tPnBhcmFtKGZhdGFsX2lwX2hvc3QgPT4KICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgKCR1cmktPmhvc3QoKSB8fCAndW5kZWZpbmVkJykgKTsKICAgICBy
ZXR1cm4gMDsKICB9CiAgcmV0dXJuIDE7Cn0K
</data>

          </attachment>
      

    </bug>

</bugzilla>