Skip Menu |
 

This queue is for tickets about the Net-IP CPAN distribution.

Report information
The Basics
Id: 92211
Status: resolved
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: phil [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.26



From phil [...] cpanel.net Thu Jan 16 15: 27:29 2014
MIME-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Spam-Status: No, score=-2.422 tagged_above=-99.9 required=10 tests=[BAYES_20=-0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.121, SPF_HELO_PASS=-0.001] autolearn=ham
X-Mailer: Apple Mail (2.1510)
X-Spam-Flag: NO
Message-ID: <B086CE6F-ECD1-4CE6-BC12-35B783B8CE0D [...] cpanel.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_87BF2F75-E63F-455E-A3A2-1EB4C426DFE5"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - mx1.cpanel.net
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - cpanel.net
X-Spam-Score: -2.422
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B9B18240E82 for <cpan-bug+Net-IP [...] hipster.bestpractical.com>; Thu, 16 Jan 2014 15:27:29 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y4ym5ZWal+wk for <cpan-bug+Net-IP [...] hipster.bestpractical.com>; Thu, 16 Jan 2014 15:27:28 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3BE7C240E7F for <bug-Net-IP [...] rt.cpan.org>; Thu, 16 Jan 2014 15:27:28 -0500 (EST)
Received: (qmail 19431 invoked by alias); 16 Jan 2014 20:27:27 -0000
Received: from mx1.cpanel.net (HELO mx1.cpanel.net) (208.74.121.68) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 16 Jan 2014 12:27:25 -0800
Received: from ng1.cptxoffice.net ([208.74.121.102]:1042 helo=[10.1.4.95]) by mx1.cpanel.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <phil [...] cpanel.net>) id 1W3tX7-0005YA-S7 for bug-Net-IP [...] rt.cpan.org; Thu, 16 Jan 2014 14:27:21 -0600
Delivered-To: cpan-bug+Net-IP [...] hipster.bestpractical.com
Subject: Valid IPv6 range is rejected
Return-Path: <phil [...] cpanel.net>
X-RT-Mail-Extension: net-ip
X-Original-To: cpan-bug+Net-IP [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Thu, 16 Jan 2014 14:27:23 -0600
X-Spam-Level:
X-Get-Message-Sender-Via: mx1.cpanel.net: authenticated_id: phil [...] cpanel.net
To: bug-Net-IP [...] rt.cpan.org
From: Phil King <phil [...] cpanel.net>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 620
Download (untitled) / with headers
text/plain 620b
The validation rules examine an IPv6 address, looking for a maximum of 7 colons. I have encountered a specific case, when describing a /112 range, where 8 colons is legal: e.g. 2001:db8:3:4:5:6:7::/112 Here is a proposed solution: # Count octets my $n = ( $ip =~ tr/:/:/ ); - return 0 unless ( $n > 0 and $n < 8 ); + return 0 unless ( $n > 0 and $n < ( $ip =~ /::$/ ? 9 : 8 ) ); This address is legal, at least according to this utility: https://www.ultratools.com/tools/ipv6CIDRToRangeResult?ipAddress=2001%3Adb8%3A3%3A4%3A5%3A6%3A7%3A%3A%2F112 --- Phil King Product Owner The Angry Llama team
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 1955
MIME-Version: 1.0
In-Reply-To: <B086CE6F-ECD1-4CE6-BC12-35B783B8CE0D [...] cpanel.net>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <B086CE6F-ECD1-4CE6-BC12-35B783B8CE0D [...] cpanel.net>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-18343-1442873601-918.92211-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 349
Download (untitled) / with headers
text/plain 349b
On Thu Jan 16 15:27:30 2014, phil@cpanel.net wrote: Show quoted text
> The validation rules examine an IPv6 address, looking for a maximum of > 7 colons. I have encountered a specific case, when describing a /112 > range, where 8 colons is legal: > e.g. 2001:db8:3:4:5:6:7::/112
This is indeed a valid range. Similar fix was applied to 1.26. Thanks for the report!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.