Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 34729
Status: resolved
Priority: 0/
Queue: Net-Amazon-S3

People
Owner: Nobody in particular
Requestors: lostlogic [...] lostlogicx.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.40
  • 0.44
Fixed in: (no value)



Subject: S3.pm: _remember_errors tries to parse non-xml
the _remember_errors subroutine tries to parse errors even if the content type is not XML. This results in a hard death when libxml encounters the parse error and prevents retry from functioning. Inserting the following code at the beginning of _remember_errors makes it work, but it is not exactly elegant as it doesn't check the content-type, just inspects the content for an opening &lt;. Ideally _remember_errors would be called with a full response that includes content type, or would be restricted to being called only with XML or xpc references. # Do not try to parse non-xml unless (ref $src || $src =~ m/^[[:space:]]*</ ) { (my $code = $src) =~ s/^[[:space:]]*\([0-9]*\).*$/$1/; $self->err($code); $self->errstr($src); return 1; }
Thanks for your patch, it will be in the next version of the module.