Metadata keys are not case sensitive

Bug #939982 reported by justinsb
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned
openstack-manuals
Fix Released
Low
Tom Fifield

Bug Description

Metadata keys have their case mangled. It looks like "thisIsMyKey" comes back as "ThisIsMyKey".

This should probably be documented!

Revision history for this message
Adam Marcionek (amarcionek) wrote :

I would take it one step further and say it should be "case persistent" or something.

For me, what I see is that only the first letter is caps. X-Object-Meta-CookieSD becomes X-Object-Meta-Cookiesd

Revision history for this message
gholt (gholt) wrote :

HTTP spec already indicates header names are case insensitive. I can't imagine a use case where case should matter and that use case be a correct one. :)

Revision history for this message
justinsb (justin-fathomdb) wrote :

gholt: HTTP is just one possible interface, and its limitations shouldn't define the contract of the OpenStack storage system. The HTTP spec doesn't prevent us from doing the right thing, so we should.

Revision history for this message
gholt (gholt) wrote :

HTTP is the only interface right now, and probably the only one planned. That said, if you'd like to submit a patch for this, have at it. You'll have to patch the container server's db layer and webob at a minimum. And, even so, whoever consumes the HTTP interface should *not* assume any particular case.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Based on the discussion, marking as invalid in swift and converting to a docbug

Changed in swift:
status: New → Invalid
Changed in openstack-manuals:
importance: Undecided → Low
status: New → Triaged
Tom Fifield (fifieldt)
Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/13065

Revision history for this message
Tom Fifield (fifieldt) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/13065
Committed: http://github.com/openstack/openstack-manuals/commit/0983861fd4728f2fde8bf475860b04efa005a116
Submitter: Jenkins
Branch: master

commit 0983861fd4728f2fde8bf475860b04efa005a116
Author: Tom Fifield <email address hidden>
Date: Sun Sep 16 18:07:55 2012 +1000

    Add a note about metadata case senstivity in swift

    fixes bug 939982

    As in the bug report, the Swift interface uses HTTP which has no
    case sensitivity. This patch adds a note to remind users not to
    expect it.

    Change-Id: I6b1bcae84bea40d17b062f1d98bb465766c5c3b9

Changed in openstack-manuals:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.