[YANGTOOLS-299] Fail to find codec for type ...)leafref Created: 10/Sep/14  Updated: 10/Apr/22  Resolved: 19/Nov/14

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

Type: Bug
Reporter: Maros Marsalek Assignee: Ladislav Borak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf.log    
Issue Links:
Blocks
blocks CONTROLLER-987 Wrong handling of leaf-ref leaves tha... Resolved
External issue ID: 1781

 Description   

2014-09-10 09:19:58.380 CEST [http-bio-8080-exec-2] ERROR o.o.y.y.d.i.codec.xml.XmlStreamUtils - Failed to find codec for type (urn:ietf:params:xml:ns:yang:1)leafref [xpath=/config:services/config:service[config:type=current()/../type]/config:instance/config:name], falling back to using stream

When executing get/get-config on a loopback netconf mountpoint via RESTCONF, this error is logged for leafrefs.

http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount



 Comments   
Comment by RichardHill [ 27/Oct/14 ]

Issue still present in karaf snapshot. 27th October.
Logs attached.

Comment by RichardHill [ 27/Oct/14 ]

Attachment karaf.log has been added with description: karaf log from 27th October snapshot

Comment by Maros Marsalek [ 03/Nov/14 ]

This needs to be addressed in restconf as well, since restconf cannot properly read leafrefs to e.g. identityrefs. This makes it impossible to configure new modules for config subsystem over Restconf if the module contains any dependencies. This is not working since fix for BUG-2184 was submitted.

Comment by Ladislav Borak [ 06/Nov/14 ]

proposed patch: https://git.opendaylight.org/gerrit/#/c/12518/

Comment by Jozef Gloncak [ 13/Nov/14 ]

Additional patch
https://git.opendaylight.org/gerrit/#/c/12666/2

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