[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:
Relates
relates to NETCONF-786 ODL does not consider error-msg state... Resolved

 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.


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