← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1684475] Re: Unauthorized exception in users panel as a member role user.

 

Reviewed:  https://review.openstack.org/458393
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=5d8c8fb85ba448a6076a06ad6835bcc1c6ef9ce2
Submitter: Jenkins
Branch:    master

commit 5d8c8fb85ba448a6076a06ad6835bcc1c6ef9ce2
Author: wei.ying <wei.ying@xxxxxxxxxxxx>
Date:   Thu Apr 20 16:07:37 2017 +0800

    Fix unauthorized exception in users panel
    
    If a member role user login and use admin to get keystoneclient,
    but he is not a super user, then a notAuthorized exceptions will be raised,
    it seems to be unreasonable.
    
    The following actions will throw unauthorized exception.
    
    Go to Users panel, Click user name , Click Change Password,
    Submit Change Password form.
    
    Change-Id: I4f6486b92f023ad0daecfff51e3a1ed16b0e78c0
    Closes-Bug: #1684475


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1684475

Title:
  Unauthorized exception in users panel as a member role user.

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Env: devstack master branch

  Steps to reproduce:
  1. Enable OPENSTACK_ENDPOINT_TYPE = “publicURL” in local_settings.py
  2. As a member role user login
  3. Go to identity/Users panel  or Click user name or Click Change Password row action or Submit Change Password form.

  Error info:

  Unauthorized:
  Traceback (most recent call last):
    File "/opt/stack/horizon/openstack_dashboard/dashboards/identity/users/views.py", line 85, in get_data
      self.request.user.id)
    File "/opt/stack/horizon/openstack_dashboard/api/keystone.py", line 454, in user_get
      user = keystoneclient(request, admin=admin).users.get(user_id)
    File "/opt/stack/horizon/openstack_dashboard/api/keystone.py", line 170, in keystoneclient
      raise exceptions.NotAuthorized
  NotAuthorized

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


References