← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1434011] Re: Keystoneclient can't handle Unicode objects

 

The s3_token middleware in keystoneclient is deprecated and will only
get security updates. Try this with the s3_token middleware in the
keystonemiddleware package.

https://github.com/openstack/python-
keystoneclient/blob/master/keystoneclient/middleware/s3_token.py#L105


** Changed in: keystone
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1434011

Title:
  Keystoneclient can't handle Unicode objects

Status in OpenStack Identity (Keystone):
  Won't Fix

Bug description:
  Keystoneclient cannot handle Objects which have Unicode name(UTF-8).

  The problem is here: https://github.com/openstack/python-
  keystoneclient/blob/master/keystoneclient/middleware/s3_token.py#L255

  When envirion['PATH_INFO'] has arrived with unicode character(s), 
  replace method raises UnicodeDecodeError.

  The simplest solution to handle this problem is this:
  ============================================================================
  255         environ['PATH_INFO'] = environ['PATH_INFO'].decode('utf-8').replace(account,
  256                                                             new_tenant_name).encode('utf-8')
  ============================================================================

  However, I am not sure this is a totally correct solution.
  When the path_info is propagated to the other middleware(s), the same problem may happen if they try to manipulate the value without consideration about Unicode.

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


References