Unparseable endpoint URL's should raise a user friendly error

Bug #1058494 reported by Dolph Mathews
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
stelford
Folsom
Fix Released
Low
Alan Pevec

Bug Description

A common user-error during configuration involves mistakes in the configured endpoint URLs, resulting in failed string formatting. Unfortunately, keystone barfs back a 500 and dumps a rather user-unfriendly stacktrace back to the logs with no real indication of what went wrong.

I think this condition should be caught with the following results:

A) a user-friendly 500 should be raised back to the client, at least suggesting that the user read the logs for more details
B) an ERROR message should be logged with the offending URL, and a note about what was expected of it

Most recently, this came up on the mailing list: https://lists.launchpad.net/openstack/msg17037.html

Dolph Mathews (dolph)
Changed in keystone:
status: New → Confirmed
stelford (stef-ummon)
Changed in keystone:
assignee: nobody → stelford (stef-ummon)
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/14117

Changed in keystone:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

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

commit a225624a67825e8be430350221073c43f90e97e4
Author: Stef T <email address hidden>
Date: Fri Oct 5 21:18:43 2012 -0400

    Unparseable endpoint URL's should raise friendly error

      fixes bug #1058494

    Change-Id: Id89c530e2f4e7dcf0db03515afb8b2a85fbf8077

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
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/18378

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

Reviewed: https://review.openstack.org/18378
Committed: http://github.com/openstack/keystone/commit/6c95b73b196675e0599d78ad2b19c2ca24e7067f
Submitter: Jenkins
Branch: stable/folsom

commit 6c95b73b196675e0599d78ad2b19c2ca24e7067f
Author: Stef T <email address hidden>
Date: Fri Oct 5 21:18:43 2012 -0400

    Unparseable endpoint URL's should raise friendly error

      fixes bug #1058494

    Change-Id: Id89c530e2f4e7dcf0db03515afb8b2a85fbf8077

Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-1 → 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.