[MDSAL-128] onData(Tree)Change is not invoked if IID contains ukneyed list Created: 10/Feb/16  Updated: 09/Mar/18  Resolved: 30/Jan/18

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

Type: Bug
Reporter: Martin Sunal Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates MDSAL-298 java.lang.IllegalStateException: Unsu... Resolved
External issue ID: 5297

 Description   

DataChangeListener or DataTreeChangeListener does not get data change event if is registered with instance-identifier containing unkeyed list.

Yang used in cases below:
container con1 {
list list1 {
key "list1key";
leaf list1key

{ type string; }

list unkeyed-list {
leaf this-is-not-key

{ type string; }

list list2 {
key "list2key";
leaf list2key

{ type string; }

}
}
}
}

Case 1:
DataTreeChangeListener is registered with IID:
InstanceIdentifier.builder(Con1.class).child(List1.class).child(UnkeyedList.class).child(List2.class).build();
The listener does not get notification when instance of list2 is created.

Case 2:
DataTreeChangeListener is registered with IID:
InstanceIdentifier.builder(Con1.class).child(List1.class).child(UnkeyedList.class).build();
The listener does not get notification when instance of list2 or instance of unkeyed-list are created.

CONTROLLER-1:
InstanceIdentifier.builder(Con1.class).child(List1.class).build();
The listener does not get notification when instance of list2 or instance of unkeyed-list are created but it get notification when instance of list1 is created.

Also DataObjectModification representing unkeyed-list never contains modified children.


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