[YANGTOOLS-1300] Codecs report wrong error-type in YangError Created: 25/Jun/21 Updated: 28/Jun/21 Resolved: 28/Jun/21 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | data-impl |
| Affects Version/s: | 6.0.6, 7.0.3 |
| Fix Version/s: | 6.0.7, 7.0.4 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Baseline codec validation of received values reports YangInvalidValueException with ErrorType.PROTOCOL. Based on the content of RFC6241 this seems to be rather wrong, as the validation is coming from the actual YANG models, hence is part of the Content layer as defined in https://datatracker.ietf.org/doc/html/rfc6241#section-1.2 . We should be reporting ErrorType.APPLICATION. |