<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:20 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-796] Default of a union in YANG 1.1 only processed correctly if corresponds to first member type</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-796</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;When a leaf has a union type, and a default that does not correspond to the first member of that union type, the default is not processed correctly.   The attached model gives an error:&lt;/p&gt;

&lt;p&gt;Caused by: org.opendaylight.yangtools.yang.parser.spi.source.SourceException: Unable to find a default value for leaf &apos;(&lt;a href=&quot;http://www.example.com?revision=2017-07-10)enum-last-leaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.example.com?revision=2017-07-10)enum-last-leaf&lt;/a&gt;&apos; &lt;span class=&quot;error&quot;&gt;&amp;#91;at example-model:35:4&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.LeafEffectiveStatementImpl.(LeafEffectiveStatementImpl.java:67)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.LeafStatementImpl$Definition.createEffective(LeafStatementImpl.java:79)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:408)&lt;br/&gt;
	at com.google.common.collect.Iterators$8.transform(Iterators.java:799)&lt;br/&gt;
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)&lt;br/&gt;
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)&lt;br/&gt;
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveStatementBase.(EffectiveStatementBase.java:56)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.DeclaredEffectiveStatementBase.(DeclaredEffectiveStatementBase.java:32)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedNode.(AbstractEffectiveDocumentedNode.java:30)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedDataNodeContainer.(AbstractEffectiveDocumentedDataNodeContainer.java:45)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveSimpleDataNodeContainer.(AbstractEffectiveSimpleDataNodeContainer.java:47)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveContainerSchemaNode.(AbstractEffectiveContainerSchemaNode.java:21)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ContainerEffectiveStatementImpl.(ContainerEffectiveStatementImpl.java:32)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.ContainerStatementImpl$Definition.createEffective(ContainerStatementImpl.java:86)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:408)&lt;br/&gt;
	at com.google.common.collect.Iterators$8.transform(Iterators.java:799)&lt;br/&gt;
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)&lt;br/&gt;
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)&lt;br/&gt;
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveStatementBase.(EffectiveStatementBase.java:56)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.DeclaredEffectiveStatementBase.(DeclaredEffectiveStatementBase.java:32)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedNode.(AbstractEffectiveDocumentedNode.java:30)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveModule.(AbstractEffectiveModule.java:86)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ModuleEffectiveStatementImpl.(ModuleEffectiveStatementImpl.java:23)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.ModuleStatementSupport.createEffective(ModuleStatementSupport.java:100)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:408)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.transformEffective(BuildGlobalContext.java:250)&lt;br/&gt;
	... 80 more&lt;br/&gt;
Caused by: java.lang.IllegalStateException: Unable to find following default values &lt;span class=&quot;error&quot;&gt;&amp;#91;any&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.google.common.base.Preconditions.checkState(Preconditions.java:197)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeUtils.isAnyDefaultValueMarkedWithIfFeature(TypeUtils.java:305)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeUtils.isAnyDefaultValueMarkedWithIfFeature(TypeUtils.java:300)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeUtils.isAnyDefaultValueMarkedWithIfFeature(TypeUtils.java:300)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeUtils.hasDefaultValueMarkedWithIfFeature(TypeUtils.java:277)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.LeafEffectiveStatementImpl.(LeafEffectiveStatementImpl.java:61)&lt;br/&gt;
	... 107 more&lt;/p&gt;


&lt;p&gt;This is because TypeUtils.isAnyDefaultValueMarkedWithIfFeature is called recursively, but bails out after the first member type of the union.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23216">YANGTOOLS-796</key>
            <summary>Default of a union in YANG 1.1 only processed correctly if corresponds to first member type</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>Mon, 10 Jul 2017 14:06:39 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:00 +0000</updated>
                            <resolved>Mon, 7 Aug 2017 11:39:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="44493" author="verthezpw" created="Mon, 10 Jul 2017 14:06:39 +0000"  >&lt;p&gt;Attachment example-model.yang has been added with description: Model to trigger the bug&lt;/p&gt;</comment>
                            <comment id="44490" author="verthezpw" created="Tue, 11 Jul 2017 12:43:28 +0000"  >&lt;p&gt;That doesn&apos;t seem to be the only case where there are problems with defaults: also the model in example-model2.yang (attached) has a problem.   There the default is a number, which is in the range of the first member of the union.&lt;/p&gt;</comment>
                            <comment id="44494" author="verthezpw" created="Tue, 11 Jul 2017 12:43:58 +0000"  >&lt;p&gt;Attachment example-model2.yang has been added with description: Second case&lt;/p&gt;</comment>
                            <comment id="44491" author="pkajsa" created="Fri, 4 Aug 2017 14:32:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/61170/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/61170/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44492" author="rovarga" created="Sat, 5 Aug 2017 14:04:24 +0000"  >&lt;p&gt;carbon: &lt;a href=&quot;https://git.opendaylight.org/gerrit/61222&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/61222&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13086" name="example-model.yang" size="592" author="verthezpw" created="Mon, 10 Jul 2017 14:06:39 +0000"/>
                            <attachment id="13087" name="example-model2.yang" size="392" author="verthezpw" created="Tue, 11 Jul 2017 12:43:58 +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>8831</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=8831]]></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|i029fr:</customfieldvalue>

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