[YANGTOOLS-409] Yang-Data-Impl: write and then merge on same list in modification produces incorrect result Created: 09/Feb/15  Updated: 10/Apr/22  Resolved: 07/May/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jan Hajnar Assignee: Jan Hajnar
Resolution: Done 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
is duplicated by CONTROLLER-1271 Unable to read old children that were... Resolved
External issue ID: 2690

 Description   

mapNodePath is path to some MapNode.

fooMapNode contains one MapEntryNode child with value "foo".
barMapNode contains one MapEntryNode child with value "bar".

modificationTree.write(mapNodePath, fooMapNode);
modificationTree.merge(mapNodePath, barMapNode);

after commiting this modification to a tree and reading on mapNodePath, it contains only one MapEntryNode child with value "bar". Expected result would be for it to contain both "foo" and "bar" MapEntryNodes



 Comments   
Comment by Jan Hajnar [ 18/Mar/15 ]

This issue can be verified with this test:
patch:
https://git.opendaylight.org/gerrit/#/c/14967/
class:
ListConstraintsValidationTest
test:
minMaxListTestPass

Comment by Jan Hajnar [ 29/Apr/15 ]

patch:
https://git.opendaylight.org/gerrit/#/c/19145/

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