<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:56:04 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-1408] Deviation of augmented case node fails</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1408</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Parsing of Yang sources with a deviated case node fails if the case node was created with augmentation without explicit case statement.&lt;/p&gt;

&lt;p&gt;For example, parsing of the following two modules fails.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;module orig {
    namespace &quot;urn:orig&quot;;
    prefix orig;

    container foo {
        choice bar {
            leaf bar1 {
                type string;
            }
        }
    }

    augment /foo/bar {
        leaf bar2 {
            type string;
        }
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;module deviate {
    namespace &quot;urn:deviate&quot;;
    prefix dev;

    import orig {
        prefix orig;
    }

    deviation /orig:foo/orig:bar/orig:bar2 {
        deviate not-supported;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Error message says that the case node is not found:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;16:34:32.334 [main] ERROR org.opendaylight.yangtools.yang.parser.stmt.reactor.            BuildGlobalContext - Failed to parse YANG from source SourceSpecificContext               [source=YangStatementStreamSource{identifier=RevisionSourceIdentifier [name=deviate]},    current=EFFECTIVE_MODEL, finished=FULL_DECLARATION]
org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Deviation target      &apos;Absolute{qnames=[(urn:orig)foo, bar, bar2]}&apos; not found. [at /root/OpenDaylight/yangtools/parser/yang-parser-rfc7950/target/test-classes/bugs/YT1408/aug-choice-deviate-case/       deviate.yang:9:5]
    at org.opendaylight.yangtools.yang.parser.rfc7950@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.rfc7950.stmt.deviate.AbstractDeviateStatementSupport$1.             prerequisiteFailed(AbstractDeviateStatementSupport.java:175)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.ModifierImpl.failModifier(ModifierImpl.java:87)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.SourceSpecificContext.                                 failModifiers(SourceSpecificContext.java:383)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.BuildGlobalContext.                                    addSourceExceptions(BuildGlobalContext.java:307)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.BuildGlobalContext.                                    completePhaseActions(BuildGlobalContext.java:398)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.BuildGlobalContext.executePhases(BuildGlobalContext.   java:199)
    at org.opendaylight.yangtools.yang.parser.reactor@8.0.2-SNAPSHOT/org.opendaylight.    yangtools.yang.parser.stmt.reactor.BuildGlobalContext.buildEffective(BuildGlobalContext.  java:210)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="35344">YANGTOOLS-1408</key>
            <summary>Deviation of augmented case node fails</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="rovarga">Robert Varga</assignee>
                                    <reporter username="sangwookha">Sangwook Ha</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Mar 2022 16:28:24 +0000</created>
                <updated>Sat, 19 Mar 2022 15:26:53 +0000</updated>
                            <resolved>Sat, 19 Mar 2022 15:26:53 +0000</resolved>
                                    <version>8.0.0</version>
                    <version>7.0.14</version>
                    <version>8.0.1</version>
                                    <fixVersion>7.0.15</fixVersion>
                    <fixVersion>8.0.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="70643" author="JIRAUSER13318" created="Wed, 16 Mar 2022 17:33:46 +0000"  >&lt;p&gt;Tests to reproduce this issue:&#160;&lt;a href=&quot;https://git.opendaylight.org/gerrit/c/yangtools/+/100137&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/yangtools/+/100137&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="70651" author="rovarga" created="Sat, 19 Mar 2022 12:46:34 +0000"  >&lt;p&gt;Interesting, this looks like a failure to populate SchemaTreeNamespace, as the same problem with augment.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i041tr:</customfieldvalue>

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