missing content_length header in response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Invalid
|
Undecided
|
David Hadas |
Bug Description
When listing an empty container or account the content_length is missing from the response.
The problem starts with the swob Response initiated by account and container server with a body equal to None instead of an empty string. As a result, swob fails to set the content_length to zero.
The problem was detected during a GET but may exist with other requests
The offered solution includes:
1. Adding an assert to the unit test - asserting content_length of zero during the unit test that lists an empty container
2. Adding an assert to the unit test - asserting content_length of zero during the unit test that lists an empty account
3. Testing for to if not body - than setting body to an empty string.
This bug was detected as part of the https:/
Changed in swift: | |
assignee: | nobody → David Hadas (david-hadas) |
Changed in swift: | |
status: | New → Fix Committed |
status: | Fix Committed → In Progress |
Fix proposed to branch: master /review. openstack. org/14448
Review: https:/