Comment 2 for bug 1039132

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-common (master)

Reviewed: https://review.openstack.org/11657
Committed: http://github.com/openstack/openstack-common/commit/454693d250e7085cefef30e1b43608477f34a345
Submitter: Jenkins
Branch: master

commit 454693d250e7085cefef30e1b43608477f34a345
Author: Vishvananda Ishaya <email address hidden>
Date: Mon Aug 20 10:25:21 2012 -0700

    Allow non-string items in the creds dict.

    The generic checking in policy allows us to match against data from the
    creds_dict using a very simple syntax. For example, in policy.json if
    you had something like:

    "some_action": [["project_id:foo"]]

    it would only allow project foo to perform that action, but something
    like:

    "some_action": [["is_admin:True"]]

    where is_admin is a boolean fails.

    This modifies the check to convert the value to unicode before
    attempting to compare it. It includes a test.

    Fixes bug 1039132

    Change-Id: I0e53a6ea2709212d4a1536f901bcf1e717a232ca