← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472747] [NEW] keystone projects rest api does not handle get requests boolean parameters correctly

 

Public bug reported:

When passing a boolean parameter in a get request to the projects api,
the parameter value should be appropriately converted to a python
boolean value. Listing of a non-admin user projects via rest api, for
example, is broken because the boolean 'admin' parameter is not handled
correctly.

To reproduce this bug:
1) Pull this patch from gerrit: https://review.openstack.org/#/c/199567/ and enable the panel;
2) Use manage.py utility and restart apache, if needed;
3) Login with a non-admin user (should have privilege to list their own projects, i.e., identity:list_user_projects in policy);
4) Go to url /identity/ngprojects.

** Affects: horizon
     Importance: Undecided
     Assignee: Paulo Ewerton (pauloewerton)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => Paulo Ewerton (pauloewerton)

-- 
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/1472747

Title:
  keystone projects rest api does not handle get requests boolean
  parameters correctly

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When passing a boolean parameter in a get request to the projects api,
  the parameter value should be appropriately converted to a python
  boolean value. Listing of a non-admin user projects via rest api, for
  example, is broken because the boolean 'admin' parameter is not
  handled correctly.

  To reproduce this bug:
  1) Pull this patch from gerrit: https://review.openstack.org/#/c/199567/ and enable the panel;
  2) Use manage.py utility and restart apache, if needed;
  3) Login with a non-admin user (should have privilege to list their own projects, i.e., identity:list_user_projects in policy);
  4) Go to url /identity/ngprojects.

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


Follow ups