[MDSAL-654] Binding Query - Failed to execute object() method in QueryResult.Item Created: 22/Jan/21  Updated: 19/Apr/21  Resolved: 26/Jan/21

Status: Resolved
Project: mdsal
Component/s: DOM runtime
Affects Version/s: 4.0.17, 5.0.15, 6.0.8
Fix Version/s: 6.0.9, 5.0.17, 7.0.5

Type: Bug Priority: Medium
Reporter: Peter Suna Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Binding Query result data failed after executing object() method at QueryResult.Item instance.



 Comments   
Comment by Robert Varga [ 23/Jan/21 ]

This looks like a mismatch of YangInstanceIdentifier:

/(mdsal-query)foo/foo/system[{(mdsal-query)name=second}]/system[{(mdsal-query)name=second}]/alarms[{(mdsal-query)id=0}]

This should be:

/(mdsal-query)foo/foo/system/system[{(mdsal-query)name=second}]/alarms/alarms[{(mdsal-query)id=0}]

 I think.

Comment by Robert Varga [ 23/Jan/21 ]

So input into DOMQueryIterator seems to be okay:

currentPath = [(mdsal-query)foo]

current = Frame{data=(mdsal-query)foo}

remainingSelect = [(mdsal-query)system, (mdsal-query)system, (mdsal-query)alarms, (mdsal-query)alarms]

 

I think the back-edge of reconstructing the instance identifier is wrong

Comment by Robert Varga [ 23/Jan/21 ]

Actually no, we are also dealing with duplicate 'foo', which does not look right

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