[Bug 1485694] Re: Keystone raises an exception when it receives incorrectly encoded parameters

OpenStack Infra 1485694 at bugs.launchpad.net
Thu Aug 27 00:26:01 UTC 2015


Reviewed:  https://review.openstack.org/213796
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=ef5f60305ce756a0832106ffa98a2314435a402d
Submitter: Jenkins
Branch:    master

commit ef5f60305ce756a0832106ffa98a2314435a402d
Author: Sean Perry <sean.perry at hp.com>
Date:   Mon Aug 17 10:25:22 2015 -0700

    Prevent exception for invalidly encoded parameters
    
    An exception occurs in the WebOb library when it tries to decode a
    parameter that is not valid UTF8. To avoid this let's wrap the section
    using the WebOb code and raise a ValidationError so the user gets
    proper feedback instead of a UnknownError and a server 500 response.
    
    Change-Id: I6781770a6c5b317eaef84064ef61b9c838d22bc2
    Closes-Bug: 1485694


** Changed in: keystone
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/1485694

Title:
  Keystone raises an exception when it receives incorrectly encoded
  parameters

Status in Keystone:
  Fix Committed
Status in keystone package in Ubuntu:
  Confirmed

Bug description:
  The following command will cause an exception:

      $ curl -g -i -X GET
  http://localhost:35357/v3/users?name=nonexit%E8nt -H "User-Agent:
  python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token:
  "ADMIN

  This command works as expected:

      $ curl -g -i -X GET
  http://localhost:35357/v3/users?name=nonexit%C3%A8nt -H "User-Agent:
  python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token:
  ADMIN"

  The exception occurs fairly deep in the WebOb library while it is
  trying to parse the parameters our of the URL.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1485694/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list