<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[YANGTOOLS-804] Netconf response payload fails to render in JSON, only XML works in RestConf response</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-804</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Version: Boron-SR3.&lt;/p&gt;

&lt;p&gt;Restconf call to Netconf-mounted router to fetch some data with Accept: json header results in severely truncated response payload.&lt;/p&gt;

&lt;p&gt;The same call with Accept: xml header results in the entire payload correctly rendered.&lt;/p&gt;

&lt;p&gt;Setting TRACE options for netconf within karaf shows the netconf data is indeed intact in the router&apos;s RPC response.  &lt;/p&gt;
{set TRACE org.opendaylight.netconf.sal.connect.netconf, set TRACE org.opendaylight.netconf}


&lt;p&gt;Attachments:&lt;br/&gt;
jsonoutputapi.txt: &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Example RestConf method used&lt;/li&gt;
	&lt;li&gt;An example of the heavily-truncated JSON response&lt;/li&gt;
	&lt;li&gt;The correct payload in the XML response to the same method.&lt;/li&gt;
	&lt;li&gt;Snippet/example from karaf log showing Netconf RPC response payload&lt;/li&gt;
	&lt;li&gt;(also in karaf log) A suspicious (or not) WARN about leading LF (0a) character (which can be seen in the NetconfXMLToMessageDecoder raw netconf response payload).&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23224">YANGTOOLS-804</key>
            <summary>Netconf response payload fails to render in JSON, only XML works in RestConf response</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.opendaylight.org/images/icons/priorities/blocker.svg">Highest</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="bvaradar">Balaji Varadaraju</assignee>
                                    <reporter username="intensifysecurity@gmail.com">JH</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Aug 2017 18:47:20 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:01 +0000</updated>
                            <resolved>Thu, 17 May 2018 08:49:20 +0000</resolved>
                                                    <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="44512" author="intensifysecurity@gmail.com" created="Thu, 3 Aug 2017 18:47:20 +0000"  >&lt;p&gt;Attachment jsonoutputapi.txt has been added with description: RestConf methods, output examples, and karaf log&lt;/p&gt;</comment>
                            <comment id="44504" author="jatoth@cisco.com" created="Thu, 10 Aug 2017 11:12:37 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Does it happen when you GET any data ? Or JSON Response is incomplete only while do you want to use RPC.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="44505" author="jatoth@cisco.com" created="Thu, 10 Aug 2017 12:00:48 +0000"  >&lt;p&gt;+ can you please add any testing yang with same structure ?&lt;/p&gt;</comment>
                            <comment id="44513" author="intensifysecurity@gmail.com" created="Tue, 15 Aug 2017 00:20:32 +0000"  >&lt;p&gt;Attachment show-system@2017-01-01.yang has been added with description: Requested Yang model for RPC example&lt;/p&gt;</comment>
                            <comment id="44506" author="intensifysecurity@gmail.com" created="Tue, 15 Aug 2017 02:01:34 +0000"  >&lt;p&gt;(In reply to Jakub Toth from comment #1)&lt;br/&gt;
&amp;gt; Hi,&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Does it happen when you GET any data ? Or JSON Response is incomplete only&lt;br/&gt;
&amp;gt; while do you want to use RPC.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Thanks&lt;/p&gt;

&lt;p&gt;GET appears to be working.&lt;/p&gt;

&lt;p&gt;Thx&lt;/p&gt;</comment>
                            <comment id="44507" author="bvaradar@brocade.com" created="Tue, 5 Sep 2017 16:15:33 +0000"  >&lt;p&gt;HI Jakub,&lt;br/&gt;
         Do you need any more information on this? This happens when we use a specific RPC.&lt;/p&gt;</comment>
                            <comment id="44508" author="bvaradar@brocade.com" created="Mon, 11 Sep 2017 20:41:57 +0000"  >&lt;p&gt;Hi Jakub,&lt;br/&gt;
         Can you please let know the findings and progress on this issue? Thanks for your help.&lt;/p&gt;</comment>
                            <comment id="44509" author="jmorvay@cisco.com" created="Tue, 19 Sep 2017 14:25:28 +0000"  >&lt;p&gt;Moving this to Restconf component, since this seems to be related to parsing of normalized nodes to JSON.&lt;/p&gt;

&lt;p&gt;Particularly, I think there can be some issue with transforming anyxml rpc output normalized node to JSON.&lt;/p&gt;</comment>
                            <comment id="44510" author="tcere" created="Tue, 3 Oct 2017 11:11:49 +0000"  >&lt;p&gt;yangtools issue, unit test:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/63902&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/63902&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44511" author="pkajsa" created="Thu, 5 Oct 2017 14:45:59 +0000"  >&lt;p&gt;master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/63984/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/63984/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59738" author="bvaradar" created="Thu, 19 Oct 2017 23:23:40 +0000"  >&lt;p&gt;I took the master distribution from&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.8.0-SNAPSHOT/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.8.0-SNAPSHOT/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after it is merged to master.&lt;/p&gt;

&lt;p&gt;the exact build is &lt;/p&gt;

&lt;p&gt;karaf-0.8.0-20171019.165729-765.zip	Thu Oct 19 16:57:58 UTC 2017	328022058&lt;/p&gt;

&lt;p&gt;I still see the same issue. I am no able to get the output in JSON for this request. XML works.&lt;/p&gt;

&lt;p&gt;Is it the correct build? Can you please verify once.&lt;/p&gt;</comment>
                            <comment id="59757" author="rovarga" created="Tue, 24 Oct 2017 09:36:15 +0000"  >&lt;p&gt;Yangtools is currently disconnect from autorelease. This will be integrated with 2.0.0 release.&lt;/p&gt;</comment>
                            <comment id="60032" author="agosain" created="Mon, 13 Nov 2017 22:08:58 +0000"  >&lt;p&gt;I have put a patch for yangtools-1.2.x on &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/65394/4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/65394/4&lt;/a&gt; . Please approve/merge it.&lt;/p&gt;</comment>
                            <comment id="60034" author="rovarga" created="Tue, 14 Nov 2017 00:18:22 +0000"  >&lt;p&gt;Reopening for integration in 1.2.2.&lt;/p&gt;</comment>
                            <comment id="60070" author="agosain" created="Fri, 17 Nov 2017 02:01:26 +0000"  >&lt;p&gt;We tested with the real input for the device for the same issue and this resulted in null pointer exception. Tested this input with the Unit test for bug8927/input.xml and got the same error back.  &lt;br/&gt;
Following error is thrown when this input xml is sent &lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlValue(JSONNormalizedNodeStreamWriter.java:277)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlNode(JSONNormalizedNodeStreamWriter.java:244)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeObject(JSONNormalizedNodeStreamWriter.java:269)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlNode(JSONNormalizedNodeStreamWriter.java:251)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeObject(JSONNormalizedNodeStreamWriter.java:269)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlNode(JSONNormalizedNodeStreamWriter.java:251)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeObject(JSONNormalizedNodeStreamWriter.java:269)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlNode(JSONNormalizedNodeStreamWriter.java:251)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeObject(JSONNormalizedNodeStreamWriter.java:269)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeXmlNode(JSONNormalizedNodeStreamWriter.java:251)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeAnyXmlValue(JSONNormalizedNodeStreamWriter.java:238)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.anyxmlNode(JSONNormalizedNodeStreamWriter.java:206)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.wasProcessAsSimpleNode(NormalizedNodeWriter.java:153)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.write(NormalizedNodeWriter.java:101)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.writeChildren(NormalizedNodeWriter.java:169)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.wasProcessedAsCompositeNode(NormalizedNodeWriter.java:195)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.write(NormalizedNodeWriter.java:97)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.TestUtils.normalizedNodesToJsonString(TestUtils.java:74)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.gson.AnyXmlSupportTest.bug8927Test(AnyXmlSupportTest.java:149)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:498)&lt;/p&gt;

