<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:23 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-816] Deviate replace using a non-prefixed user-defined-type fails</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-816</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;The problem looks like this:&lt;/p&gt;

&lt;p&gt;We want to replace a type substatement with a non-prefixed user-defined type using deviate replace. YANG statement parser throws an exception as it cannot find and resolve the type in the new statement context.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23236">YANGTOOLS-816</key>
            <summary>Deviate replace using a non-prefixed user-defined-type fails</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="10002">Duplicate</resolution>
                                        <assignee username="ifoltin">Igor Foltin</assignee>
                                    <reporter username="ifoltin">Igor Foltin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Oct 2017 10:13:32 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:01 +0000</updated>
                            <resolved>Tue, 17 Oct 2017 14:38:04 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="44545" author="ifoltin" created="Fri, 13 Oct 2017 10:57:41 +0000"  >&lt;p&gt;YANG example which can be used to reproduce the bug:&lt;/p&gt;

&lt;p&gt;module root-module {&lt;br/&gt;
    namespace rm-ns;&lt;br/&gt;
    prefix rm;&lt;/p&gt;

&lt;p&gt;    import imp-module &lt;/p&gt;
{
        prefix im;
    }

&lt;p&gt;    deviation &quot;/im:my-leaf&quot; {&lt;br/&gt;
        deviate replace &lt;/p&gt;
{
            type new-type;
        }
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;    typedef new-type {&lt;br/&gt;
        type int32 &lt;/p&gt;
{
            range 10..15;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

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

&lt;p&gt;    leaf my-leaf &lt;/p&gt;
{
        type string;
    }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Parsing this model results in the following exception:&lt;/p&gt;

&lt;p&gt;Caused by: org.opendaylight.yangtools.yang.parser.spi.source.SourceException: Type &apos;(imp-ns?revision=1970-01-01)new-type&apos; not found &lt;span class=&quot;error&quot;&gt;&amp;#91;at /home/igor/projects/yangtools/yang/yang-parser-impl/target/test-classes/deviation-resolution-test/temporary/root-module.yang:15:12&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.spi.source.SourceException.throwIf(SourceException.java:97)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.spi.source.SourceException.throwIfNull(SourceException.java:114)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeStatementImpl$Definition.createEffective(TypeStatementImpl.java:169)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeStatementImpl$Definition.createEffective(TypeStatementImpl.java:88)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:457)&lt;br/&gt;
	at com.google.common.collect.Iterators$5.transform(Iterators.java:757)&lt;br/&gt;
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)&lt;br/&gt;
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)&lt;br/&gt;
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:257)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveStatementBase.&amp;lt;init&amp;gt;(EffectiveStatementBase.java:55)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.DeclaredEffectiveStatementBase.&amp;lt;init&amp;gt;(DeclaredEffectiveStatementBase.java:31)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedNode.&amp;lt;init&amp;gt;(AbstractEffectiveDocumentedNode.java:30)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveSchemaNode.&amp;lt;init&amp;gt;(AbstractEffectiveSchemaNode.java:28)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDataSchemaNode.&amp;lt;init&amp;gt;(AbstractEffectiveDataSchemaNode.java:28)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.LeafEffectiveStatementImpl.&amp;lt;init&amp;gt;(LeafEffectiveStatementImpl.java:34)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.LeafStatementImpl$Definition.createEffective(LeafStatementImpl.java:81)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:457)&lt;br/&gt;
	at com.google.common.collect.Iterators$5.transform(Iterators.java:757)&lt;br/&gt;
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)&lt;br/&gt;
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)&lt;br/&gt;
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:257)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveStatementBase.&amp;lt;init&amp;gt;(EffectiveStatementBase.java:55)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.DeclaredEffectiveStatementBase.&amp;lt;init&amp;gt;(DeclaredEffectiveStatementBase.java:31)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedNode.&amp;lt;init&amp;gt;(AbstractEffectiveDocumentedNode.java:30)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveModule.&amp;lt;init&amp;gt;(AbstractEffectiveModule.java:89)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ModuleEffectiveStatementImpl.&amp;lt;init&amp;gt;(ModuleEffectiveStatementImpl.java:23)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.ModuleStatementSupport.createEffective(ModuleStatementSupport.java:101)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:457)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.transformEffective(BuildGlobalContext.java:269)&lt;br/&gt;
	... 34 more&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="23235">YANGTOOLS-815</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>9243</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=9243]]></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="10384"><![CDATA[Carbon-SR3]]></customfieldvalue>

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

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