Skip Menu |

This queue is for tickets about the ParseUtil-Domain CPAN distribution.

Report information
The Basics
Id: 93559
Status: resolved
Priority: 0/
Queue: ParseUtil-Domain

People
Owner: Nobody in particular
Requestors: Mayur_Kulkarni [...] symantec.com
Cc:
AdminCc:

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



Subject: Bug related to URLs starting with '0' (zero)
Date: Thu, 6 Mar 2014 03:24:01 -0800
To: "bug-ParseUtil-Domain [...] rt.cpan.org" <bug-ParseUtil-Domain [...] rt.cpan.org>
From: Mayur Kulkarni <Mayur_Kulkarni [...] symantec.com>
Hi, We are seeing these URLs: 0.18.g4syumvlxgw9.net 0.5.8plqin63zek2.net 0.rq.g4syumvlxgw9.net When we submit these URLs to parse_domain, it gives out an error: error = Error processing domain. Please report to package maintainer. empty segment On digging in the source code, I found that an if condition was failing to find segments, specifically because of URL starting with '0'. This problem was found in the 'sub _punycode_segments' and condition: if (not $segment || $segment eq '') { return { 'error' => "Error processing domain. Please report to package maintainer. empty segment" }; } #end if If $segment variable was found to be zero, as in the above sample urls, this subroutine would fail and return no values. Please do check the above bug and please let us know of any actions taken. Thanks Show quoted text
________________________________ Mayur Kulkarni Software Engineer, Star Technology & Response Symantec Corporation www.symantec.com<http://www.symantec.com/> Office: +91 20 67154244 Mobile: +91 9371290112 mayur_kulkarni@symantec.com<mailto:mayur_kulkarni@symantec.com> [cid:image001.png@01CF395C.ACCCEF80]
Download image001.png
image/png 5.9k
image001.png
Hi, What version are you using? That particular line of code was replaced with an actual "defined" check some time ago. Cheers, Travis On Thu Mar 06 06:24:32 2014, Mayur_Kulkarni@symantec.com wrote: Show quoted text
> Hi, > > We are seeing these URLs: > > 0.18.g4syumvlxgw9.net > 0.5.8plqin63zek2.net > 0.rq.g4syumvlxgw9.net > > When we submit these URLs to parse_domain, it gives out an error: > error = Error processing domain. Please report to package maintainer. > empty segment > > On digging in the source code, I found that an if condition was > failing to find segments, specifically because of URL starting with > '0'. > > This problem was found in the 'sub _punycode_segments' and condition: > > if (not $segment || $segment eq '') { > return { > 'error' => "Error processing domain. Please report to package > maintainer. empty segment" > }; > } #end if > > If $segment variable was found to be zero, as in the above sample > urls, this subroutine would fail and return no values. > > Please do check the above bug and please let us know of any actions > taken. > > Thanks > ________________________________ > Mayur Kulkarni > Software Engineer, Star Technology & Response > Symantec Corporation > www.symantec.com<http://www.symantec.com/> > > Office: +91 20 67154244 > Mobile: +91 9371290112 > > mayur_kulkarni@symantec.com<mailto:mayur_kulkarni@symantec.com> > > > [cid:image001.png@01CF395C.ACCCEF80]