Skip Menu |
 

This queue is for tickets about the BZ-Client CPAN distribution.

Report information
The Basics
Id: 121581
Status: resolved
Priority: 0/
Queue: BZ-Client

People
Owner: dean [...] fragfest.com.au
Requestors: raphael.crochet [...] actia.fr
Cc:
AdminCc:

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



X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:99
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/mixed; boundary="_009_AM4PR0101MB227365081015D26F85B51A3297EF0AM4PR0101MB2273_"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(277359137792107)(128460861657000)(254730959083279)(21748063052155)(81160342030619)(91638250987450);
X-Spam-Score: -2.619
X-MS-Publictraffictype: Email
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C05CD240355 for <cpan-bug+BZ-Client [...] hipster.bestpractical.com>; Tue, 9 May 2017 18:04:26 -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 zOKzca1rZmI2 for <cpan-bug+BZ-Client [...] hipster.bestpractical.com>; Tue, 9 May 2017 18:04:23 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id C3ACF240211 for <bug-BZ-Client [...] rt.cpan.org>; Tue, 9 May 2017 18:04:22 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id A1C2411EBB5 for <bug-BZ-Client [...] rt.cpan.org>; Tue, 9 May 2017 15:04:20 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 7607811EBFA for <bug-BZ-Client [...] rt.cpan.org>; Tue, 9 May 2017 15:04:15 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0074.outbound.protection.outlook.com [104.47.1.74]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id CF60011EBB5 for <bug-BZ-Client [...] rt.cpan.org>; Tue, 9 May 2017 15:04:12 -0700 (PDT)
Received: from AM4PR0101MB2273.eurprd01.prod.exchangelabs.com (10.165.38.20) by AM4PR0101MB2274.eurprd01.prod.exchangelabs.com (10.165.38.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Tue, 9 May 2017 10:25:52 +0000
Received: from AM4PR0101MB2273.eurprd01.prod.exchangelabs.com ([fe80::a54f:37d0:853e:9a62]) by AM4PR0101MB2273.eurprd01.prod.exchangelabs.com ([fe80::a54f:37d0:853e:9a62%15]) with mapi id 15.01.1075.019; Tue, 9 May 2017 10:25:52 +0000
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] actia.fr
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=raphael.crochet [...] actia.fr;
Delivered-To: cpan-bug+BZ-Client [...] hipster.bestpractical.com
Subject: [BUG] BZ::Client, unable to attach zip file to a bug
Thread-Index: AdLIrJR08Roo3vaTQli3zQtQca7TTg==
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=actia.fr; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mA+29vW9bpkqWwHUbLwUcuT2/DLquWS1belumFeXZRY=; b=nvPzx/J/Pi8xBA13taXODfIAkkwUTorVu2m0TMw3DrJluBGQCEkP9/lUg5XczRZfPsHkZgOWB1SqIwLD2HoBla143n3ukTjttxBKgXOb2h8ewgZ1t0GMhulBvul9tEJazNcZB37FVt+x7IGZh9wWUfvZG5qzluHN/j2GfNkQg9Q=
X-PMX-Spam: Gauge=XIII, Probability=13%, Report=' IMGSPAM_BODY 0.5, OBFU_SHORT_10CHARS 0.5, HTML_70_90 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_3000_MORE 0, BODY_SIZE_10000_PLUS 0, DKIM_SIGNATURE 0, ECARD_KNOWN_DOMAINS 0, JPG_COMMON_HEADER_ORDER 0, JPG_SPAMMY_SEGMENT 0, JPG_SPAMMY_Y_RESOLUTION 0, NO_URI_HTTPS 0, SPF_PASS 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __ATTACHMENT_SIZE_10_25K 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __EMBEDDED_IMG 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_ATTACHMENT2 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTML_AHREF_TAG 0, __HTML_FONT_BLUE 0, __HTML_TAG_DIV 0, __HTML_TAG_IMG_X2 0, __IMGSPAM_BODY 0, __IMG_ATTACHED 0, __JPG_SPAMMY_SEGMENT_1 0, __JPG_SPAMMY_Y_RESOLUTION_4 0, __JPG_WIDTH_100 0, __MAL_TELEKOM_URI 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_HTML 0, __MULTIPLE_URI_TEXT 0, __RDNS_OUTLOOK 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __SUBJ_ALPHA_END 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NS , __URI_WITHOUT_PATH 0, __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
Date: Tue, 9 May 2017 10:25:52 +0000
X-Originatororg: actia.fr
X-MS-Office365-Filtering-Correlation-ID: 0047d7e3-8380-4b76-9055-08d496c5c4fd
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.5.9.215416
X-MS-Exchange-Crosstenant-ID: 86314f06-03e8-4460-82f3-a44f992a19c7
To: "bug-BZ-Client [...] rt.cpan.org" <bug-BZ-Client [...] rt.cpan.org>
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(102415395)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201703061421075)(201703161042150)(6072148)(6042181);SRVR:AM4PR0101MB2274;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0101MB2274;
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081);SRVR:AM4PR0101MB2274;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(36304003)(61754003)(38730400002)(8936002)(6506006)(6436002)(53386004)(53946003)(53936002)(54356999)(54556002)(66066001)(3846002)(790700001)(54896002)(2900100001)(6306002)(966004)(2906002)(236005)(9686003)(7906003)(102836003)(6116002)(19618635001)(99286003)(3660700001)(606005)(733005)(3280700002)(55016002)(5640700003)(86362001)(498600001)(2351001)(110136004)(861006)(99936001)(25786009)(50986999)(6916009)(33656002)(7696004)(7736002)(5250100002)(5890100001)(74482002)(2501003)(81166006)(189998001)(5660300001)(8676002)(74316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0101MB2274;H:AM4PR0101MB2273.eurprd01.prod.exchangelabs.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en;
X-Spam-Status: No, score=-2.619 tagged_above=-99.9 required=10 tests=[AWL=-0.620, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001] autolearn=ham
Received-SPF: None (protection.outlook.com: actia.fr does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: 1;AM4PR0101MB2274;7:c9dUnMW2rsYpf8iK5jebyDfL5kNLG6Sl2BvZ4TAmtIvL/Mu2S0MOg4T3kI0hdVpiEV1ycrY/2Wm7zNSU7K8GLy8qsCNvs3c6wHmtUy/EfWYTy7JKiDRvI0JKS6GjsKq1u/SWBWXRLG0TjwHPC7NZ8zyhcBBTmq2eL6ZAJb2l/fBF/XTkOdlOgAdzfhGAS94PZoQFMp9lJhDxroBNDeFk63ck+fPUvpYrUZhtoCRdtWY7TXuGOqgw1t4goktjPaa1mzgv1W6LiLYBHDkn1XyKnaPGCRkP/j12Q7WmEUB8zlRjNC1S2ZiyvHhR/VS6jkcTpGxWD7jZEDxVIuAiNxil5w==
Content-Language: fr-FR
Message-ID: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
X-MS-Tnef-Correlator:
X-Microsoft-Antispam-PRVS: <AM4PR0101MB2274A021B10C80F96C6240CE97EF0 [...] AM4PR0101MB2274.eurprd01.prod.exchangelabs.com>
Return-Path: <raphael.crochet [...] actia.fr>
X-MS-Exchange-Crosstenant-Originalarrivaltime: 09 May 2017 10:25:52.2977 (UTC)
X-Original-To: cpan-bug+BZ-Client [...] hipster.bestpractical.com
X-RT-Mail-Extension: bz-client
X-Forefront-PRVS: 0302D4F392
X-Greylist: delayed 225 seconds by postgrey-1.34 at xx1.develooper.com; Tue, 09 May 2017 15:04:12 PDT
Thread-Topic: [BUG] BZ::Client, unable to attach zip file to a bug
X-MS-Has-Attach: yes
X-Originating-Ip: [212.194.216.83]
Accept-Language: fr-FR, en-US
X-MS-Exchange-Transport-Crosstenantheadersstamped: AM4PR0101MB2274
From: Raphael Crochet <raphael.crochet [...] actia.fr>
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/related; boundary="_008_AM4PR0101MB227365081015D26F85B51A3297EF0AM4PR0101MB2273_"; type="multipart/alternative"
Content-Length: 0
Content-Type: multipart/alternative; boundary="_000_AM4PR0101MB227365081015D26F85B51A3297EF0AM4PR0101MB2273_"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 4064
Download (untitled) / with headers
text/plain 3.9k
Environment This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x86-multi-thread-64int BZ::Client is up to date. (4.4001) More than a bug, it is a lack of code. In fact, all binary format (zip, jpg, png, ...) can't be attached to a bug thanks to BZ::Client. We can serialize data in base64 if we encode it manually (client code), but the XMLRPC Bugzilla server is not able to recognize it as base64. Bugzilla can't give back the original file and the result seems to be corrupted. The best that I could get is the encode base64 content, not he original file. I tried to add the tag <base64> ...</base64> directly into data, but it can't work as data is considered ... as data and tags are escaped with &lt;base64&gt;. The only solution I saw was to modify the XMLRPC client at serialization of the request (like it is already done for other data types). I put in attachment, the module I patched to get the stuff done. Following code snippet shows an example that works fine with patched version. $client = BZ::Client->new( url => $url, autologin => 0 ); sub addAttachment() { my ($id, $file) = @_; open (FILE, "<",$file) or die "$0: $!"; binmode FILE; my $data = join('', <FILE>); close FILE; my $file_attach=BZ::Client::XMLRPC::base64->new($data); my $filename = basename($file); # file name if (DEBUG) {print "AddAttachment: search for request: $id\n";} my $bugId = getBugBySummary($id); # get bug by summary description if (!defined $bugId) { print "$0: Not found request for: $id \n"; die "$0: AddAttachment: Error, request $id not found to attach data!\n"; } # hash map containing parameter of bugzilla attachment my %params = ( ids => [ $bugId ], file_name => $filename, content_type => 'application/zip', summary => $filename, data => $file_attach, ); my $response; eval { $response = $client->api_call( 'Bug.add_attachment', \%params ); print "$0: AddAttachment: $filename processed in BugZilla.\n"; }; if ($@) { print "$0: ERROR Upload file: $@->{'message'}\n"; } } Regards Raphaël CROCHET Technology Department Fixe : +33 (0)5 82 08 05 42 [logo_ACTIA_mail_2017] ACTIA Automotive (siège social) 5, rue Jorge Semprun B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) http://www.actia.com<http://www.actia.com/> [icon_mail_youtube]<http://www.youtube.com/ActiaOfficialCom> [icon_mail_linkedin] <http://www.linkedin.com/company/actia> [icon_mail_web] <http://www.actia.com/> ............................................. Ce courrier électronique ainsi que tout fichier qui y est joint est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée. Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message. Le contenu de ce message ne représente en aucun cas un engagement de la part de notre société. Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites. Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier et de supprimer ce message et tout document joint de votre société. Merci. This email message and its enclosures is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. Any e-mail message is subject to alteration. Actia disclaims all liability in connection with this message. The content of this message does not represent any commitment from our company. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message with its enclosures. Thank you.
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 35982
Download (untitled) / with headers
text/html 35.1k

Message body is not shown because it is too large.

Content-Description: image001.jpg
Content-Type: image/jpeg; name="image001.jpg"
Content-Disposition: inline; creation-date="Tue, 09 May 2017 10:25:51 GMT"; filename="image001.jpg"; modification-date="Tue, 09 May 2017 10:25:51 GMT"; size="9803"
Content-Transfer-Encoding: base64
Content-ID: <image001.jpg [...] 01D2C8BD.B01D2580>
Content-Length: 9803
Download image001.jpg
image/jpeg 9.5k
image001.jpg
Content-Description: image002.jpg
Content-Type: image/jpeg; name="image002.jpg"
Content-Disposition: inline; creation-date="Tue, 09 May 2017 10:25:51 GMT"; filename="image002.jpg"; modification-date="Tue, 09 May 2017 10:25:51 GMT"; size="1508"
Content-Transfer-Encoding: base64
Content-ID: <image002.jpg [...] 01D2C8BD.B01D2580>
Content-Length: 1508
Download image002.jpg
image/jpeg 1.4k
image002.jpg
Content-Description: image003.jpg
Content-Type: image/jpeg; name="image003.jpg"
Content-Disposition: inline; creation-date="Tue, 09 May 2017 10:25:51 GMT"; filename="image003.jpg"; modification-date="Tue, 09 May 2017 10:25:51 GMT"; size="1394"
Content-Transfer-Encoding: base64
Content-ID: <image003.jpg [...] 01D2C8BD.B01D2580>
Content-Length: 1394
Download image003.jpg
image/jpeg 1.3k
image003.jpg
Content-Description: image004.jpg
Content-Type: image/jpeg; name="image004.jpg"
Content-Disposition: inline; creation-date="Tue, 09 May 2017 10:25:51 GMT"; filename="image004.jpg"; modification-date="Tue, 09 May 2017 10:25:51 GMT"; size="1867"
Content-Transfer-Encoding: base64
Content-ID: <image004.jpg [...] 01D2C8BD.B01D2580>
Content-Length: 1867
Download image004.jpg
image/jpeg 1.8k
image004.jpg
Content-Description: XMLRPC.PM
Content-Type: application/octet-stream; name="XMLRPC.PM"
Content-Disposition: attachment; creation-date="Tue, 09 May 2017 10:10:52 GMT"; filename="XMLRPC.PM"; modification-date="Tue, 09 May 2017 10:10:52 GMT"; size="11692"
Content-Transfer-Encoding: base64
Content-Length: 11692
Download XMLRPC.PM
text/x-perl 11.4k

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

MIME-Version: 1.0
In-Reply-To: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17975-1494368612-1632.121581-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 103
Download (untitled) / with headers
text/plain 103b
thats very good feedback. i will look at your code and put together a new version in the next few days.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-17975-1494368612-1632.121581-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com> <rt-4.0.18-17975-1494368612-1632.121581-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-25578-1494799752-1950.121581-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 49
which verson of bugzilla are you running against?
X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:99
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6
X-Exchange-Antispam-Report-Test: UriScan:;
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] actia.fr
Authentication-Results: rt.cpan.org; dkim=none (message not signed) header.d=none;rt.cpan.org; dmarc=none action=none header.from=actia.fr;
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3F5F4240212 for <cpan-bug+BZ-Client [...] hipster.bestpractical.com>; Mon, 15 May 2017 05:21:27 -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 FWu1Y0NPKVKw for <cpan-bug+BZ-Client [...] hipster.bestpractical.com>; Mon, 15 May 2017 05:21:25 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id C47E624007F for <bug-BZ-Client [...] rt.cpan.org>; Mon, 15 May 2017 05:21:24 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id E28CE11DA68 for <bug-BZ-Client [...] rt.cpan.org>; Mon, 15 May 2017 02:21:23 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id A4B2311ED75 for <bug-BZ-Client [...] rt.cpan.org>; Mon, 15 May 2017 02:21:21 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0084.outbound.protection.outlook.com [104.47.2.84]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 289E911DBB8 for <bug-BZ-Client [...] rt.cpan.org>; Mon, 15 May 2017 02:20:57 -0700 (PDT)
Received: from AM4PR0101MB2273.eurprd01.prod.exchangelabs.com (10.165.38.20) by AM4PR0101MB2276.eurprd01.prod.exchangelabs.com (10.165.38.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Mon, 15 May 2017 09:05:39 +0000
Received: from AM4PR0101MB2273.eurprd01.prod.exchangelabs.com ([fe80::a54f:37d0:853e:9a62]) by AM4PR0101MB2273.eurprd01.prod.exchangelabs.com ([fe80::a54f:37d0:853e:9a62%15]) with mapi id 15.01.1084.027; Mon, 15 May 2017 09:05:38 +0000
X-MS-Publictraffictype: Email
Delivered-To: cpan-bug+BZ-Client [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #121581] [BUG] BZ::Client, unable to attach zip file to a bug
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=actia.fr; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Uj8XeMfyExr87Wd8ZZnsKV65DGDOujh1qTbSRMpVKXM=; b=m/NBvrKd9E31ZCzm+Ej0P5/GgWP1c03Ng2zMTNPgPg/2MOuFrNLcdxS3ZSN7h2DAjuBiZU6s+/G4SuRSgd61jXosDwFRrWwMGkhr+sthx077xZwnyUpV9md0aR7rnaRKHsvBO2Pl6uMtrmUnlonK6JrpZz9KGmjATe6mpzqYutQ=
Thread-Index: AdLIrJR08Roo3vaTQli3zQtQca7TTgEUi+kJABbdNXA=
Date: Mon, 15 May 2017 09:05:38 +0000
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_500_599 0, BODY_SIZE_7000_LESS 0, CTE_BASE64 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, REFERENCES 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_ENDS_IN_HTML 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTTPS_URI 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __RDNS_OUTLOOK 0, __REFERENCES 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
X-Originatororg: actia.fr
X-Spam-Level:
X-MS-Office365-Filtering-Correlation-ID: f33946c3-2b60-4697-4440-08d49b718e41
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.4.23.31816
X-MS-Exchange-Crosstenant-ID: 86314f06-03e8-4460-82f3-a44f992a19c7
To: "bug-BZ-Client [...] rt.cpan.org" <bug-BZ-Client [...] rt.cpan.org>
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081);SRVR:AM4PR0101MB2276;
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148);SRVR:AM4PR0101MB2276;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0101MB2276;
Content-Transfer-Encoding: base64
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(39400400002)(39450400003)(39830400002)(39410400002)(6916009)(9686003)(5250100002)(5890100001)(2501003)(2950100002)(6306002)(50986999)(25786009)(33656002)(81166006)(74316002)(55016002)(8676002)(99286003)(305945005)(8936002)(558084003)(6246003)(38730400002)(86362001)(110136004)(76176999)(66066001)(54356999)(229853002)(2351001)(53936002)(6506006)(93886004)(2906002)(3660700001)(2900100001)(74482002)(3280700002)(5640700003)(5660300001)(6436002)(478600001)(102836003)(189998001)(7696004)(3846002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0101MB2276;H:AM4PR0101MB2273.eurprd01.prod.exchangelabs.com;FPR:;SPF:None;MLV:sfv;LANG:en;
In-Reply-To: <rt-4.0.18-25578-1494799753-1120.121581-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-6 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_OUR_RT=-4] autolearn=ham
X-Microsoft-Exchange-Diagnostics: 1;AM4PR0101MB2276;7:K9W92jgXPB8ZrtUnH0EPN/Ju/uLEBkRBLozlGsrzJnQXsz5RQwS0AYu/Le44UDEHE8TZ1dZHrFEwn1ZW4Z5KycHkZodtlvV79/L5FA7OutJDjf5MsOKkMUMlRJZ9wW0fpKYBSsAYLEzzXPsz8o2lSLAqN39Lb69JvlfpQMuZRJi421EoF5U/UjmU1Y+ECXMZJ0y/5rPF49vp12TgSckSRWo1gVlHlT6UfFOeefsBFtpof/Um/fbz6eIIdsrU1lZU+PSNsLQaMd3YAzulH3o6imAhjRAjPTQylxhWDGQrRHnmw/sXxA9S2OFC42Sw07w0aMpunYZg9xAljulybRMghg==
X-RT-Interface: API
Content-Language: fr-FR
References: <RT-Ticket-121581 [...] rt.cpan.org> <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com> <rt-4.0.18-17975-1494368612-1632.121581-6-0 [...] rt.cpan.org> <rt-4.0.18-25578-1494799753-1120.121581-6-0 [...] rt.cpan.org>
Message-ID: <AM4PR0101MB2273E9F550696A40E972D86F97E10 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
X-Microsoft-Antispam-PRVS: <AM4PR0101MB2276FB8AEEBBEBD36A9B8AB297E10 [...] AM4PR0101MB2276.eurprd01.prod.exchangelabs.com>
X-MS-Tnef-Correlator:
Return-Path: <raphael.crochet [...] actia.fr>
X-RT-Mail-Extension: bz-client
X-Original-To: cpan-bug+BZ-Client [...] hipster.bestpractical.com
X-MS-Exchange-Crosstenant-Originalarrivaltime: 15 May 2017 09:05:38.3912 (UTC)
X-Forefront-PRVS: 0308EE423E
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #121581] [BUG] BZ::Client, unable to attach zip file to a bug
X-Originating-Ip: [185.6.209.34]
Accept-Language: fr-FR, en-US
From: Raphael Crochet <raphael.crochet [...] actia.fr>
X-MS-Exchange-Transport-Crosstenantheadersstamped: AM4PR0101MB2276
RT-Message-ID: <rt-4.0.18-5930-1494840088-1643.121581-0-0 [...] rt.cpan.org>
Content-Length: 397
Download (untitled) / with headers
text/plain 397b
version 5.0.3 -----Message d'origine----- De : Dean Hamstead via RT [mailto:bug-BZ-Client@rt.cpan.org] Envoyé : lundi 15 mai 2017 00:09 À : Raphael Crochet <raphael.crochet@actia.fr> Objet : [rt.cpan.org #121581] [BUG] BZ::Client, unable to attach zip file to a bug <URL: https://rt.cpan.org/Ticket/Display.html?id=121581 > which verson of bugzilla are you running against?
MIME-Version: 1.0
In-Reply-To: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-3497-1495750917-1389.121581-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 133
Download (untitled) / with headers
text/plain 133b
I have just pushed code to github that is inspired by your provided code. Once travis is finished, I will make a new release on CPAN.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3497-1495750917-1389.121581-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com> <rt-4.0.18-3497-1495750917-1389.121581-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-3109-1496053209-526.121581-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 435
Download (untitled) / with headers
text/plain 435b
I have just released 4.4002 which contains functionality inspired by your code. Attachments are handled with BZ::Client::Bug::Attachment, specifically the add() function. I have added the convenience of just specifying a local filename and BZ::Client will slurp it up, encode it and transmit it. Or you can do the same yourself if you so desire, or generate the file content entirely in memory and transmit it. Let me know how you go
MIME-Version: 1.0
In-Reply-To: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0101MB227365081015D26F85B51A3297EF0 [...] AM4PR0101MB2273.eurprd01.prod.exchangelabs.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-10439-1496353963-1311.121581-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 59
Closing as fixed. Please let me know if you have any issues


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.