Patches: Browse | Submit New | Admin

[#12172] Patch for bug #12136 - Unable to find any keys if keys are stored with numeric key name

Date:
2007-07-10 22:21
Priority:
3
Submitted By:
Glenn Rempe (grempe)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Patch for bug #12136 - Unable to find any keys if keys are stored with numeric key name

Detailed description
Please see bug 12136 for details.  This code to fix this was submitted to me by George Malamidis.  Thanks George!  See
attached patch file.  I hope this can get into the release version very soon.

My basic tests (see bug report) pass when using this patch.  Allows me to both store and find an object with a numeric
ID.  Also allows listing of bucket contents which would fail otherwise.

Thanks!

Glenn

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-08-05 17:19
Sender: Gregory Keeney

Why is this still not in the gem version?

Our team is stuck using a workaround in code, as we don't make
a habit of deploying patches to gems to production.

It would be slightly better to force the key to a string upol
the initial loading, but this is better than nothing…

As it stands, I am stuck littering my code with:
obj.key = "#{obj.key}"
Date: 2007-07-12 04:13
Sender: Marcel Molina Jr.

Thanks for the patch. I'll have to scrutinize the implications
of the changes you are making to see if there might be a more
appropriate place to make that change and I'll need to write
some tests for this case. Thanks for getting me started.

Attached Files:

Name Description Download
aws-s3_patch_for_bug_#12136.patch Download

Changes:

Field Old Value Date By
File Added2226: aws-s3_patch_for_bug_#12136.patch2007-07-10 22:44grempe