[VNC API server] Cannot list resource with list or map property as field

Bug #1592371 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

Cannot list resource with list or map property as field.

If we try to list a type of resource with a delimited list of fields which contains list or map property:

curl http://<IP>:8082/global-system-configs?fields=user_defined_counter,autonomous_system

{
  "global-system-configs": [
    {
       "href": "http://<IP>:8082/global-system-config/5b4b5865-ec2d-4...",
       "fq_name": [
         "default-global-system-config"
       ],
       "uuid": "5b4b5865-ec2d-40cb-b39f-ba678534c45f",
       "autonomous_system": 64512
    }
  ]
}

{
  "global-system-configs": [
      {
        "user_defined_counter": {
          "counter": [
            {
              "pattern": "$test2*",
            "name": "test2"
            },
            {
              "pattern": "$test*",
              "name": "test"
            }
          ]
        },
       "href": "http://<IP>:8082/global-system-config/5b4b5865-ec2d-4...",
       "fq_name": [
         "default-global-system-config"
       ],
       "uuid": "5b4b5865-ec2d-40cb-b39f-ba678534c45f",
       "autonomous_system": 64512
    }
  ]
}

Tags: api config
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/21154
Submitter: ?douard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/21154
Committed: http://github.org/Juniper/contrail-controller/commit/cd1af2ab036c9bbc5523e37357a4979212bb4d90
Submitter: Zuul
Branch: master

commit cd1af2ab036c9bbc5523e37357a4979212bb4d90
Author: Édouard Thuleau <email address hidden>
Date: Tue Jun 14 16:27:09 2016 +0200

[VNC API server] Resource list with list/map property fields

Fix resource list when fields contains list or map properties

Change-Id: I320b1b99797fd2c2c56ee63c73bf0172473bd60b
Closes-Bug: #1592371

Sachin Bansal (sbansal)
Changed in opencontrail:
status: New → Fix Committed
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.