Java API fails when updating an object with read-only fields
Bug #1786022 reported by
Filip Chmielewski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
New
|
High
|
Filip Chmielewski |
Bug Description
Updating an ApplicationPoli
information type: | Proprietary → Public |
tags: | added: go-api |
summary: |
- Java API fails when requesting update of ApplicationPolicySet object + Java API fails when updating an object with read-only fields |
description: | updated |
To post a comment you must log in.
This request, generated by the Java API, causes a HTTP 400 BAD REQUEST:
{"application- policy- set":{" all_application s":false, :{"permissions" :{"owner" :"contrail- api", {"uuid_ mslong" :10568520829334 802247, :12400281644562 375008} , :true}, :{"owner" :"cloud- admin", name":" new-aps" , policy_ refs":[ {"to":[ "default- domain" , {"sequence" :"0"}, "617a27c5- 721b-4c6d- ab47-dfe05f5fd6 19"}, "default- domain" , {"sequence" :"1"}}] , "92aaedb3- 29d1-4f47- ac16-a674caefe1 60", :["default- domain" , type":" project" , uuid":" e2ed1657- f61b-4977- b83b-8998d4a958 1f"}}
"id_perms"
"owner_access":7,
"group":"admin",
"group_access":7,
"other_access":7},
"uuid":
"uuid_lslong"
"enable":true,
"description":"",
"user_visible"
"perms2"
"owner_access":7,
"global_access":0,
"share":[]},
"display_
"firewall_
"vCenter",
"NewPolicy"],
"attr":
"uuid":
{"to":[
"vCenter",
"new-fp"],
"attr":
"name":"new-aps",
"uuid":
"fq_name"
"vCenter",
"new-aps"],
"parent_
"parent_
This request updates the object with HTTP 200 OK:
{"application- policy- set":{ :{"permissions" :{"owner" :"contrail- api", {"uuid_ mslong" :10568520829334 802247, :12400281644562 375008} , :true}, :{"owner" :"cloud- admin", name":" new-aps" , policy_ refs":[ {"to":[ "default- domain" , {"sequence" :"0"}, "617a27c5- 721b-4c6d- ab47-dfe05f5fd6 19"}, "default- domain" , {"sequence" :"1"}}] , "92aaedb3- 29d1-4f47- ac16-a674caefe1 60", :["default- domain" , type":" project" , uuid":" e2ed1657- f61b-4977- b83b-8998d4a958 1f"}}
"id_perms"
"owner_access":7,
"group":"admin",
"group_access":7,
"other_access":7},
"uuid":
"uuid_lslong"
"enable":true,
"description":"",
"user_visible"
"perms2"
"owner_access":7,
"global_access":0,
"share":[]},
"display_
"firewall_
"vCenter",
"NewPolicy"],
"attr":
"uuid":
{"to":[
"vCenter",
"new-fp"],
"attr":
"name":"new-aps",
"uuid":
"fq_name"
"vCenter",
"new-aps"],
"parent_
"parent_
The only difference is the 'all_applications' field. It is set to 'false' before the update.