<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:09 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-404] Can not import yang modul with explicit revision date: 1970-01-01</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-404</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;The default yang module revision date is initialized as new Date(0); The returned date is dependent on current time zone and so default yang module revision is initialized now in SR as &quot;Thu Jan 01 01:00:00 CET 1970&quot; which is one hour after the imported yang module revision date &quot;1970-01-01&quot; and then imported yang module can not be resolved. Crucial is the line 322 in YangParserBaseListener.java.&lt;/p&gt;

&lt;p&gt;Parsing of following yang models:&lt;/p&gt;

&lt;p&gt;module foo {&lt;br/&gt;
    prefix foo;&lt;br/&gt;
    namespace &quot;namespace-foo&quot;;&lt;/p&gt;

&lt;p&gt;    import import-module &lt;/p&gt;
{ prefix imp; revision-date 1970-01-01; }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;module import-module {&lt;br/&gt;
    prefix imp;&lt;br/&gt;
    namespace &quot;import-module&quot;;&lt;/p&gt;

&lt;p&gt;    revision 1970-01-01 &lt;/p&gt;
{
        description &quot;Initial revision.&quot;;
    }
&lt;p&gt;}&lt;/p&gt;


&lt;p&gt;produce the following exception:&lt;/p&gt;

&lt;p&gt;Exception in thread &quot;main&quot; org.opendaylight.yangtools.yang.parser.util.YangValidationException: Not existing module imported:import-module:1970-01-01 by:foo:default&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.ex(ModuleDependencySort.java:267)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.getModuleByNameAndRevision(ModuleDependencySort.java:257)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.processDependencies(ModuleDependencySort.java:217)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.createModuleGraph(ModuleDependencySort.java:148)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.sortInternal(ModuleDependencySort.java:131)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort.sort(ModuleDependencySort.java:90)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelSources(YangParserImpl.java:356)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelsMapped(YangParserImpl.java:282)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseFiles(YangParserImpl.java:159)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22824">YANGTOOLS-404</key>
            <summary>Can not import yang modul with explicit revision date: 1970-01-01</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="pkajsa">Peter Kajsa</assignee>
                                    <reporter username="pkajsa">Peter Kajsa</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Jan 2015 13:54:23 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:28 +0000</updated>
                            <resolved>Thu, 20 Aug 2015 07:54:00 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="43253" author="rovarga" created="Tue, 9 Jun 2015 16:52:36 +0000"  >&lt;p&gt;We need to replace calls to &apos;new Date&apos; with Calendar.getInstance(TimeZone.UTC) to make sure we talk in the same zone everywhere.&lt;/p&gt;</comment>
                            <comment id="43254" author="rovarga" created="Tue, 9 Jun 2015 16:55:35 +0000"  >&lt;p&gt;Actually, that also needs to include a Locale to fix the format.&lt;/p&gt;</comment>
                            <comment id="43255" author="pkajsa" created="Wed, 17 Jun 2015 12:46:49 +0000"  >&lt;p&gt;It is solved in implementation of new yang statement parser.&lt;/p&gt;</comment>
                            <comment id="43256" author="pkajsa" created="Wed, 17 Jun 2015 12:53:02 +0000"  >&lt;p&gt;(In reply to Peter Kajsa from comment #3)&lt;br/&gt;
&amp;gt; It is solved in implementation of new yang statement parser.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/20885/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/20885/&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>2649</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=2649]]></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="10325"><![CDATA[Lithium-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|i0270n:</customfieldvalue>

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