<!-- 
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-815] Deviate replace using a user-defined-type fails</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-815</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 prefixed user-defined type using deviate replace. YANG statement parser throws an exception as it cannot resolve the QNameModule of the prefixed type in the new statement context which does not recognize the prefix.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23235">YANGTOOLS-815</key>
            <summary>Deviate replace using a 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="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="ifoltin">Igor Foltin</assignee>
                                    <reporter username="ifoltin">Igor Foltin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Oct 2017 10:08:34 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:01 +0000</updated>
                            <resolved>Mon, 20 Nov 2017 13:18:27 +0000</resolved>
                                                    <fixVersion>2.0.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="44543" author="ifoltin" created="Fri, 13 Oct 2017 10:47:51 +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;    import imp-module-2 &lt;/p&gt;
{
        prefix im2;
    }

&lt;p&gt;    deviation &quot;/im:my-leaf&quot; {&lt;br/&gt;
        deviate replace &lt;/p&gt;
{
            type im2:new-type;
        }
&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;module imp-module-2 {&lt;br/&gt;
    namespace imp2-ns;&lt;br/&gt;
    prefix imp2;&lt;/p&gt;

&lt;p&gt;    typedef new-type {&lt;br/&gt;
        type string &lt;/p&gt;
{
            length 10..15;
        }
&lt;p&gt;    }&lt;br/&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: Cannot resolve QNameModule for &apos;im2:new-type&apos; &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.spi.meta.StmtContextUtils.qnameFromArgument(StmtContextUtils.java:509)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeStatementImpl$Definition.createEffective(TypeStatementImpl.java:167)&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>
                            <comment id="44544" author="ifoltin" created="Tue, 17 Oct 2017 14:40:57 +0000"  >&lt;p&gt;Fix on master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/64406/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/64406/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59767" author="ifoltin" created="Tue, 24 Oct 2017 13:39:51 +0000"  >&lt;p&gt;nitrogen fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/64644/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/64644/&lt;/a&gt;&lt;br/&gt;
carbon fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/64647/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/64647/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59774" author="verthezpw" created="Wed, 25 Oct 2017 07:05:52 +0000"  >&lt;p&gt;Should the Fix Version field of the ticket also contain the respective nitrogen and carbon releases (SR1 and SR3 I assume)?    I see also that the Resolution state has not changed from &quot;unresolved&quot;.&lt;/p&gt;</comment>
                            <comment id="59785" author="zxiiro" created="Wed, 25 Oct 2017 16:12:38 +0000"  >&lt;p&gt;Please ignore this comment.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23236">YANGTOOLS-816</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23238">YANGTOOLS-818</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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>9242</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=9242]]></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|i029jz:</customfieldvalue>

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