inconsistent types returned for metadata
Bug #1533768 reported by
Richard Hawkins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
Richard Hawkins |
Bug Description
Multiple calls to _get_info_cache can return metadata with different types.
If info has been cached in memcache, unicode values are UTF-8 encoded, however currently values stored in the 'meta' key of info, are not.
This has the effect of returning them as type str if they are not cached in memcache or type unicode if they are.
CVE References
Changed in swift: | |
assignee: | nobody → Richard Hawkins (richard-hawkins) |
Changed in swift: | |
status: | New → In Progress |
Changed in swift: | |
importance: | Undecided → High |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/267016 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=24227e8bb0d 4d369eeab61ab5c 20730b4f84b36a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 24227e8bb0d4d36 9eeab61ab5c2073 0b4f84b36a
Author: Richard Hawkins <email address hidden>
Date: Wed Jan 13 10:16:29 2016 -0600
_get_info_cache should encode unicode metadata
Closes-Bug: 1533768 34cb3a0b0fafe26 bbc62221032
Change-Id: I67bbd0e8802d2a