Non-API specific 404 exposes traceback

Bug #1089987 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Dolph Mathews
Folsom
Fix Released
Medium
Dolph Mathews

Bug Description

From the mailing list--

I'm working with Folsom Keystone as packaged in the Ubuntu PPA.

ii keystone 2012.2-0ubuntu1~cloud0
ii python-keystone 2012.2-0ubuntu1~cloud0

In a test setup, I'm seeing Python stack traces on Keystone public API
404s. If I visit <http://keystonehost:5000/this_should_404> I see the
traceback followed by a bit of non-parsing html:

<http://paste.openstack.org/show/27920/>

Is there a configuration directive or a pipeline change that I need to
make to fix this problem? My keystone.conf is very close to vanilla.

<http://paste.openstack.org/show/27924/>
---
Lars Lehtonen

Dolph Mathews (dolph)
Changed in keystone:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Dolph Mathews (dolph) wrote :

This is apparently fixed on master, but still reproducible on stable/folsom. On master:

    $ curl http://localhost:5000/this_should_404
    {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

    $ curl http://localhost:35357/this_should_404
    {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/18049

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
assignee: Dolph Mathews (dolph) → nobody
Dolph Mathews (dolph)
Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/18051
Committed: http://github.com/openstack/keystone/commit/be3dcf9873fb84bbb5c2cd3ed8f36444f353757e
Submitter: Jenkins
Branch: master

commit be3dcf9873fb84bbb5c2cd3ed8f36444f353757e
Author: Dolph Mathews <email address hidden>
Date: Thu Dec 13 10:01:21 2012 -0600

    Test for content-type appropriate 404 (bug 1089987)

    Change-Id: Idfba75f90e38de315ec50e660932beb8243f76f8

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (stable/folsom)

Reviewed: https://review.openstack.org/18049
Committed: http://github.com/openstack/keystone/commit/ec7b94d2ef008b716f4cc3d7c1fc7e8150858eeb
Submitter: Jenkins
Branch: stable/folsom

commit ec7b94d2ef008b716f4cc3d7c1fc7e8150858eeb
Author: Dolph Mathews <email address hidden>
Date: Thu Dec 13 10:01:21 2012 -0600

    Render content-type appropriate 404 (bug 1089987)

    Change-Id: I8d6acdaa7f8220341bca15cc4acba807910f6891

tags: added: in-stable-folsom
Mark McLoughlin (markmc)
tags: removed: in-stable-folsom
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-2 → 2013.1
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.