Redundant UTF-8 check
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
junboli |
Bug Description
In the file proxy/server.py, handle_request method does UTF-8 check twice, see code bellow:
try:
if not check_utf8(
return HTTPPreconditio
except UnicodeError:
self.
return HTTPPreconditio
try:
controller, path_parts = self.get_
p = req.path_info
if isinstance(p, six.text_type):
p = p.encode('utf-8')
except APIVersionError:
self.
return HTTPBadRequest(
p = p.encode('utf-8') does the second encode while check_utf8 has done it.
Changed in swift: | |
assignee: | nobody → junboli (junboli) |
Fix proposed to branch: master /review. openstack. org/484107
Review: https:/