<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:54 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>[CONTROLLER-391] Augmentations are not properly serialized from Java classes into CompositeNode</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-391</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I&apos;ve added a new case to the actions in opendaylight-action-types.&lt;br/&gt;
augment &quot;.../flow-node:apply-actions/flow-node:action/flow-node:action&quot; {&lt;br/&gt;
  case color-action-case {&lt;br/&gt;
    container color-action &lt;/p&gt;
{
        ...
    }
&lt;p&gt;  }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Then, I create a Flow object in Java.  I use the respective builders for Instructions, ApplyAction, Action, etc.  &lt;br/&gt;
Then I insert a ColorAction into this Flow object.  &lt;/p&gt;

&lt;p&gt;RuntimeGeneratedMappingServiceImpl translates this Java object for Flow into the respective CompositeNode conform.&lt;br/&gt;
LazyGeneratedCodecRegistry &amp;amp; TransformerGenerator are used to create a codec for serializing the Flow object.&lt;/p&gt;

&lt;p&gt;After serializing, all the namespaces for the nested objects within the Flow object are the SAME.&lt;br/&gt;
This is a representation fo the CompositeNode:&lt;br/&gt;
/(urn:opendaylight:inventory?revision=2013-08-19)nodes&lt;br/&gt;
/(urn:opendaylight:inventory?revision=2013-08-19)node[&lt;/p&gt;
{(urn:opendaylight:inventory?revision=2013-08-19)id=openflow:-1}
&lt;p&gt;]&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)table[&lt;/p&gt;
{(urn:opendaylight:flow:inventory?revision=2013-08-19)id=0}
&lt;p&gt;]&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)flow[&lt;/p&gt;
{(urn:opendaylight:flow:inventory?revision=2013-08-19)id=-123456789}
&lt;p&gt;]&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)instructions&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)instruction&lt;span class=&quot;error&quot;&gt;&amp;#91;{}&amp;#93;&lt;/span&gt;&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)apply-actions&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)action&lt;span class=&quot;error&quot;&gt;&amp;#91;{}&amp;#93;&lt;/span&gt;&lt;br/&gt;
/(urn:opendaylight:flow:inventory?revision=2013-08-19)color-action&lt;/p&gt;

&lt;p&gt;Now, this CompositeNode object is supposed to be inserted into the RESTConf DB.&lt;br/&gt;
SchemaAwareDataStoreAdapter fails to properly parse out the color-action CompositeNode because it has the wrong namespace.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="24945">CONTROLLER-391</key>
            <summary>Augmentations are not properly serialized from Java classes into CompositeNode</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="10000">Done</resolution>
                                        <assignee username="ammandke@cisco.com">Amit Mandke</assignee>
                                    <reporter username="railor33@gmail.com">Alexander Fan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Apr 2014 03:16:54 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:37 +0000</updated>
                            <resolved>Thu, 19 Jun 2014 08:02:58 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="48139" author="tony.tkacik@gmail.com" created="Thu, 24 Apr 2014 10:50:47 +0000"  >&lt;p&gt;Moved to YANGTools since this is caused by incorrect translation of Instance Identifier in binding-generator-impl : InstanceIdentifierCodecImpl&lt;/p&gt;</comment>
                            <comment id="48140" author="railor33@gmail.com" created="Sat, 3 May 2014 00:53:14 +0000"  >&lt;p&gt;With the new datastore changes, this same issue arises in a different way.&lt;/p&gt;

&lt;p&gt;Explanation of this different way:&lt;br/&gt;
Augmentations allow you to append a new case onto an existing choice.&lt;br/&gt;
This case node has a DIFFERENT namespace than the existing choice node.&lt;/p&gt;

&lt;p&gt;Java object (i.e. Flow) can be successfully converted to CompositeNode, which has all the same namespaces because the serialization passes the Flow&apos;s namespace down to all its children.&lt;/p&gt;

&lt;p&gt;When converting CompositeNode to NormalizedNode, there are searches for the case node.&lt;br/&gt;
In some cases, the case node will have the same namespace as its parent.&lt;br/&gt;
In other cases, the case node will have a different namespace than its parent.&lt;/p&gt;

&lt;p&gt;====&lt;/p&gt;

&lt;p&gt;Added a fix in:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6666/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6666/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48141" author="railor33@gmail.com" created="Fri, 9 May 2014 00:51:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-391&quot; title=&quot;Augmentations are not properly serialized from Java classes into CompositeNode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-391&quot;&gt;&lt;del&gt;CONTROLLER-391&lt;/del&gt;&lt;/a&gt; also has a yangtools component to it.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6822/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6822/2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48142" author="tony.tkacik@gmail.com" created="Mon, 19 May 2014 17:55:06 +0000"  >&lt;p&gt;Bit of clarification:&lt;br/&gt;
Actual augmentation is addign new cases, which SHOULD have namespace&lt;br/&gt;
from declaring YANG module (one that declared augmentation).&lt;/p&gt;

&lt;p&gt;It seems that runtime generated codecs for your case did use incorrect namespace.&lt;/p&gt;</comment>
                            <comment id="48143" author="tony.tkacik@gmail.com" created="Tue, 17 Jun 2014 18:54:26 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/8071/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/8071/2&lt;/a&gt;&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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>839</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=839]]></customfieldvalue>

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

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