Skip Menu |

This queue is for tickets about the Amazon-S3 CPAN distribution.

Report information
The Basics
Id: 93033
Status: new
Priority: 0/
Queue: Amazon-S3

People
Owner: Nobody in particular
Requestors: f.wesemann [...] fotofinder.com
Cc:
AdminCc:

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



Subject: err() and errstr() aren't defined in case of an error
Date: Fri, 14 Feb 2014 16:50:21 +0100
To: bug-Amazon-S3 [...] rt.cpan.org
From: Frank Wesemann <f.wesemann [...] fotofinder.com>
Dears, If you do a request to AWS S3 ad an error occurs, it isn't reported by $s3->err() od $s3->errstr(). reason its that the XMLin() doesn't KeepRoot attached is a little test script to illustrate this. The patch is simple: sub _xpc_of_content { return XMLin($_[1], 'KeepRoot' => 1, 'SuppressEmpty' => '', 'ForceArray' => ['Contents']); } instead of return XMLin($_[1], 'SuppressEmpty' => '', 'ForceArray' => ['Contents']); mit freundlichem Gruß, Frank Wesemann Fotofinder GmbH USt-IdNr. DE812854514 Software Entwicklung Web: http://www.fotofinder.com/ Potsdamer Str. 96 Tel: +49 30 25 79 28 90 10785 Berlin Fax: +49 30 25 79 28 999 Sitz: Berlin Amtsgericht Berlin Charlottenburg (HRB 73099) Geschäftsführer: Ali Paczensky
Dears,
If you do a request to AWS S3 ad an error occurs, it isn't reported by $s3->err() od $s3->errstr().

reason its that the XMLin() doesn't KeepRoot

attached is a little test script to illustrate this.

The patch is simple:

 sub _xpc_of_content {
    return XMLin($_[1], 'KeepRoot' => 1, 'SuppressEmpty' => '', 'ForceArray' => ['Contents']);
}

instead of 
    return XMLin($_[1], 'SuppressEmpty' => '''ForceArray' => ['Contents']);


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

mit freundlichem Gruß,

Frank Wesemann
Fotofinder GmbH         USt-IdNr. DE812854514
Software Entwicklung    Web: http://www.fotofinder.com/
Potsdamer Str. 96       Tel: +49 30 25 79 28 90
10785 Berlin            Fax: +49 30 25 79 28 999

Sitz: Berlin
Amtsgericht Berlin Charlottenburg (HRB 73099)
Geschäftsführer: Ali Paczensky

Download signature.asc
application/pgp-signature 496b

Message body not shown because it is not plain text.