Attempt to access non-existing unicode archive policy results in 500 error

Bug #1569749 reported by Yurii Prokulevych
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Medium
Mehdi Abaakouk
2.1
Fix Released
Medium
Julien Danjou

Bug Description

Attempt to access non-existing unicode policy results in 500 error message:

> GET http://192.168.1.13:8041/v1/archive_policy/%E2%9C%94%C3%A9%C3%B1%E2%98%83
> user-agent: gabbi/1.17.0 (Python urllib3)
> x-auth-token: 48e3b2aa21024ab1b02e03f6b6d8551e

< 500 INTERNAL SERVER ERROR
< Content-Type: text/html
< Content-Length: 291
< Server: Werkzeug/0.9.1 Python/2.7.5
< Date: Wed, 13 Apr 2016 08:03:07 GMT
< reason: INTERNAL SERVER ERROR

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Packages:
python-gnocchiclient-2.0.0-1.el7ost.noarch
openstack-gnocchi-carbonara-1.3.4-1.el7ost.noarch
openstack-gnocchi-statsd-1.3.4-1.el7ost.noarch
python-gnocchi-1.3.4-1.el7ost.noarch
openstack-gnocchi-api-1.3.4-1.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-1.3.4-1.el7ost.noarch
openstack-gnocchi-metricd-1.3.4-1.el7ost.noarch
openstack-gnocchi-common-1.3.4-1.el7ost.noarch

python-werkzeug-0.9.1-2.el7.noarch

Regards,
Yurii

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/305066

Changed in gnocchi:
assignee: nobody → Mehdi Abaakouk (sileht)
status: Triaged → In Progress
Julien Danjou (jdanjou)
no longer affects: gnocchi/1.3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/305066
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=69f7819f1f9fb14abda94204cd97096ac66d8df6
Submitter: Jenkins
Branch: master

commit 69f7819f1f9fb14abda94204cd97096ac66d8df6
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Apr 13 10:57:33 2016 +0200

    Don't encode exception message in ascii

    Closes-bug: #1569749
    Change-Id: I7698e4d73a41325fb34998166317b250afd7afd3

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (stable/2.1)

Fix proposed to branch: stable/2.1
Review: https://review.openstack.org/305403

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (stable/2.1)

Reviewed: https://review.openstack.org/305403
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=033d025281e53422ead263e68365de334b1845a5
Submitter: Jenkins
Branch: stable/2.1

commit 033d025281e53422ead263e68365de334b1845a5
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Apr 13 10:57:33 2016 +0200

    Don't encode exception message in ascii

    Closes-bug: #1569749
    Change-Id: I7698e4d73a41325fb34998166317b250afd7afd3
    (cherry picked from commit 69f7819f1f9fb14abda94204cd97096ac66d8df6)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/gnocchi 2.2.0

This issue was fixed in the openstack/gnocchi 2.2.0 release.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: Fix Committed → Fix Released
milestone: none → 2.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.