Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 102685
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: amitsapre [...] gmail.com
Cc:
AdminCc:

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



Subject: Warning in URI/Escape.pm
Date: Wed, 11 Mar 2015 11:34:43 +0530
To: bug-URI [...] rt.cpan.org
From: Amit Sapre <amitsapre [...] gmail.com>
Hello, I keep getting this warning on console while running few scripts which uses URI. Use of uninitialized value in subroutine entry at /usr/lib/site_perl/URI/Escape.pm line 184. Not sure if this is a serious issue w.r.t module functionality. I am using URI version 1.65 Amit
On 2015-03-11 02:04:53, amitsapre@gmail.com wrote: Show quoted text
> Hello, > > I keep getting this warning on console while running few scripts which uses > URI. > > Use of uninitialized value in subroutine entry at > /usr/lib/site_perl/URI/Escape.pm line 184. > > Not sure if this is a serious issue w.r.t module functionality. I am using > URI version 1.65 >
Probably an undefined value is supplied to uri_escape_utf8. I can reproduce it with the latest URI (1.67) and this one-liner: $ perl5.20.2 -MURI::Escape=uri_escape_utf8 -we 'uri_escape_utf8(undef)' Use of uninitialized value in subroutine entry at /opt/perl-5.20.2/lib/site_perl/5.20.2/URI/Escape.pm line 184. So it's probably not an issue with URI::Escape (only that diagnostics could be better here).
On Wed Mar 11 02:19:42 2015, SREZIC wrote: Show quoted text
> On 2015-03-11 02:04:53, amitsapre@gmail.com wrote:
> > Hello, > > > > I keep getting this warning on console while running few scripts > > which uses > > URI. > > > > Use of uninitialized value in subroutine entry at > > /usr/lib/site_perl/URI/Escape.pm line 184. > > > > Not sure if this is a serious issue w.r.t module functionality. I am > > using > > URI version 1.65 > >
> > Probably an undefined value is supplied to uri_escape_utf8. I can > reproduce it with the latest URI (1.67) and this one-liner: > > $ perl5.20.2 -MURI::Escape=uri_escape_utf8 -we > 'uri_escape_utf8(undef)' > Use of uninitialized value in subroutine entry at /opt/perl- > 5.20.2/lib/site_perl/5.20.2/URI/Escape.pm line 184. > > So it's probably not an issue with URI::Escape (only that diagnostics > could be better here).
That reproduces it, but passing undef to uri_escape_utf8 is probably incorrect? The URLs that are driving this warning would be required in order to address this.