<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:13 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>[NETCONF-512] 8040 code cannot serialize Leaf Lists</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-512</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;The 8040 code blows up when fed an object with a leaf list.&lt;/p&gt;

&lt;p&gt;It reaches line 624 in ReadDataTransactionUtil.java which is &quot;I do not know this type of node, I give up&quot;.&lt;/p&gt;

&lt;p&gt;Looking at the code leaf-list type which in YangTools is called LeafSetNode is missing as an option in the preceding conditional in private static NormalizedNode&amp;lt;?, ?&amp;gt; prepareData&lt;/p&gt;</description>
                <environment>&lt;p&gt;I am feeding it via json rpc, but this should blow up on anything else. It should not be difficult to concoct a test model and feed it to it.&lt;/p&gt;</environment>
        <key id="29270">NETCONF-512</key>
            <summary>8040 code cannot serialize Leaf Lists</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</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="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="aivanov">Anton Ivanov</reporter>
                        <labels>
                            <label>need_new_patch</label>
                            <label>patch_merged</label>
                    </labels>
                <created>Fri, 23 Feb 2018 17:41:15 +0000</created>
                <updated>Tue, 4 Sep 2018 08:54:15 +0000</updated>
                            <resolved>Tue, 4 Sep 2018 08:54:15 +0000</resolved>
                                    <version>Nitrogen SR1</version>
                                    <fixVersion>Oxygen SR4</fixVersion>
                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="61185" author="aivanov" created="Fri, 23 Feb 2018 17:43:35 +0000"  >&lt;p&gt;Just confirmed - it blows up on an internal ODL model with leaf-lists as well.&lt;/p&gt;</comment>
                            <comment id="61190" author="tpantelis" created="Sat, 24 Feb 2018 01:22:23 +0000"  >&lt;p&gt;Submitted &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/68651&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/68651&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61277" author="klou" created="Tue, 27 Feb 2018 14:12:59 +0000"  >&lt;p&gt;Please cherry pick 68651 to the oxygen branch and get a +2.&#160; Thanks!&lt;/p&gt;</comment>
                            <comment id="61304" author="rovarga" created="Tue, 27 Feb 2018 17:28:29 +0000"  >&lt;p&gt;Oxygen: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/68829/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/68829/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61556" author="aivanov" created="Thu, 8 Mar 2018 13:11:21 +0000"  >&lt;p&gt;This still breaks.&lt;/p&gt;

&lt;p&gt;Tested with both leaf-list of integers and leaf list of strings.&lt;/p&gt;

&lt;p&gt;018-03-08T13:08:54,596 | ERROR | qtp1530458632-110 | ContainerResponse | 38 - com.sun.jersey.jersey-server - 1.17.0 | Mapped exception to response: 500 (Internal Server Error)&lt;br/&gt;
 org.opendaylight.restconf.common.errors.RestconfDocumentedException: errors: [RestconfError &lt;span class=&quot;error&quot;&gt;&amp;#91;error-type: application, error-tag: operation-failed, error-message: Unexpected node type: org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableLeafSetEntryNodeBuilder$ImmutableLeafSetEntryNode&amp;#93;&lt;/span&gt;]&lt;br/&gt;
 at org.opendaylight.restconf.nb.rfc8040.rests.utils.ReadDataTransactionUtil.prepareData(ReadDataTransactionUtil.java:668) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;287:org.opendaylight.netconf.restconf-nb-rfc8040:1.7.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
 1:09 PM&lt;/p&gt;

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

&lt;p&gt;This is for: a piece of data which contians &quot;dell-interface:untagged-ports&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;e101-001-0&amp;quot;, &amp;quot;e101-002-0&amp;quot;&amp;#93;&lt;/span&gt;.&lt;/p&gt;</comment>
                            <comment id="61569" author="rovarga" created="Thu, 8 Mar 2018 17:27:26 +0000"  >&lt;p&gt;I do not this is a release blocker &#8211; it is not a regression, is it?&lt;/p&gt;</comment>
                            <comment id="61570" author="aivanov" created="Thu, 8 Mar 2018 17:59:14 +0000"  >&lt;p&gt;I am not sure it is a regression. It may have always been there - it happens ONLY if you do not specify which store you want and ODL starts to merge config and operational views.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=tpantelis&quot; class=&quot;user-hover&quot; rel=&quot;tpantelis&quot;&gt;tpantelis&lt;/a&gt; is looking into it.&lt;/p&gt;

&lt;p&gt;I do not think it is a blocker as there is a workaround - specify ?content=config or ?content=operational at the end of the URI. If you specify those - it all works as advertised.&lt;/p&gt;

&lt;p&gt;It is up to Releng to decide if they want to patch this fully or leave the merge of views functionality till SR1 and Fluorine respectively.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03aq7:</customfieldvalue>

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