<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:42 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-589] When condition of augment mistakenly added in constraints of augment target</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-589</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;We are trying to migrate to the new parser in Beryllium, but we&apos;ve found a bug that is blocking us from migrating.&lt;/p&gt;

&lt;p&gt;When a module augments a target conditionally in another module, the when condition of the augment is added in the constraints of the augment target, which is wrong.&lt;/p&gt;

&lt;p&gt;I&apos;ve added a minimal example as attachment on this bug.&lt;/p&gt;

&lt;p&gt;When parsing this example, the result can be seen below (this is the output of a dumper that we wrote).    The problem is the whenCondition in the getConstraints on the top container, which should not be there.&lt;/p&gt;

&lt;p&gt;(also, there are a number of maxElements values that seem to be wrong, but that is not blocking us)&lt;/p&gt;

&lt;p&gt;  [ContainerEffectiveStatementImpl&lt;br/&gt;
    getQName=(&lt;a href=&quot;http://example.com/module1?revision=2016-03-09)top&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://example.com/module1?revision=2016-03-09)top&lt;/a&gt;&lt;br/&gt;
    isConfiguration=true&lt;br/&gt;
    getConstraints=EffectiveConstraintDefinitionImpl&lt;/p&gt;
{whenCondition=module1:top = &apos;extended&apos;, mustConstraints=[], mandatory=false, minElements=0, maxElements=2147483647}
&lt;p&gt;    isAugmenting=false&lt;br/&gt;
    isAddedByUses=false&lt;br/&gt;
    isPresenceContainer=false&lt;br/&gt;
    getAvailableAugmentations=&lt;br/&gt;
      [AugmentationSchema&lt;br/&gt;
        getWhenCondition=module1:top = &apos;extended&apos;&lt;br/&gt;
        getChildNodes=&lt;br/&gt;
          (&lt;a href=&quot;http://example.com/module2?revision=2016-03-09)extended-leaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://example.com/module2?revision=2016-03-09)extended-leaf&lt;/a&gt;&lt;br/&gt;
      ]&lt;br/&gt;
    getUses=&lt;br/&gt;
    getChildNodes=&lt;br/&gt;
      [LeafEffectiveStatementImpl&lt;br/&gt;
        getQName=(&lt;a href=&quot;http://example.com/module1?revision=2016-03-09)top-leaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://example.com/module1?revision=2016-03-09)top-leaf&lt;/a&gt;&lt;br/&gt;
        isConfiguration=true&lt;br/&gt;
        getConstraints=&lt;/p&gt;
{mustConstraints=[], mandatory=false, minElements=0, maxElements=2147483647}&lt;br/&gt;
        isAugmenting=false&lt;br/&gt;
        isAddedByUses=false&lt;br/&gt;
        getDefault=null&lt;br/&gt;
        getUnits=null&lt;br/&gt;
        getType=&lt;br/&gt;
          type=BaseStringType&lt;br/&gt;
          getQName=(urn:ietf:params:xml:ns:yang:1)string&lt;br/&gt;
          getUnits=null&lt;br/&gt;
          getDefaultValue=null&lt;br/&gt;
          getBaseType=null&lt;br/&gt;
          getLengthConstraints=&lt;br/&gt;
          getPatternConstraints=&lt;br/&gt;
      ]&lt;br/&gt;
      [LeafEffectiveStatementImpl&lt;br/&gt;
        getQName=(&lt;a href=&quot;http://example.com/module2?revision=2016-03-09)extended-leaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://example.com/module2?revision=2016-03-09)extended-leaf&lt;/a&gt;&lt;br/&gt;
        isConfiguration=true&lt;br/&gt;
        getConstraints={mustConstraints=[], mandatory=false, minElements=0, maxElements=2147483647}
&lt;p&gt;        isAugmenting=true&lt;br/&gt;
        isAddedByUses=false&lt;br/&gt;
        getDefault=null&lt;br/&gt;
        getUnits=null&lt;br/&gt;
        getType=&lt;br/&gt;
          type=BaseStringType&lt;br/&gt;
          getQName=(urn:ietf:params:xml:ns:yang:1)string&lt;br/&gt;
          getUnits=null&lt;br/&gt;
          getDefaultValue=null&lt;br/&gt;
          getBaseType=null&lt;br/&gt;
          getLengthConstraints=&lt;br/&gt;
          getPatternConstraints=&lt;br/&gt;
      ]&lt;br/&gt;
  ]&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23009">YANGTOOLS-589</key>
            <summary>When condition of augment mistakenly added in constraints of augment target</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, 9 Mar 2016 11:30:48 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:45 +0000</updated>
                            <resolved>Fri, 11 Mar 2016 09:49:43 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="43799" author="verthezpw" created="Wed, 9 Mar 2016 11:30:48 +0000"  >&lt;p&gt;Attachment modules.zip has been added with description: Minimal example&lt;/p&gt;</comment>
                            <comment id="43798" author="pkajsa" created="Thu, 10 Mar 2016 17:00:49 +0000"  >&lt;p&gt;fix master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/36058/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/36058/2&lt;/a&gt;&lt;br/&gt;
fix stable/beryllium: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/36060/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/36060/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13044" name="modules.zip" size="702" author="verthezpw" created="Wed, 9 Mar 2016 11:30: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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5481</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=5481]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10330"><![CDATA[Beryllium-1]]></customfieldvalue>

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

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