yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #45248
[Bug 1537050] [NEW] 500 error when filtering on non-ASCII value
Public bug reported:
ENVARIMENT: devstack, master 21.01.2016, glance, artifacts
send request: curl -H "X-Auth-Token: token" -H "Accept-Encoding: utf8"
http://host:port/v3/artifacts/myartifact/v2.0/drafts?name=дд;
actual result:
2016-01-22 12:58:13.683 ERROR glance.common.wsgi [req-31378054-50ef-42aa-80d6-2f014b8e7317 580fe2a1e2f049408f0feedf9f199e2d 04cd4fafed9b4a5a826c187375b6297d] Caught error: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi Traceback (most recent call last):
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 882, in __call__
2016-01-22 12:58:13.683 TRACE glance.common.wsgi action, request)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 919, in dispatch
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return method(*args, **kwargs)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 822, in list
2016-01-22 12:58:13.683 TRACE glance.common.wsgi params)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 780, in _get_filters
2016-01-22 12:58:13.683 TRACE glance.common.wsgi property_value = self._bring_to_type(str_type, property_value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 715, in _bring_to_type
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return mapper[type_name](value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
** Affects: glance
Importance: Undecided
Assignee: Darja Shakhray (dshakhray)
Status: New
** Tags: artifacts
** Changed in: glance
Assignee: (unassigned) => Darja Shakhray (dshakhray)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1537050
Title:
500 error when filtering on non-ASCII value
Status in Glance:
New
Bug description:
ENVARIMENT: devstack, master 21.01.2016, glance, artifacts
send request: curl -H "X-Auth-Token: token" -H "Accept-Encoding:
utf8" http://host:port/v3/artifacts/myartifact/v2.0/drafts?name=дд;
actual result:
2016-01-22 12:58:13.683 ERROR glance.common.wsgi [req-31378054-50ef-42aa-80d6-2f014b8e7317 580fe2a1e2f049408f0feedf9f199e2d 04cd4fafed9b4a5a826c187375b6297d] Caught error: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi Traceback (most recent call last):
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 882, in __call__
2016-01-22 12:58:13.683 TRACE glance.common.wsgi action, request)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 919, in dispatch
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return method(*args, **kwargs)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 822, in list
2016-01-22 12:58:13.683 TRACE glance.common.wsgi params)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 780, in _get_filters
2016-01-22 12:58:13.683 TRACE glance.common.wsgi property_value = self._bring_to_type(str_type, property_value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v3/artifacts.py", line 715, in _bring_to_type
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return mapper[type_name](value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1537050/+subscriptions
Follow ups