<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10:05 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-552] Binding/DOM codec fails when leafref points to an enumeration</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-552</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Enum values with names using underscores are encoded without underscores. This issue has been reproduced using such enum in Notification or Rpc through leaf-ref. Issue appears when Gson codec tries to writeValue. Refer to example yang model in attachment.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32639">MDSAL-552</key>
            <summary>Binding/DOM codec fails when leafref points to an enumeration</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</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="PeterValka">Peter Valka</assignee>
                                    <reporter username="PeterValka">Peter Valka</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 May 2020 07:37:42 +0000</created>
                <updated>Wed, 10 Jun 2020 18:18:30 +0000</updated>
                            <resolved>Wed, 10 Jun 2020 18:18:30 +0000</resolved>
                                                    <fixVersion>4.0.15</fixVersion>
                    <fixVersion>6.0.2</fixVersion>
                    <fixVersion>5.0.12</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="68102" author="rovarga" created="Thu, 7 May 2020 09:36:13 +0000"  >&lt;p&gt;As noted in the code review, the test case seems to be showing the effect of a previous bug. Please update the test case to correctly show the bug.&lt;/p&gt;</comment>
                            <comment id="68195" author="rovarga" created="Wed, 10 Jun 2020 10:05:29 +0000"  >&lt;p&gt;After adjusting the test case, it is obvious the fault lies with mdsal-binding-dom-codec, which fails to perform proper encoding in both directions, as it is using no-op codec.&lt;/p&gt;</comment>
                            <comment id="68196" author="rovarga" created="Wed, 10 Jun 2020 10:10:11 +0000"  >&lt;p&gt;The test model also demonstrates that there is something wrong with base codegen, as the&#160; target type is &apos;java.lang.Enum&apos; whereas it should be OutputA. That may actually be the root cause for this behavior.&lt;/p&gt;</comment>
                            <comment id="68197" author="rovarga" created="Wed, 10 Jun 2020 11:15:53 +0000"  >&lt;p&gt;So the codec problem actually stems from the codegen problem &#8211; since the getter method has the wrong return type, we are ending up not looking up the proper codec and defaulting to no-op.&lt;/p&gt;</comment>
                            <comment id="68198" author="rovarga" created="Wed, 10 Jun 2020 11:17:07 +0000"  >&lt;p&gt;We seem to be using a different codepath (or ordering?), as a plain container with the same type of leaf works correctly, whereas RPC input ends up going to BaseYangTypes.javaTypeForYangType(), which is returning the java.lang.Enum we end up using.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="32725">YANGTOOLS-1110</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="15649" name="bug552.yang.txt" size="645" author="PeterValka" created="Wed, 6 May 2020 07:47:33 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03sc7:</customfieldvalue>

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