[CONTROLLER-1249] It's possible to do POST to element to list with mismatching IDs in data and URI Created: 13/Apr/15  Updated: 25/Jul/23  Resolved: 15/May/15

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Juraj Sebin Assignee: Vaclav Demcak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 2981

 Description   

Sending request to http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/2 with data:
{
"id": 1
}

Returns response 204 No Content

And GET on URI http://localhost:8181/restconf/config/opendaylight-inventory:nodes returns data:
{
"nodes": {
"node": [

{ "id": "2" }

]
}
}

I'm not sure if this is expected behaviour?



 Comments   
Comment by Vaclav Demcak [ 24/Apr/15 ]

Fix for the validation process is available in

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

Comment by Vaclav Demcak [ 06/May/15 ]

stable/lithium:
https://git.opendaylight.org/gerrit/#/c/19681/

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