<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:25:49 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>[NEUTRON-199] class NeutronID should be abstract and cannot be used as for List&lt;NeutronID&gt; properties</title>
                <link>https://jira.opendaylight.org/browse/NEUTRON-199</link>
                <project id="10145" key="NEUTRON">neutron</project>
                    <description>&lt;p&gt;While upgrading the version of Jersey used in Neutron in &lt;a href=&quot;https://jira.opendaylight.org/browse/NEUTRON-197&quot; title=&quot;Neon-MRI: Bump odlparent, yangtools, mdsal&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NEUTRON-197&quot;&gt;&lt;del&gt;NEUTRON-197&lt;/del&gt;&lt;/a&gt; during the &lt;a href=&quot;https://wiki.opendaylight.org/view/Neon_platform_upgrade&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;big Neon-MRI bump&lt;/a&gt;, and having to change how it uses Moxy for working with JSON, I have stumbled upon something in the Neutron code (as it is right now) which seems to have been modelled wrong originally:&lt;/p&gt;

&lt;p&gt;Classes &lt;tt&gt;NeutronLoadBalancerHealthMonitor&lt;/tt&gt;, &lt;tt&gt;NeutronLoadBalancerListener&lt;/tt&gt; and &lt;tt&gt;NeutronLoadBalancerPool&lt;/tt&gt; use &lt;tt&gt;List&amp;lt;NeutronID&amp;gt;&lt;/tt&gt; ... and &lt;tt&gt;NeutronID&lt;/tt&gt; is the base class of  for (almost all) Neutron object clases. (Via &lt;tt&gt;NeutronObject&lt;/tt&gt; which everything else extends; except &lt;tt&gt;NeutronL2gatewayDevice&lt;/tt&gt;, which seems a bit weird?).&lt;/p&gt;

&lt;p&gt;Now this would mean that e.g. a &lt;tt&gt;NeutronLoadBalancerHealthMonitor&lt;/tt&gt;&apos;s &lt;tt&gt;loadBalancerHealthMonitorPools&lt;/tt&gt; field, in JSON, could contain not only e.g. &lt;tt&gt;&quot;listeners&quot; : [ { &quot;id&quot;: &quot;39de4d56-d663-46e5-85a1-5b9d5fa17829&quot; } ]&lt;/tt&gt; (a NeutronID) but really any other full Neutron object. I highly doubt that was the intention, as that surely would not make any sense?&lt;/p&gt;

&lt;p&gt;What whoever wrote that load balancer code in Neutron probably meant was that these fields should contain (a list of) String UUIDs referring to other Neutron objects - but only that, and not full other objects.&lt;/p&gt;</description>
                <environment></environment>
        <key id="30855">NEUTRON-199</key>
            <summary>class NeutronID should be abstract and cannot be used as for List&lt;NeutronID&gt; properties</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Oct 2018 18:25:09 +0000</created>
                <updated>Thu, 29 Aug 2019 08:16:29 +0000</updated>
                                                            <fixVersion>Neon</fixVersion>
                                    <component>northbound-api</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="65266" author="vorburger" created="Mon, 8 Oct 2018 22:03:22 +0000"  >&lt;p&gt;WIP in (Draft) &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/76770/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/76770/&lt;/a&gt;&#160;...&lt;/p&gt;</comment>
                            <comment id="65268" author="vorburger" created="Mon, 8 Oct 2018 22:16:28 +0000"  >&lt;p&gt;The reason why I think it would be useful to clean this up isn&apos;t just &quot;modeling purity&quot;&#160;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/tongue.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;but because&#160;as per one of the (too many, buried) comments on&#160;&lt;a href=&quot;https://jira.opendaylight.org/browse/NEUTRON-197&quot; title=&quot;Neon-MRI: Bump odlparent, yangtools, mdsal&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NEUTRON-197&quot;&gt;&lt;del&gt;NEUTRON-197&lt;/del&gt;&lt;/a&gt; it seems Moxy can get confused about which is the &quot;class type indicator field&quot; (there is none).&lt;/p&gt;

&lt;p&gt;This is seen when using the&#160;jersey-media-moxy (it&apos;s mere presence on the classpath by way of a dependency in northbound-api), which causes the following issue, the idea would be to see if doing above prevents this (without suggesting to actually switch to&#160;jersey-media-moxy at this point, there is no reason; but it would still be good to clean this up for the future):&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Exception [EclipseLink-43] (Eclipse Persistence Services - 2.7.3.v20180807-4be1041): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Missing class for indicator field value [HTTP] of type [class java.lang.String].
Descriptor: XMLDescriptor(org.opendaylight.neutron.spi.NeutronLoadBalancerHealthMonitor --&amp;gt; [DatabaseTable(neutronLoadBalancerHealthMonitor), DatabaseTable(neutronObject), DatabaseTable(neutronID)])&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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|i03jfj:</customfieldvalue>

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