Skip Menu |

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id: 17767
Status: open
Priority: 0/
Queue: Archive-Zip

People
Owner: Nobody in particular
Requestors: emmanuel.manchester314
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.16
Fixed in: 1.10



Subject: file not seekable
file not seekable with 1.16 whereas it is with older 1.10 ZIP module Hi, bear with me it is my first bug report This was in the source of tv_grab_uk_bleb ########################################################################## # Warning - Archive::Zip versions 1.11 to 1.13 contain a bug which ## causes tv_grab_uk_bleb to fail. Please downgrade to Archive::Zip 1.10 # # or upgrade to a later version if available. ########################################################################## This is the perl version I use This is perl, v5.8.6 built for i386-linux Linux localhost 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686 AMD Sempron(tm) unknown GNU/Linux $ head -2 /usr/lib/perl5/vendor_perl/5.8.5/Archive/Zip.pm #! perl -w # $Revision: 1.104.2.1 $ This is the error $ tv_grab_uk_bleb --output tototv --days 1 using config filename /home/myntl/.xmltv/tv_grab_uk_bleb.conf downloading listings http://www.bleb.org/tv/data/listings/1?format=XMLTV&file=zip&channels=bbc1,bbc2,itv1,ch4,five,bbc3&days=0: error: file not seekable at /usr/lib/perl5/vendor_perl/5.8.5/Archive/Zip.pm line 950 Archive::Zip::Archive::readFromFileHandle('Archive::Zip::Archive=HASH(0x851d070)', 'IO::Scalar=GLOB(0x8519218)') called at /usr/bin/tv_grab_uk_bleb line 177 line 177 and 178 are my $zip = Archive::Zip->new(); $zip->readFromFileHandle($fake_filehandle); With the 1.10 version it works ok (I just replaced Zip.pm by an older version) $ tv_grab_uk_bleb --output tototv --days 3 --offset 0 using config filename /home/myntl/.xmltv/tv_grab_uk_bleb.conf downloading listings http://www.bleb.org/tv/data/listings?format=XMLTV&file=zip&channels=bbc1&days=0: removing stop time before start time: <programme start="20060221043000 +0000" stop="20060220000000 +0000" channel="south.bbc1.bbc.co.uk"> at /usr/lib/perl5/vendor_perl/5.8.6/XMLTV/Grab_XML.pm line 369.
From: ADAMK [...] cpan.org
While I can't speak to the feature zip of 1.10, I can say that IO::Scalar's are NOT correctly seekable. If possible, you may wish to consider asking the upsteam module to port from IO::Scalar to IO::String, which is nearly identical feature-wise, generally ports cleanly, and DOES correctly seek. Filing this bug as resolved, NOTABUG. Adam K On Mon Feb 20 16:29:57 2006, guest wrote: Show quoted text
> file not seekable with 1.16 whereas it is with older 1.10 ZIP module > > Hi, bear with me it is my first bug report > > This was in the source of tv_grab_uk_bleb > ########################################################################## > # Warning - Archive::Zip versions 1.11 to 1.13 contain a bug which > ## causes tv_grab_uk_bleb to fail. Please downgrade to Archive::Zip > 1.10 # > # or upgrade to a later version if available. > ########################################################################## > > This is the perl version I use > This is perl, v5.8.6 built for i386-linux > Linux localhost 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686 AMD > Sempron(tm) unknown GNU/Linux > $ head -2 /usr/lib/perl5/vendor_perl/5.8.5/Archive/Zip.pm > #! perl -w > # $Revision: 1.104.2.1 $ > > This is the error > $ tv_grab_uk_bleb --output tototv --days 1 > using config filename /home/myntl/.xmltv/tv_grab_uk_bleb.conf > downloading listings >
http://www.bleb.org/tv/data/listings/1?format=XMLTV&file=zip&channels=bbc1,bbc2,itv1,ch4,five,bbc3&days=0: Show quoted text
> error: file not seekable > at /usr/lib/perl5/vendor_perl/5.8.5/Archive/Zip.pm line 950 > >
Archive::Zip::Archive::readFromFileHandle('Archive::Zip::Archive=HASH(0x851d070)', Show quoted text
> 'IO::Scalar=GLOB(0x8519218)') called at /usr/bin/tv_grab_uk_bleb line > 177 > > line 177 and 178 are > my $zip = Archive::Zip->new(); > $zip->readFromFileHandle($fake_filehandle); > > With the 1.10 version it works ok > (I just replaced Zip.pm by an older version) > $ tv_grab_uk_bleb --output tototv --days 3 --offset 0 > using config filename /home/myntl/.xmltv/tv_grab_uk_bleb.conf > downloading listings >
http://www.bleb.org/tv/data/listings?format=XMLTV&file=zip&channels=bbc1&days=0: Show quoted text
> removing stop time before start time: <programme start="20060221043000 > +0000" stop="20060220000000 +0000" channel="south.bbc1.bbc.co.uk"> at > /usr/lib/perl5/vendor_perl/5.8.6/XMLTV/Grab_XML.pm line 369.
Trying to clean up some RT tickets here. Is this still an issue? Does the latest revision fix the problem?