Using a carriage return / line feed in an object name with a tempurl results in invalid http
Bug #1306250 reported by
gholt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using a carriage return / line feed in an object name with a tempurl results in invalid http... For example:
HTTP/1.1 200 OK
Content-Length: 13
Content-
4.txt"
Accept-Ranges: bytes
Last-Modified: Thu, 10 Apr 2014 15:28:18 GMT
Etag: 1fa01959f1368b1
X-Timestamp: 1397143697.50723
Content-Type: text/plain
X-Trans-Id: tx008aa403f4354
Date: Thu, 10 Apr 2014 20:46:08 GMT
Testing Four
Changed in swift: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.0.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/86691 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=f469d4214f0 d60a02a2f03edf5 12ad22e17432d7
Committed: https:/
Submitter: Jenkins
Branch: master
commit f469d4214f0d60a 02a2f03edf512ad 22e17432d7
Author: gholt <email address hidden>
Date: Tue Apr 22 15:00:09 2014 +0000
TempURL: Fixed bug with \r or \n in disposition.
If an object had a \r or \n in its name, it would end up creating an
invalid HTTP Content-Disposition header. Reviewer consensus was to use
URL encoding.
Fixes bug 1306250
Change-Id: Ibccaaed5152b4d 09d6aee4966a198 2cc0a0da07d