<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:21 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-803] if-feature statements not correctly processed in refine</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-803</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;We have in one of the models of BBF the following case (see the attached model, which is similar but smaller):&lt;/p&gt;

&lt;p&gt;  augment &quot;/if:interfaces-state/if:interface&quot; {&lt;br/&gt;
    if-feature availability;&lt;br/&gt;
    description&lt;br/&gt;
      &quot;Augment the state data of an interface with operational status &lt;br/&gt;
       for availability. &quot;;&lt;/p&gt;

&lt;p&gt;    uses bbf-avail:availability {&lt;br/&gt;
      refine &quot;availability&quot; &lt;/p&gt;
{
        description
          &quot;Operational status defining the availability of an interface.&quot;;
      }
&lt;p&gt;    }&lt;br/&gt;
  }&lt;/p&gt;

&lt;p&gt;The &quot;availability&quot; targeted by the refine is a container in the &quot;bbf-avail:availability&quot; grouping, which is marked by &quot;if-feature availability&quot;.&lt;/p&gt;

&lt;p&gt;Now, if the &quot;availability&quot; feature is not present, and so the &quot;availability&quot; container in the &quot;bbf-avail:availability&quot; is not present, the above refine fails with the following error (the error is not present when the feature is present):&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.IllegalArgumentException: Refine target node Relative&lt;/p&gt;
{path=[(http://www.example.com/itf-availability?revision=2017-05-05)availability]}
&lt;p&gt; not found. At itf-availability:27:6&lt;br/&gt;
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.UsesStatementImpl.performRefine(UsesStatementImpl.java:297)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.UsesStatementImpl.resolveUsesNode(UsesStatementImpl.java:273)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.UsesStatementImpl$Definition$1.apply(UsesStatementImpl.java:113)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.applyAction(ModifierImpl.java:100)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.tryApply(ModifierImpl.java:160)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.tryToProgress(SourceSpecificContext.java:318)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.tryToCompletePhase(SourceSpecificContext.java:296)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.completePhaseActions(BuildGlobalContext.java:359)&lt;br/&gt;
	... 79 more&lt;/p&gt;

&lt;p&gt;However, the refine is also conditional under the same feature (if-feature on the surrounding augment), so this error looks incorrect to us.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23223">YANGTOOLS-803</key>
            <summary>if-feature statements not correctly processed in refine</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="10000">Done</resolution>
                                        <assignee username="pkajsa">Peter Kajsa</assignee>
                                    <reporter username="verthezpw">Peter Verthez</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Aug 2017 13:17:20 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:01 +0000</updated>
                            <resolved>Sun, 13 Aug 2017 17:53:39 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="44503" author="verthezpw" created="Wed, 2 Aug 2017 13:17:20 +0000"  >&lt;p&gt;Attachment refine.zip has been added with description: Example model showing the bug&lt;/p&gt;</comment>
                            <comment id="44502" author="pkajsa" created="Wed, 9 Aug 2017 05:42:48 +0000"  >&lt;p&gt;master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/61377/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/61377/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13088" name="refine.zip" size="11199" author="verthezpw" created="Wed, 2 Aug 2017 13:17:20 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8922</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=8922]]></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="10337"><![CDATA[Carbon-SR2]]></customfieldvalue>

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

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