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
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
Message body not shown because it is not plain text.