create a secret - doesn't trim content type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
High
|
Arvind Tiwari |
Bug Description
Found in: dev
Description: Running create secret tests with content type of "text/plain " (note the trailing space) fails with http 400. Same result if you specify the encoding with a trailing space (such as "text/plain; charset=utf-8 ")
Test Case: test_creating_
also test_creating_
Reproduction Steps:
1) create a secret with a content type of 'text/plain ' or 'text/plain; charset=utf-8 '
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
Expected Response:
http 201 (successful creation)
Changed in barbican: | |
status: | New → Confirmed |
Changed in barbican: | |
importance: | Undecided → High |
milestone: | none → icehouse-3 |
Changed in barbican: | |
assignee: | nobody → Arvind Tiwari (arvind-tiwari) |
Changed in barbican: | |
status: | Fix Committed → Fix Released |
Fix pushed for review /review. openstack. org/#/c/ 70477/
https:/