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

Bug #1472747 reported by Paulo Ewerton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Paulo Ewerton

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.

Changed in horizon:
assignee: nobody → Paulo Ewerton (pauloewerton)
Changed in horizon:
status: New → In Progress
Revision history for this message
Paulo Ewerton (pauloewerton) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/199717
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=82393a010a0044b937bd5da84e75924e9166f043
Submitter: Jenkins
Branch: master

commit 82393a010a0044b937bd5da84e75924e9166f043
Author: Paulo Ewerton Gomes Fragoso <email address hidden>
Date: Wed Jul 8 19:30:00 2015 +0000

    Fix 'paginate' and 'admin' GET parameters in Keystone Projects REST API

    This patch converts 'paginate' and 'admin' parameter values to
    Python boolean values in the Projects get method in openstack_dashboard/
    api/rest/keystone.py.

    Change-Id: I94c09c68152e39d5304065fe1287ac994c958cbe
    Closes-Bug: 1472747

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-3 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.