[AAA-128] domainid should not be accepted as input when creating a domain Created: 04/May/17  Updated: 21/Mar/19  Resolved: 12/Feb/18

Status: Resolved
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jamo Luhrsen Assignee: Ryan Goulding
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 8382

 Description   

email thread here:

https://lists.opendaylight.org/pipermail/aaa-dev/2017-May/001352.html

the create is allowing us to pass domainid when creating a domain, but
that id would not be used anyway as it appears to be the same as the
name.

example:

curl -u "admin:admin" -X POST -d '

{"description":"karaf4 was not easy","name":"carbon_is_late","domainid":"ThisWillNotBeUsed","enabled":"true"}

' -H "Content-Type:application/json" http://$ODL:8181/auth/v1/domains

{"domainid":"carbon_is_late","name":"carbon_is_late","description":"karaf4 was not easy","enabled":true}

curl -u "admin:admin" http://$ODL:8181/auth/v1/domains | python -m json.tool

{
"domains": [

{ "description": "default odl sdn domain", "domainid": "sdn", "enabled": true, "name": "sdn" }

,

{ "description": "karaf4 was not easy", "domainid": "carbon_is_late", "enabled": true, "name": "carbon_is_late" }

]
}



 Comments   
Comment by Ryan Goulding [ 11/May/17 ]

https://git.opendaylight.org/gerrit/#/c/56607/

Comment by Jamo Luhrsen [ 15/May/17 ]

need the carbon cherry-pick to get in too:
https://git.opendaylight.org/gerrit/#/c/57097/

Comment by A H [ 15/May/17 ]

Is AAA-128 a blocker bug?

Comment by Jamo Luhrsen [ 15/May/17 ]

(In reply to A H from comment #3)
> Is AAA-128 a blocker bug?

no, not a blocker. it's minor in nature.

Comment by Ryan Goulding [ 12/Feb/18 ]

Forgot to mark this done.  It is in fact done.

Generated at Wed Feb 07 19:08:42 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.