Skip Menu |

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

Report information
The Basics
Id: 78559
Status: new
Priority: 0/
Queue: Archive-Zip

Owner: Nobody in particular
Requestors: chandarraju [...]

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

Subject: Archive::Zip - writeToFileNamed fails with error IO error: Reading data: Permission Denied
Date: Wed, 25 Jul 2012 10:52:29 +0530
To: bug-Archive-Zip [...]
From: chandar raju kakarlapudi <chandarraju [...]>
Download (untitled) / with headers
text/plain 1.9k
Hi, I have installed the Archive::Zip version 1.30 on my active perl installation - 5.12.3 on Windows 2003 server I am trying to zip a directory tree and facing error. The same code works on one server, while it doesn't work on other. Please find the code below: <CODE> use Archive::Zip; my $zip = Archive::Zip->new(); $zip->addTree("C:\Chandar", "Chandar"); $zip->writeToFileNamed("D:\Backup\"); </CODE> <OUTPUT> IO error: reading data : Permission denied at C:/Perl64/site/lib/Archive/Zip/ line 60 Archive::Zip::NewFileMember::_readRawChunk('Archive::Zip::NewFileMember=HASH(0x3c0c388)', 'SCALAR(0x3222f48)', 16) called at C:/Perl64/site/lib/Archive/Zip/ line 788 Archive::Zip::Member::readChunk('Archive::Zip::NewFileMember=HASH(0x3c0c388)', 32768) called at C:/Perl64/site/lib/Archive /Zip/ line 1063 Archive::Zip::Member::_writeData('Archive::Zip::NewFileMember=HASH(0x3c0c388)', 'IO::File=GLOB(0x3ac12c8)') called at C:/P erl64/site/lib/Archive/Zip/ line 1030 Archive::Zip::Member::_writeToFileHandle('Archive::Zip::NewFileMember=HASH(0x3c0c388)', 'IO::File=GLOB(0x3ac12c8)', 1, 218 010) called at C:/Perl64/site/lib/Archive/Zip/ line 402 Archive::Zip::Archive::writeToFileHandle('Archive::Zip::Archive=HASH(0x3ac0d20)', 'IO::File=GLOB(0x3ac12c8)', 1) called at C:/Perl64/site/lib/Archive/Zip/ line 370 Archive::Zip::Archive::writeToFileNamed('Archive::Zip::Archive=HASH(0x3ac0d20)', 'C:\sis_backup\SiS_backup_2012-07-25-15-1') called at line 369 </OUTPUT> I do not get the error when the directory is small and has few files in it (around 500 kb - 1 mb). More than that, I get the error. And I have checked there is no problem with the permissions. Also, for the similar set up, it works perfect for 1.5GB directory on another windows server with same OS, same Perl installation, same Archive::zip version. I would appreciate your response. Thanks, Chandar.

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

Please report any issues with to