<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:12 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>[MDSAL-245] BI to BA conversion not resolving nested nodes</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-245</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;While converting following data&lt;/p&gt;

&lt;p&gt;ImmutableContainerNode{  &lt;br/&gt;
  nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:hc:data?revision=2015-01-05)cont-under-list,&lt;br/&gt;
  value=  [  &lt;br/&gt;
    ImmutableContainerNode    {  &lt;br/&gt;
      nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:hc:data?revision=2015-01-05)cont-under-list,&lt;br/&gt;
      value=      [  &lt;br/&gt;
        ImmutableLeafNode        {  &lt;br/&gt;
          nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:hc:data?revision=2015-01-05)nested-name,&lt;br/&gt;
          value=nestedName,&lt;br/&gt;
          attributes=          {  &lt;/p&gt;

&lt;p&gt;          }&lt;br/&gt;
        }&lt;br/&gt;
      ],&lt;br/&gt;
      attributes=      {  &lt;/p&gt;

&lt;p&gt;      }&lt;br/&gt;
    }&lt;br/&gt;
  ],&lt;br/&gt;
  attributes=  {  &lt;/p&gt;

&lt;p&gt;  }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;with following logic&lt;/p&gt;

&lt;p&gt;@Nonnull&lt;br/&gt;
    default Map.Entry&amp;lt;InstanceIdentifier&amp;lt;? extends DataObject&amp;gt;, DataObject&amp;gt; nodeBinding(&lt;br/&gt;
            @Nonnull final BindingToNormalizedNodeCodec serializer,&lt;br/&gt;
            @Nonnull final YangInstanceIdentifier identifier,&lt;br/&gt;
            @Nonnull final NormalizedNode&amp;lt;?, ?&amp;gt; data) {&lt;br/&gt;
        try {&lt;br/&gt;
            return serializer.toBinding(new AbstractMap.SimpleImmutableEntry&amp;lt;&amp;gt;(identifier, data))&lt;br/&gt;
                    .or(() -&amp;gt; &lt;/p&gt;
{
                        throw new IllegalArgumentException(
                                String.format(&quot;Unable to create node binding  for %s|%s&quot;, identifier, data));
                    }
&lt;p&gt;);&lt;br/&gt;
        } catch (DeserializationException e) &lt;/p&gt;
{
            throw new IllegalArgumentException(String.format(&quot;Unable to deserialize node %s|%s&quot;, identifier, data));
        }
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;The resulting data looks like&lt;/p&gt;


&lt;p&gt;InstanceIdentifier{  &lt;br/&gt;
  targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hc.data.rev150105.simple.container.simple.list.ContUnderList,&lt;br/&gt;
  path=  [  &lt;br/&gt;
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hc.data.rev150105.SimpleContainer,&lt;br/&gt;
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hc.data.rev150105.simple.container.SimpleList    [  &lt;br/&gt;
      key=SimpleListKey      [  &lt;br/&gt;
        _name=nameUnderSimpleList&lt;br/&gt;
      ]&lt;br/&gt;
    ],&lt;br/&gt;
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hc.data.rev150105.simple.container.simple.list.ContUnderList&lt;br/&gt;
  ]&lt;br/&gt;
}&quot; -&amp;gt; &quot;ContUnderList{  // here should be leaf as can be seen in BI data&lt;br/&gt;
  augmentations=  {  &lt;/p&gt;

&lt;p&gt;  }&lt;br/&gt;
}&quot;&lt;/p&gt;

&lt;p&gt;ODL version used&lt;/p&gt;

&lt;p&gt;&amp;lt;yangtools.version&amp;gt;1.0.3-Boron-SR3&amp;lt;/yangtools.version&amp;gt;&lt;br/&gt;
&amp;lt;mdsal.version&amp;gt;2.1.3-Boron-SR3&amp;lt;/mdsal.version&amp;gt;&lt;br/&gt;
&amp;lt;mdsal.controller.version&amp;gt;1.4.3-Boron-SR3&amp;lt;/mdsal.controller.version&amp;gt;&lt;br/&gt;
&amp;lt;mdsalmodel.version&amp;gt;0.9.3-Boron-SR3&amp;lt;/mdsalmodel.version&amp;gt;&lt;br/&gt;
&amp;lt;netconf.version&amp;gt;1.1.3-Boron-SR3&amp;lt;/netconf.version&amp;gt;&lt;br/&gt;
&amp;lt;restconf.version&amp;gt;1.4.3-Boron-SR3&amp;lt;/restconf.version&amp;gt;&lt;br/&gt;
&amp;lt;salGenerator.version&amp;gt;0.9.3-Boron-SR3&amp;lt;/salGenerator.version&amp;gt;&lt;/p&gt;

&lt;p&gt;Codec used org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27067">MDSAL-245</key>
            <summary>BI to BA conversion not resolving nested nodes</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="10003">Cannot Reproduce</resolution>
                                        <assignee username="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="jsrnicek@cisco.com">Jan Srnicek</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Apr 2017 06:26:02 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:20 +0000</updated>
                            <resolved>Tue, 16 May 2017 11:41:09 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54649" author="jsrnicek@cisco.com" created="Tue, 18 Apr 2017 06:26:02 +0000"  >&lt;p&gt;Attachment bi_to_ba_conversion_debug_log.txt has been added with description: Debug log&lt;/p&gt;</comment>
                            <comment id="54646" author="jsrnicek@cisco.com" created="Tue, 2 May 2017 08:05:14 +0000"  >&lt;p&gt;Is somebody working on this one ?&lt;/p&gt;</comment>
                            <comment id="54647" author="jatoth@cisco.com" created="Tue, 16 May 2017 11:05:27 +0000"  >&lt;p&gt;This is not bug, because you can reference only list or container. Leaf represents only &quot;field&quot; of referenced data objet.&lt;/p&gt;

&lt;p&gt;I wrote test for this like example of use.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57135/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57135/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54648" author="jsrnicek@cisco.com" created="Tue, 16 May 2017 11:41:09 +0000"  >&lt;p&gt;The real issue is that value for leaf was not transformed from BI -&amp;gt; BA, i dont see what you mean by referencing leaf. Deserialization is invoked on container data that contains leaf, not on leaf data directly&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13825" name="bi_to_ba_conversion_debug_log.txt" size="14921" author="jsrnicek@cisco.com" created="Tue, 18 Apr 2017 06:26:02 +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>8237</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=8237]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

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