<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:55:02 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-1048] YANG parser can&apos;t parse ietf-subscribed-notifications module when &quot;configured&quot; feature is not present</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1048</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;See the attached model.   When passing this to the YANG parser with either no features defined or without the &quot;configured&quot; feature defined on the ietf-subscribed-notifications module, the YANG parser gives the following error:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Caused by: org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Refine target node Relative{path=[(urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications?revision=2019-09-09)transport]} not found. [at /home/verthezp/tmp/bugs/refinebug/ietf-subscribed-notifications.yang:1148:8]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reason is that the &quot;transport&quot; node is under an &quot;if-feature configured&quot;, but the refine statement is not.&lt;/p&gt;

&lt;p&gt;Since all the modules in this example are IETF standard models, it probably indicates that the design of the ODL parser, which removes nodes under an if-feature first before proceeding to process the model, is wrong.    We had related bugs such as &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-803&quot; title=&quot;if-feature statements not correctly processed in refine&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-803&quot;&gt;&lt;del&gt;YANGTOOLS-803&lt;/del&gt;&lt;/a&gt;, but there we always fixed it by making sure that the if-feature was given both at the target and the statement modifying it.   I see also &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-811&quot; title=&quot;yang parser problem with refine or augment of yang node, which is not supported per feature statement&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-811&quot;&gt;&lt;del&gt;YANGTOOLS-811&lt;/del&gt;&lt;/a&gt;, which was rejected.   I was previously also under the impression that that decision was correct, but looking at these standard models, that decision may be wrong, and the YANG parser may have to change.&lt;/p&gt;

&lt;p&gt;We are currently on YANG parser version 2.1.8, I haven&apos;t checked this yet with newer versions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32261">YANGTOOLS-1048</key>
            <summary>YANG parser can&apos;t parse ietf-subscribed-notifications module when &quot;configured&quot; feature is not present</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="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="verthezpw">Peter Verthez</reporter>
                        <labels>
                            <label>pick-next</label>
                            <label>pt</label>
                    </labels>
                <created>Tue, 17 Dec 2019 14:22:23 +0000</created>
                <updated>Tue, 13 Dec 2022 02:11:17 +0000</updated>
                                            <version>2.1.8</version>
                                                    <component>parser</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="67569" author="verthezpw" created="Tue, 17 Dec 2019 14:44:22 +0000"  >&lt;p&gt;Sorry, I forgot that there is already &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-859&quot; title=&quot;Augmenting a container with if-feature&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-859&quot;&gt;&lt;del&gt;YANGTOOLS-859&lt;/del&gt;&lt;/a&gt;.   This ticket can probably be a duplicate of that one.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15509" name="refinebug.zip" size="42123" author="verthezpw" created="Tue, 17 Dec 2019 14:18:52 +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|i03qf3:</customfieldvalue>

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