<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53: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>[YANGTOOLS-650] Some imports are not exposed in Module.getImports</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-650</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;If you have:&lt;/p&gt;

&lt;p&gt;module A {&lt;br/&gt;
   namespace ...;&lt;br/&gt;
   prefix A;&lt;br/&gt;
   // without revision element&lt;br/&gt;
   ...&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;module B {&lt;br/&gt;
   namespace ...;&lt;br/&gt;
   prefix B;&lt;br/&gt;
   import A &lt;/p&gt;
{
     prefix A;
   }
&lt;p&gt;     // also without revision-date&lt;br/&gt;
   ...&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;then the getImports() method on module B does not provide module A.   It seems that this case is skipped over in AbstractEffectiveModule.resolveModuleImports().&lt;/p&gt;

&lt;p&gt;I checked the RFC, and the situation seems legal, although it says:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;on revision:  &quot;A module SHOULD have at least one initial &quot;revision&quot; statement.&quot;&lt;/li&gt;
	&lt;li&gt;on import: &quot;If no &quot;revision-date&quot; substatement is present, it is undefined from which revision of the module they are taken.&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But if there is only 1 revision of a module available, it seems logical to take that one.&lt;/p&gt;

&lt;p&gt;Workaround is to add a revision to the imported module, then it works (and it&apos;s also the logical thing to do, to add the revision).   So the severity of this bug is low.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23070">YANGTOOLS-650</key>
            <summary>Some imports are not exposed in Module.getImports</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="filip.gregor@pantheon.tech">Filip Gregor</assignee>
                                    <reporter username="verthezpw">Peter Verthez</reporter>
                        <labels>
                    </labels>
                <created>Mon, 22 Aug 2016 09:24:53 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:50 +0000</updated>
                            <resolved>Fri, 21 Oct 2016 09:22:05 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="44046" author="martin.ciglan" created="Tue, 30 Aug 2016 09:28:13 +0000"  >&lt;p&gt;Hi Peter&lt;/p&gt;

&lt;p&gt;It is legal, but there seems to be some inconsistency in processing between actual module A revision, where in that case, default one is used AND import of this module A, where methods providing collection of imports skip it. Even though, priority of this bug is low, it&apos;s on radar of YT devs. Thanks.&lt;/p&gt;

&lt;p&gt;   Martin&lt;/p&gt;</comment>
                            <comment id="44047" author="filip.gregor@pantheon.tech" created="Thu, 20 Oct 2016 09:05:30 +0000"  >&lt;p&gt;proposed solution &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/47129/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/47129/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44048" author="rovarga" created="Fri, 21 Oct 2016 08:46:03 +0000"  >&lt;p&gt;boron: &lt;a href=&quot;https://git.opendaylight.org/gerrit/47317&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/47317&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>6491</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=6491]]></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_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10335"><![CDATA[Boron-2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Low]]></customfieldvalue>

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

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