&lt;p&gt;Following is the input xml for the failing test&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;root xmlns:nc=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; xmlns:junos=&quot;http://xml.juniper.net/junos/17.4X48/junos&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;foo xmlns=&quot;bug8927.test&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;multi-routing-engine-results xmlns=&quot;bug8927.test&quot;&amp;gt;&lt;/p&gt;

&lt;p&gt;    &amp;lt;multi-routing-engine-item&amp;gt;&lt;/p&gt;

&lt;p&gt;        &amp;lt;re-name&amp;gt;bsys-re0&amp;lt;/re-name&amp;gt;&lt;/p&gt;

&lt;p&gt;        &amp;lt;alarm-information xmlns=&quot;bug8927.test&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-summary&amp;gt;&lt;br/&gt;
                &amp;lt;active-alarm-count&amp;gt;11&amp;lt;/active-alarm-count&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-summary&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510607242&quot;&amp;gt;2017-11-13 21:07:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Minor&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;N+1 Power redundancy missing in Upper zone&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Redundant Supply&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510599812&quot;&amp;gt;2017-11-13 19:03:32 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Minor&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;N+1 Power redundancy missing in Lower zone&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Redundant Supply&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269219&quot;&amp;gt;2017-11-09 23:13:39 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Minor&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;Check plane 2 Fabric Chip&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;Check plane 2 FCHIP&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 13&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 12&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 11&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 10&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 4&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 3&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 2&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-detail&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-time junos:seconds=&quot;1510269022&quot;&amp;gt;2017-11-09 23:10:22 UTC&amp;lt;/alarm-time&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-class&amp;gt;Major&amp;lt;/alarm-class&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-description&amp;gt;No Input Feed Selected for PSM 1&amp;lt;/alarm-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-short-description&amp;gt;No Input Feed Selec&amp;lt;/alarm-short-description&amp;gt;&lt;br/&gt;
                &amp;lt;alarm-type&amp;gt;Chassis&amp;lt;/alarm-type&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-detail&amp;gt;&lt;br/&gt;
        &amp;lt;/alarm-information&amp;gt;&lt;br/&gt;
    &amp;lt;/multi-routing-engine-item&amp;gt;&lt;/p&gt;

