#2 new
Tom Davies

SDB attributes with empty string don't get sent and can cause errors in some cases

Reported by Tom Davies | May 24th, 2010 @ 06:42 AM

If you try to send an empty string as the values for an element in SDB, it won't get sent due to the use of Array(values) shown here:

http://github.com/appoxy/aws/blob/master/lib/sdb/right_sdb_interfac...

So if values is '', this results in an empty array so the attribute is excluded:

Array('') => []

This can also cause the put attributes call to fail if this is the last attribute that gets packed because the AWS code adds a .Replace element with no corresponding Name/Value elements for that idx.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Appoxy Amazon Web Services ruby library providing a simple interface to all of the AWS services.

Code hosted at http://github.com/appoxy/aws

Shared Ticket Bins

People watching this ticket

Tags

Pages