On /containers/ GET (list) 'secret_refs' structure includes 'secret_id' not 'secret_ref'

Bug #1359452 reported by Adam Harwell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Critical
Adam Harwell

Bug Description

When performing a GET on the root Container resource (for a list of Containers) the "secret_refs" structure in each Container looks like the following:

"secret_refs": [
    {
        "secret_id": "0df4cbfd-e1cb-4b0e-b810-e122fd55fc6a",
        "name": "certificate"
    }
]

It should contain a "secret_ref" with a full HATEOS URI, not a "secret_id" with just a UUID.

Expected behavior:

"secret_refs": [
    {
        "secret_ref": "http://localhost:9311/v1/12345/secrets/0df4cbfd-e1cb-4b0e-b810-e122fd55fc6a",
        "name": "certificate"
    }
]

Changed in barbican:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Adam Harwell (adam-harwell)
milestone: none → juno-3
description: updated
summary: - Container GET 'secret_refs' structure includes 'secret_id' not
- 'secret_ref'
+ On /containers/ GET (list) 'secret_refs' structure includes 'secret_id'
+ not 'secret_ref'
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

Fix proposed to branch: master
Review: https://review.openstack.org/115819

Changed in barbican:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/115819
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=dcb2f764d3cb0ccbd93e126d876077bd4321bb3e
Submitter: Jenkins
Branch: master

commit dcb2f764d3cb0ccbd93e126d876077bd4321bb3e
Author: Adam Harwell <email address hidden>
Date: Wed Aug 20 18:37:00 2014 -0500

    Fix Container list to properly format secret_refs

    Change-Id: I4f2b65ec3233e77522804fa9ad3be37d4afa3b67
    Closes-Bug: 1359452

Changed in barbican:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: juno-3 → 2014.2
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.