[CONTROLLER-613] Error not reported when path and payload keys are inconsistent Created: 08/Jul/14 Updated: 14/Nov/17 Due: 11/Jul/14 Resolved: 14/Jul/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tony Tkacik | Assignee: | Jozef Gloncak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Windows |
||
| External issue ID: | 1330 |
| Description |
|
Adding a single service function with inconsistency between path and JSON name put /config/service-function:service-functions/service-function/fw-zz/ { ] This is the actual Service Function created { } Some things to notice: |
| Comments |
| Comment by Tom Pantelis [ 09/Jul/14 ] |
|
There's 2 separate issues here: 1) Restconf doesn't verify that the list key value in the URI matches the key put /config/service-function:service-functions/service-function/fw-zz/ { ] where service-function is a yang list element with "name" as the key. 2) The data store didn't notify the DataChangeListener of a new list entry where InstanceIdentifier.builder(ServiceFunctions.class) where ServiceFunction is a yang list element. |
| Comment by Jozef Gloncak [ 10/Jul/14 ] |
|
fix for first problem is proposed |
| Comment by Tony Tkacik [ 10/Jul/14 ] |
|
For Number 2, description was copied out from original report, and this is tracked in MD-SAL bugs, should be fixed by https://git.opendaylight.org/gerrit/8807 |
| Comment by Jozef Gloncak [ 11/Jul/14 ] |
|
Patch set 2 was submitted with incorporated comments |