<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:56:14 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-1465] Unexpected error processing source SourceIdentifier [ietf-network@2018-02-26]</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1465</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Full log attached.&lt;/p&gt;

&lt;p&gt;Affected models:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/YangModels/yang/main/standard/ietf/RFC/ietf-te-topology-state@2020-08-06.yang&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://raw.githubusercontent.com/YangModels/yang/main/standard/ietf/RFC/ietf-te-topology-state@2020-08-06.yang&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/YangModels/yang/main/standard/ietf/RFC/ietf-te-topology@2020-08-06.yang&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://raw.githubusercontent.com/YangModels/yang/main/standard/ietf/RFC/ietf-te-topology@2020-08-06.yang&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="36308">YANGTOOLS-1465</key>
            <summary>Unexpected error processing source SourceIdentifier [ietf-network@2018-02-26]</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</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="mario.doman">Mario Doman</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Thu, 10 Nov 2022 10:45:01 +0000</created>
                <updated>Thu, 24 Nov 2022 17:22:01 +0000</updated>
                            <resolved>Thu, 24 Nov 2022 17:22:01 +0000</resolved>
                                    <version>8.0.0</version>
                    <version>9.0.0</version>
                    <version>10.0.0</version>
                    <version>9.0.2</version>
                    <version>8.0.8</version>
                                    <fixVersion>10.0.1</fixVersion>
                    <fixVersion>8.0.9</fixVersion>
                    <fixVersion>9.0.4</fixVersion>
                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="71619" author="JIRAUSER15106" created="Thu, 10 Nov 2022 13:21:22 +0000"  >&lt;p&gt;&lt;b&gt;12:15:25&lt;/b&gt; ****************************************  ERROR IN YANG FILE /home/jenkins/src/main/yang/standard/ietf/RFC/ietf-te-topology-state.yang  ****************************************&lt;b&gt;12:15:25&lt;/b&gt; 11:11:20.799 &lt;span class=&quot;error&quot;&gt;&amp;#91;main&amp;#93;&lt;/span&gt; WARN org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext - Unexpected error processing source SourceIdentifier &lt;span class=&quot;error&quot;&gt;&amp;#91;ietf-network-topology-state@2018-02-26&amp;#93;&lt;/span&gt;. Please file an issue with this model attached.&lt;/p&gt;</comment>
                            <comment id="71635" author="rovarga" created="Tue, 22 Nov 2022 17:29:42 +0000"  >&lt;p&gt;Okay, so the key factor here is that the leaf is guarded by if-feature and yang-model-validator is running with empty features.&lt;/p&gt;

&lt;p&gt;This means the leaf should not be built, so the original has flags -88 == 0b10101000 which in turn decodes to:&lt;br/&gt;
HAVE_IGNORE_IF_FEATURE | HAVE_SUPPORTED_BY_FEATURES | ALL_INDEPENDENT.&lt;/p&gt;

&lt;p&gt;So far this seems to involve undeclared case statements, which do not seem to realize they are no supported. This needs a bit of thought, as here we have an inverted parent-&amp;gt;child causality: the child needs to be supported for the parent to be supported.&lt;/p&gt;</comment>
                            <comment id="71636" author="rovarga" created="Tue, 22 Nov 2022 18:42:34 +0000"  >&lt;p&gt;The reproducer is a bit involved:&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 foo {
 &#160;namespace foo;
 &#160;prefix foo;

 &#160;feature foo;

 &#160;container foo;

 &#160;augment /foo {
 &#160;&#160;&#160;container bar {
 &#160;&#160;&#160;&#160;&#160;choice baz {
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;mandatory true;

 &#160;&#160;&#160;&#160;&#160;&#160;&#160;leaf one {
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type string;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;}

 &#160;&#160;&#160;&#160;&#160;&#160;&#160;leaf two {
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if-feature foo;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type string;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;}
 &#160;&#160;&#160;&#160;&#160;}
 &#160;&#160;&#160;}
 &#160;}
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The problem seems to be the combination of augment, choice, implicit case and if-feature&apos;d leaf. ietf-ip.yang triggers this as well, hence high priority.&lt;/p&gt;</comment>
                            <comment id="71637" author="rovarga" created="Tue, 22 Nov 2022 19:31:26 +0000"  >&lt;p&gt;Also, the error path occurs under container foo, hence I think the crux of the issue is InferredStatementContext not consulting original&apos;s either isSupportedByFeatures(), or more likely isSupportedToBuildEffective().&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="18202" name="console-timestamp.log.gz" size="90319" author="mario.doman" created="Thu, 10 Nov 2022 12:24:48 +0000"/>
                    </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|i043dz:</customfieldvalue>

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