← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1454968] [NEW] hard to understand the uri printed in the log

 

Public bug reported:

In keystone's log file, we can easily find some uri printed like this:
http://127.0.0.1:35357/v3/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens

seems there is something wrong when we are trying to log the uri in the log file.
        LOG.info('%(req_method)s %(uri)s', {
            'req_method': req.environ['REQUEST_METHOD'].upper(),
            'uri': wsgiref.util.request_uri(req.environ),
        })


code is here: https://github.com/openstack/keystone/blob/master/keystone/common/wsgi.py#L232, but seems it has already been wrong when the req is passed in.

** Affects: keystone
     Importance: Undecided
         Status: New

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

Title:
  hard to understand the uri printed in the log

Status in OpenStack Identity (Keystone):
  New

Bug description:
  In keystone's log file, we can easily find some uri printed like this:
  http://127.0.0.1:35357/v3/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens/auth/tokens

  seems there is something wrong when we are trying to log the uri in the log file.
          LOG.info('%(req_method)s %(uri)s', {
              'req_method': req.environ['REQUEST_METHOD'].upper(),
              'uri': wsgiref.util.request_uri(req.environ),
          })

  
  code is here: https://github.com/openstack/keystone/blob/master/keystone/common/wsgi.py#L232, but seems it has already been wrong when the req is passed in.

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


Follow ups

References