cname_lookup middleware save a wrong type string in environment that causes 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
Unassigned |
Bug Description
$ curl -i http://
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: text/plain
Accept-Ranges: bytes
Last-Modified: Thu, 06 Feb 2020 04:34:23 GMT
Etag: b05403212c66bdc
X-Timestamp: 1580963662.95064
X-Object-
X-Trans-Id: tx7be3027196ee4
X-Openstack-
Date: Thu, 06 Feb 2020 04:48:06 GMT
test file
$ curl -i http://
HTTP/1.1 500 Internal Error
Content-Length: 17
Content-Type: text/plain
X-Openstack-
X-Trans-Id: tx550f2011d86c4
Date: Thu, 06 Feb 2020 04:48:19 GMT
An error occurred
[root@demo60 middleware]# grep tx7be3027196ee4
Feb 6 04:48:06 demo60 proxy-server: Mapped demo_resources.
Feb 6 04:48:06 demo60 object-server: 192.168.190.60 - - [06/Feb/
Feb 6 04:48:06 demo60 proxy-server: 192.168.190.1 192.168.190.1 06/Feb/
[root@demo60 middleware]# grep tx550f2011d86c4
Feb 6 04:48:18 demo60 proxy-server: Mapped demo_resources.
Feb 6 04:48:19 demo60 proxy-server: ERROR Unhandled exception in request:
Traceback (most recent call last):
File "/opt/ss/
controller, path_parts = self.get_
File "/opt/ss/
if req.path == '/info':
File "/opt/ss/
self.
File "/opt/ss/
raise TypeError('Expected a WSGI string; got %r' % wsgi_str)
TypeError: Expected a WSGI string; got u'/v1/AUTH_
Feb 6 04:48:19 demo60 proxy-server: Error: An error occurred:
Traceback (most recent call last):
File "/opt/ss/
resp = self._app_call(env)
File "/opt/ss/
resp = reiterate(resp)
File "/opt/ss/
chunk = next(iterator)
File "/opt/ss/
metric_name = self.statsd_
File "/opt/ss/
stat_type = self.get_
File "/opt/ss/
if req.path.
File "/opt/ss/
self.
File "/opt/ss/
raise TypeError('Expected a WSGI string; got %r' % wsgi_str)
TypeError: Expected a WSGI string; got u'/v1/AUTH_
summary: |
- cname_lookup stored wrong type in environment + cname_lookup middleware save a wrong type string in environment that + causes 500 error |
Changed in swift: | |
importance: | Undecided → High |
Reviewed: https:/ /review. opendev. org/706187 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=61bf5ee1c42 8410b70bfab0a6e ae361df948d03e
Committed: https:/
Submitter: Zuul
Branch: master
commit 61bf5ee1c428410 b70bfab0a6eae36 1df948d03e
Author: Charles Hsu <email address hidden>
Date: Thu Feb 6 15:35:11 2020 +0800
Ensure domain stored in memcached gets utf8 decoded on py2
Change-Id: I73b5af9645f3f7 349144384609bf1 8a79620e92f
Closes-Bug: #1862115