create secret - content type should be case insensitive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
Low
|
Sig Sigler |
Bug Description
Found in: dev
Description: Running create secret tests with content type of TEXT/plain. Should succeed as RFC 1341 specifically mentions that type and subtype are not case sensive - see http://
Test Case: test_creating_
Reproduction Steps:
1) create a secret with a content type of 'TEXT/plain'
POST http://
Request:
<Secret object>
name = None
algorithm = None
payload_
payload_
content_types = None
expiration = None
bit_length = None
payload = testdata
mode = None
Actual Response:
http 400 error
{
"title": "Provided object does not match schema 'Secret': u'TEXT/plain' is not one of ['text/plain', 'text/plain;
}
Expected Response:
http 201 (successful creation)
Changed in barbican: | |
status: | New → Confirmed |
Changed in barbican: | |
milestone: | none → icehouse-3 |
importance: | Undecided → Low |
Changed in barbican: | |
assignee: | nobody → Aleksandra Bezborodova (bezborodovaam) |
Changed in barbican: | |
milestone: | icehouse-3 → icehouse |
Changed in barbican: | |
assignee: | Aleksandra Bezborodova (bezborodovaam) → Sig Sigler (roysigler) |
Changed in barbican: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/79154 /git.openstack. org/cgit/ stackforge/ barbican/ commit/ ?id=dbcc1d94088 51b58109780dcaa 4cd24fb4ce003a
Committed: https:/
Submitter: Jenkins
Branch: master
commit dbcc1d9408851b5 8109780dcaa4cd2 4fb4ce003a
Author: Sig Sigler <email address hidden>
Date: Sat Mar 8 09:11:52 2014 -0600
Create secret - case insensitive Content-Type check
Allows for upper case and mixed case types, subtypes, and parameters www.w3. org/Protocols/ rfc1341/ 4_Content- Type.html.
in the Content-Type header field as per RFC 1341. More details can
be found at http://
Closes-Bug: #1252453 2de93a47a0fe039 4793eb777f1
Change-Id: I400a05593e0c62