&lt;p&gt;    &amp;lt;multi-routing-engine-item&amp;gt;&lt;/p&gt;

&lt;p&gt;        &amp;lt;re-name&amp;gt;gnf6-re0&amp;lt;/re-name&amp;gt;&lt;/p&gt;

&lt;p&gt;        &amp;lt;alarm-information xmlns=&quot;http://xml.juniper.net/junos/17.4X48/junos-alarm&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;alarm-summary&amp;gt;&lt;br/&gt;
                &amp;lt;no-active-alarms/&amp;gt;&lt;br/&gt;
            &amp;lt;/alarm-summary&amp;gt;&lt;br/&gt;
        &amp;lt;/alarm-information&amp;gt;&lt;br/&gt;
    &amp;lt;/multi-routing-engine-item&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;/multi-routing-engine-results&amp;gt;&lt;br/&gt;
    &amp;lt;/foo&amp;gt;&lt;br/&gt;
&amp;lt;/root&amp;gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;module bug8927 {&lt;br/&gt;
    namespace &quot;bug8927.test&quot;;&lt;br/&gt;
    prefix tst;&lt;/p&gt;

&lt;p&gt;    revision 2017-01-01 {&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    container foo &lt;/p&gt;
{
        anyxml multi-routing-engine-results;
    }
&lt;p&gt;}&lt;/p&gt;
</comment>
                            <comment id="60363" author="bvaradar" created="Thu, 7 Dec 2017 19:19:01 +0000"  >&lt;p&gt;Fix for nullpointer exception is here&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/66045/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/66045/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="60364" author="bvaradar" created="Thu, 7 Dec 2017 19:22:44 +0000"  >&lt;p&gt;However once we got through this hurdle, we tested some anyxmls fine. So we have made progress.&lt;/p&gt;

&lt;p&gt;But looks like anyxml to JSON conversion does not handle arrays in XMLs. Looks like fundamentally there is an issue. What does below line result to? It expects the XML tag name to be a static string. The way i understand this can never be true.&lt;/p&gt;

&lt;p&gt;ANYXML_ARRAY_ELEMENT_ID.equals(firstChildElement.getNodeName()&lt;/p&gt;

&lt;p&gt;So anyxml to JSON needs the fix to handle arrays.&#160;&lt;/p&gt;</comment>
                            <comment id="62059" author="rovarga" created="Thu, 5 Apr 2018 00:25:29 +0000"  >&lt;p&gt;Not only that, Atul&apos;s patch cause a NETCONF UT failure and was reverted.&lt;/p&gt;</comment>
                            <comment id="62060" author="rovarga" created="Thu, 5 Apr 2018 00:27:03 +0000"  >&lt;p&gt;De-targeted released versions. This issue looks like it&apos;s going to take some doing. Balaji: are you still working on it?&lt;/p&gt;</comment>
                            <comment id="62063" author="bvaradar" created="Thu, 5 Apr 2018 02:04:21 +0000"  >&lt;p&gt;Yes Robert. I&apos;ve submitted a patch in stable/carbon for your review. I think i have fixed this and tested with many RPCs that produce anyxml on real hardware devices. They produce the JSON response as expected.&#160; I&apos;ve also added a few unit tests. Once we review here I can add the same patch in other branches as per your suggestion.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/69416/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/69416/&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="62065" author="bvaradar" created="Thu, 5 Apr 2018 02:15:21 +0000"  >&lt;p&gt;Also this is not related to other patch that was reverted. That patch was about issuing http PATCH command on the Netconf devices. This one is just about rendering ANYXML in JSON format.&lt;/p&gt;</comment>
                            <comment id="62148" author="agosain" created="Fri, 6 Apr 2018 02:20:42 +0000"  >&lt;p&gt;Robert, im waiting for your comments on the patch that was reverted. Sent a mail to yangtools-dev and netconf-dev earlier this week.&lt;/p&gt;</comment>
                            <comment id="62393" author="bvaradar" created="Fri, 13 Apr 2018 01:43:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=rovarga&quot; class=&quot;user-hover&quot; rel=&quot;rovarga&quot;&gt;rovarga&lt;/a&gt; can you please review the patch? It&apos;s been pending for a few weeks now. Thanks for your help.&lt;/p&gt;</comment>
                            <comment id="62476" author="rovarga" created="Tue, 17 Apr 2018 00:16:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=bvaradar&quot; class=&quot;user-hover&quot; rel=&quot;bvaradar&quot;&gt;bvaradar&lt;/a&gt; that patch needs some serious attention. Can you start by making it pass validation on master?&lt;/p&gt;</comment>
                            <comment id="62503" author="bvaradar" created="Tue, 17 Apr 2018 23:35:08 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=rovarga&quot; class=&quot;user-hover&quot; rel=&quot;rovarga&quot;&gt;rovarga&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Master is pushed at&#160; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/71058/.&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/71058/.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Addressed all comments.&#160; Local build is green. Lets see the jenkins build.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13089" name="jsonoutputapi.txt" size="34270" author="intensifysecurity@gmail.com" created="Thu, 3 Aug 2017 18:47:20 +0000"/>
                            <attachment id="13090" name="show-system@2017-01-01.yang" size="43743" author="intensifysecurity@gmail.com" created="Tue, 15 Aug 2017 00:20:32 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8927</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=8927]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i029hj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>