[CONTROLLER-1194] is behavior of BooleanCodecStringImpl.deserialization() correct? Created: 11/Mar/15 Updated: 25/Jul/23 Resolved: 08/Jun/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Gloncak | Assignee: | Debalina Ghosh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2816 |
| Description |
|
If rest payload (described as YANG leaf - boolean type) contains value different from "true" ruturned value is always false. |
| Comments |
| Comment by Jozef Gloncak [ 11/Mar/15 ] |
|
This was reported by Viliam Luc with following description: We use ODL restconf to test VPP and we created some TCs to test yang leaves with boolean datatype. When we want to test negative scenario with incorrect value "test", ODL passes modified netconf request to VPP. By modified request I mean that it converts any boolean value (string, number, etc.) to "false". Therefore we cannot pass restconf request to VPP with incorrect value "test". |
| Comment by Tony Tkacik [ 04/Jun/15 ] |