Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: VJN634 [...] motorolasolutions.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Checked: Checked
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=5.36103939019483e-11 kscore.compositescore=0 circleOfTrustscore=0 compositescore=0.999435639444768 urlsuspect_oldscore=0.999435639444768 suspectscore=0 recipient_domain_to_sender_totalscore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=0 rbsscore=0.999435639444768 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1409260090
X-MS-Exchange-Transport-Fromentityheader: Hosted
Content-Type: multipart/mixed; boundary="_004_345b96e37b9647caadc265760bc58b40DM2PR0401MB1232namprd04_"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.899
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 18210240598 for <cpan-bug+Archive-Zip [...] hipster.bestpractical.com>; Fri, 26 Sep 2014 05:12:59 -0400 (EDT)
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 ur3jGZvwRyvt for <cpan-bug+Archive-Zip [...] hipster.bestpractical.com>; Fri, 26 Sep 2014 05:12:57 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8F940240378 for <bug-Archive-Zip [...] rt.cpan.org>; Fri, 26 Sep 2014 05:12:56 -0400 (EDT)
Received: (qmail 17096 invoked by alias); 26 Sep 2014 09:12:54 -0000
Received: from mx0b-0019e102.pphosted.com (HELO mx0b-0019e102.pphosted.com) (67.231.157.237) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 26 Sep 2014 02:12:50 -0700
Received: from pps.filterd (m0074419.ppops.net [127.0.0.1]) by mx0b-0019e102.pphosted.com (8.14.7/8.14.7) with SMTP id s8Q9A4Bj011023 for <bug-Archive-Zip [...] rt.cpan.org>; Fri, 26 Sep 2014 04:12:46 -0500
Received: from il06msg02.am.mot-solutions.com ([129.188.136.18]) by mx0b-0019e102.pphosted.com with ESMTP id 1pn42wg28p-1 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <bug-Archive-Zip [...] rt.cpan.org>; Fri, 26 Sep 2014 04:12:46 -0500
Received: from il06msg02.am.mot-solutions.com (il06vts02.mot.com [129.188.137.142]) by il06msg02.am.mot-solutions.com (8.14.3/8.14.3) with ESMTP id s8Q9CjTe025914 for <bug-Archive-Zip [...] rt.cpan.org>; Fri, 26 Sep 2014 05:12:45 -0400 (EDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0212.outbound.protection.outlook.com [207.46.163.212]) by il06msg02.am.mot-solutions.com (8.14.3/8.14.3) with ESMTP id s8Q9CiKQ025911 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for <bug-Archive-Zip [...] rt.cpan.org>; Fri, 26 Sep 2014 05:12:45 -0400 (EDT)
Received: from DM2PR0401MB1232.namprd04.prod.outlook.com (25.160.217.16) by DM2PR0401MB1231.namprd04.prod.outlook.com (25.160.217.156) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Fri, 26 Sep 2014 09:13:15 +0000
Received: from DM2PR0401MB1232.namprd04.prod.outlook.com ([25.160.217.16]) by DM2PR0401MB1232.namprd04.prod.outlook.com ([25.160.217.16]) with mapi id 15.00.1034.003; Fri, 26 Sep 2014 09:13:02 +0000
Delivered-To: cpan-bug+Archive-Zip [...] hipster.bestpractical.com
Subject: [Archive::Zip] Impossible unzip a encrypted file.Impossible set password if use read create Zip Object.
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: Ac/Zae9aBe5Ye0JnQhaRMGJ6GAgPiw==
Date: Fri, 26 Sep 2014 09:13:02 +0000
X-Originatororg: motorolasolutions.com
X-Spam-Level:
To: "bug-Archive-Zip [...] rt.cpan.org" <bug-Archive-Zip [...] rt.cpan.org>
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0401MB1231;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(199003)(189002)(92566001)(97736003)(74316001)(95666004)(85306004)(64706001)(86362001)(110136001)(85852003)(80022003)(19617315012)(18717965001)(21056001)(2351001)(551544002)(19609705001)(4396001)(120916001)(87936001)(81342003)(15975445006)(77096002)(10300001)(77982003)(76482002)(66066001)(76576001)(108616004)(15202345003)(54356999)(33646002)(107046002)(81542003)(19300405004)(83072002)(31966008)(99286002)(79102003)(106356001)(74502003)(19580395003)(83322001)(74662003)(99936001)(101416001)(19625215002)(107886001)(50986999)(46102003)(20776003)(2656002)(90102001)(229853001)(99396003)(105586002)(16236675004)(24736002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0401MB1231;H:DM2PR0401MB1232.namprd04.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;A:1;MX:1;LANG:en;
X-Spam-Status: No, score=-1.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001] autolearn=ham
Content-Language: en-US
Message-ID: <345b96e37b9647caadc265760bc58b40 [...] DM2PR0401MB1232.namprd04.prod.outlook.com>
X-MS-Tnef-Correlator:
Return-Path: <VJN634 [...] motorolasolutions.com>
X-Original-To: cpan-bug+Archive-Zip [...] hipster.bestpractical.com
X-RT-Mail-Extension: archive-zip
X-Forefront-PRVS: 03468CBA43
Thread-Topic: [Archive::Zip] Impossible unzip a encrypted file.Impossible set password if use read create Zip Object.
X-MS-Has-Attach: yes
X-Cfilter-Loop: Reflected
X-Originating-Ip: [150.130.156.251]
Accept-Language: en-US
From: Yang Zhipeng-VJN634 <VJN634 [...] motorolasolutions.com>
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/alternative; boundary="_000_345b96e37b9647caadc265760bc58b40DM2PR0401MB1232namprd04_"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 1135
Download (untitled) / with headers
text/plain 1.1k
Hi, When I use perl to unzip a zip file, which is encrypted, as the Web(https://metacpan.org/pod/Archive::Zip#Archive::Zip-Methods). I got the error message" Can't locate object method "password" via package "Archive::Zip::ZipFileMember" at .\unzip.pl line 16." And my script code as attached. And then, I checked the code of .pm files. I found that if I want to set password, I should get a Member object, but the method memberNamed() return a object of ZipFileMember, because when I use constructor create a Zip Object, it calls read() method, and in read() method, it calls readFromFileHandle(), but in readFromFileHandle(), it create member like this "my $newMember = $self->ZIPMEMBERCLASS->_newFromZipFile( $fh, $fileName, $self->eocdOffset() );", and then "push( @{ $self->{'members'} }, $newMember );". So, you see, if anyone use read to create Zip object, he gets the ZipFileMember objects, rather than Member objects, and he can't set password with these objects. I can't suggest any thing, because I haven't read all codes. I hope this issue can be fixed as soon as possible. Thanks. Best regards N|Z
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 5699
Content-Description: unzip.pl
Content-Type: application/octet-stream; name="unzip.pl"
Content-Disposition: attachment; creation-date="Wed, 24 Sep 2014 02:09:17 GMT"; filename="unzip.pl"; modification-date="Fri, 26 Sep 2014 08:39:06 GMT"; size="559"
Content-Transfer-Encoding: base64
Content-Length: 559
Download unzip.pl
text/x-perl 559b

Message body is not shown because sender requested not to inline it.



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.