Skip Menu |
 

This queue is for tickets about the SimpleDB-Class CPAN distribution.

Report information
The Basics
Id: 83263
Status: new
Priority: 0/
Queue: SimpleDB-Class

People
Owner: Nobody in particular
Requestors: ovidiu.satmari [...] gmail.com
Cc:
AdminCc:

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



Subject: SimpleDB::Class::Domain breaks when using consistent option
Download (untitled) / with headers
text/plain 869b
I need to use the consistent option in my project but the module breaks, unless I patch it. Tested on: - debian 2.6.32-5-amd64 - perl 5.10.1 - module version 1.0503 Here is my patch: *** /usr/local/share/perl/5.10.1/SimpleDB/Class/Domain.pm 2013-01-17 11:01:33.000000000 +0200 --- /home/ovidiu/tmp/Domain_mod.pm 2013-01-17 10:58:31.000000000 +0200 *************** *** 170,175 **** --- 170,179 ---- $params{ConsistentRead} = 'true'; } my $result = $db->http->send_request('GetAttributes', \%params); + + # If the consistent option is set and the item is not found + return $item unless ($result->{GetAttributesResult}); + $item = $self->parse_item($id, $result->{GetAttributesResult}{Attribute}); if (defined $item) { $cache->set($name, $id, $item->to_hashref);


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.