[MDSAL-724] Reject invalid InstanceIdentifiers Created: 21/Feb/22  Updated: 22/Feb/22  Resolved: 22/Feb/22

Status: Resolved
Project: mdsal
Component/s: Binding runtime
Affects Version/s: None
Fix Version/s: 9.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-435 BindingCodecTreeNode does not allow e... Resolved
relates to YANGTOOLS-437 Binding Data Codec: TreeNode does not... Resolved
relates to MDSAL-696 Do not use DerivableSchemaNode Resolved

 Description   

The work done in YANGTOOLS-435 ends up lowering safety guarantees about what streamChild() actually does.

This means that if we take a class generated for a top-level Notification or and RpcInput, defeating compile-time safeguards to create an InstanceIdentifier, the codec will happily generate a YangInstanceIdentifier containing the QName of that construct.

As such, the changes we've made in YANGTOOLS-435 need to be undone and we need separate methods to enter into notification, rpc and action contexts, so that attempts at such misuse result in codec failure.

 


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