[CONTROLLER-313] Nagasena EXI library encodes xml incorrectly Created: 14/Apr/14  Updated: 25/Jul/23  Due: 26/Apr/14  Resolved: 24/Apr/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Maros Marsalek Assignee: Maros Marsalek
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 CONTROLLER-290 Milestone: config and netconf bugfixing Resolved
External issue ID: 722

 Description   

See https://git.opendaylight.org/gerrit/#/c/5678/13/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/EXILibTest.java

The encoding process succeeds, but decoding then fails. The problem is namespace handling and appears only when using SAX Transformer to encode DOM to EXI.

There is a workaround in https://git.opendaylight.org/gerrit/#/c/5678/13/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfMessageToEXIEncoder.java but it needs to be fixed.

We need to pinpoint the issue and if it really is a nagasena bug, then
we need either to fix nagasena library ourselves and propose a patch:
https://sourceforge.net/projects/openexi/
or report the issue to nagasena developers and wait for them to fix it.



 Comments   
Comment by Martin Bobak [ 15/Apr/14 ]

Issue seems to be nagasena bug, therefore I posted https://sourceforge.net/p/openexi/discussion/800031/thread/5b0835a0/ to nagasena forum.

Comment by Martin Bobak [ 15/Apr/14 ]

correct url for nagasena forum post : https://sourceforge.net/p/openexi/discussion/800031/thread/f7a59521/

Comment by Martin Bobak [ 23/Apr/14 ]

Nagasena author added dom serialization test http://sourceforge.net/p/openexi/discussion/800031/thread/f7a59521/#3176. Investigating code right now.

Comment by Martin Bobak [ 24/Apr/14 ]

nagasena version bumped to 0000.0002.0038 where this issue is fixed

Comment by Martin Bobak [ 24/Apr/14 ]

nagasena version bumped to 0000.0002.0038 where this issue is fixed

Comment by Martin Bobak [ 24/Apr/14 ]

fixed in https://git.opendaylight.org/gerrit/#/c/6351/

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