[YANGTOOLS-662] Anyxml is not parsed correctly Created: 27/Sep/16  Updated: 10/Apr/22  Resolved: 05/Nov/16

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

Type: Bug
Reporter: Miroslav Kovac Assignee: Igor Foltin
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:
Blocks
blocks NETCONF-278 API Explorer Model Schema Data Type '... Resolved
External issue ID: 6814

 Description   

When anyxml is parsed to normalized nodes it doesn`t parse the value correctly. It always returns null



 Comments   
Comment by Ivan Hrasko [ 27/Sep/16 ]

any example?

Comment by Ivan Hrasko [ 27/Sep/16 ]

Example is in module simple-data-types

Comment by Ivan Hrasko [ 27/Sep/16 ]

Anyxml in xml format works fine. But when using Json, anyxml node value is ignored in:
org.opendaylight.yangtools.yang.data.codec.gson.JsonParserStream#read

-> Bug moved to yangtools

PUT: http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/device1/yang-ext:mount/simple-data-types:cont

{
"simple-data-types:cont" : {
"simple-data-types:simple-any" : {
"simple-data-types:cont" :

{ "lfnint8Min" : "10", "lfnint8Max" : "11" }

},
"lfnint8Min" : "10",
"lfnint8Max" : "11"
}
}

Comment by Igor Foltin [ 25/Oct/16 ]

fix: https://git.opendaylight.org/gerrit/#/c/47491/

Comment by Igor Foltin [ 04/Nov/16 ]

stable/boron: https://git.opendaylight.org/gerrit/#/c/47995/

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