<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:39:11 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>[SNMP-5] yang-oid-plugin generates duplicate OIDs</title>
                <link>https://jira.opendaylight.org/browse/SNMP-5</link>
                <project id="10169" key="SNMP">snmp</project>
                    <description>&lt;p&gt;If the yang-oid-plugin is executed multiple times, it writes the same OIDs again, so there are multiple for each method.  This isn&apos;t legal Java 7 syntax so it causes compile errors:&lt;/p&gt;

&lt;p&gt;target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/smiv2/_if/mib/rev000614/interfaces/group/IfEntryBuilder.java:&lt;span class=&quot;error&quot;&gt;&amp;#91;428,9&amp;#93;&lt;/span&gt; duplicate annotation&lt;/p&gt;

&lt;p&gt;It should just overwrite the OID so there is always one per get method.&lt;/p&gt;

&lt;p&gt;To reproduce this, run &quot;mvn generate-sources&quot; in mibs-model, then examine IfEntryBuilder.java&lt;/p&gt;

&lt;p&gt;It also happens during a normal &quot;clean install&quot;, apparently the plugin is executed twice.  Errors can be seen in the output though they don&apos;t fail the build.  Other tools (such as eclipse) do fail though.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26802">SNMP-5</key>
            <summary>yang-oid-plugin generates duplicate OIDs</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="-1">Unassigned</assignee>
                                    <reporter username="jon@ivydesign.com">Jon Rosenberger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jul 2015 22:27:52 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:03 +0000</updated>
                            <resolved>Sun, 12 Jul 2015 05:30:04 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="53860" author="jon@ivydesign.com" created="Sat, 11 Jul 2015 01:01:16 +0000"  >&lt;p&gt;fixed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/24022&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/24022&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&quot;mvn clean install&quot; now works in snmp for jdk 1.8&lt;/p&gt;</comment>
                            <comment id="53861" author="jon@ivydesign.com" created="Sat, 11 Jul 2015 01:02:40 +0000"  >&lt;p&gt;Ignore that comment, this is fixed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/23963/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/23963/&lt;/a&gt;&lt;br/&gt;
(In reply to Jon Rosenberger from comment #1)&lt;br/&gt;
&amp;gt; fixed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/24022&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/24022&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &quot;mvn clean install&quot; now works in snmp for jdk 1.8&lt;/p&gt;</comment>
                            <comment id="53862" author="adam@dierkens.com" created="Sun, 12 Jul 2015 05:28:31 +0000"  >&lt;p&gt;The fix was merged. Though I&apos;m still slightly skeptical about how we got duplicate OIDs to begin with. &lt;/p&gt;

&lt;p&gt;Unless I&apos;m mistaken &quot;mvn generate-sources&quot; should also generate the Java classes from the yang models, which would give the yang-oid-plugin a clean slate to write the OID tags. &lt;/p&gt;

&lt;p&gt;If we end up with duplicate OID tags, then either the yang-oid-plugin is being executed twice, or the Java classes generated by the yang-maven-plugin aren&apos;t overriding the already generated ones. In either case, I&apos;ve got to do some digging to find the root cause of the bug.&lt;/p&gt;</comment>
                            <comment id="53863" author="adam@dierkens.com" created="Sun, 12 Jul 2015 05:29:40 +0000"  >&lt;p&gt;The fix was merged. Though I&apos;m still slightly skeptical about how we got duplicate OIDs to begin with. &lt;/p&gt;

&lt;p&gt;Unless I&apos;m mistaken &quot;mvn generate-sources&quot; should also generate the Java classes from the yang models, which would give the yang-oid-plugin a clean slate to write the OID tags. &lt;/p&gt;

&lt;p&gt;If we end up with duplicate OID tags, then either the yang-oid-plugin is being executed twice, or the Java classes generated by the yang-maven-plugin aren&apos;t overriding the already generated ones. In either case, I&apos;ve got to do some digging to find the root cause of the bug.&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>3976</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=3976]]></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|i02vkn:</customfieldvalue>

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