[YANGTOOLS-1277] QName translation fails for identity leaf value Created: 22/Apr/21  Updated: 21/May/21  Resolved: 23/Apr/21

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: 4.0.15, 5.0.9, 6.0.5
Fix Version/s: 7.0.0, 6.0.6, 5.0.10

Type: Bug Priority: Medium
Reporter: Ivan Hrasko Assignee: Ivan Hrasko
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The background:
Identity leafs are special because their value is QName that needs to be translated too.

The problem:
When we try to translate identity leaf with QNameTransformingStreamWriter the node identifier for identity leaf is translated but its QName value is not.

Expected behavior:
We expect the value of identity leaf to be translated, too.



 Comments   
Comment by Ivan Hrasko [ 22/Apr/21 ]

We have added condition into QNameTransformingStreamWriter to check if leafs value is instance of QName. If yes then the QName value is translated, too

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