<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09: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>[MDSAL-276] binding-data-codec does not work with boolean type using typedef</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-276</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;for example&lt;br/&gt;
if the yang is :&lt;br/&gt;
container default-policy{&lt;br/&gt;
leaf action {&lt;br/&gt;
	type boolean;&lt;br/&gt;
}&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;then I call toNormalizedNode(final InstanceIdentifier&amp;lt;T&amp;gt; path, final T data), it works normal.&lt;br/&gt;
But if the yang is :&lt;br/&gt;
typedef policy-logging-flag &lt;/p&gt;
{
        description &quot;false-disable,true-enable&quot;;
        type boolean;
    }
&lt;p&gt;container default-policy{&lt;br/&gt;
leaf action {&lt;br/&gt;
	type policy-logging-flag;&lt;br/&gt;
}&lt;br/&gt;
}&lt;br/&gt;
I call toNormalizedNode(final InstanceIdentifier&amp;lt;T&amp;gt; path, final T data), it would throw abnormal:&lt;br/&gt;
Caused by: java.lang.IllegalStateException: Unable to find type for child node AbsoluteSchemaPath&lt;/p&gt;
{path=[(urn:huawei:yang:huawei-ac-nes?revision=2016-03-04)inventory-cfg, (urn:huawei:yang:huawei-ac-nes?revision=2016-03-04)nes, (urn:huawei:yang:huawei-ac-nes?revision=2016-03-04)ne, (urn:huawei:params:xml:ns:yang:huawei-security-policy?revision=2017-04-15)sec-policy, (urn:huawei:params:xml:ns:yang:huawei-security-policy?revision=2017-04-15)vsys, (urn:huawei:params:xml:ns:yang:huawei-security-policy?revision=2017-04-15)default-policy, (urn:huawei:params:xml:ns:yang:huawei-security-policy?revision=2017-04-15)action]}
&lt;p&gt;. Expected child nodes: &lt;/p&gt;
{getGlobalIp=GeneratedTransferObject [packageName=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.sec.policy.rule._default, name=GlobalIp, comment=null, annotations=[], implements=[Type (org.opendaylight.yangtools.yang.binding.ChildOf), Type (org.opendaylight.yangtools.yang.binding.Augmentable)], enclosedTypes=[], constants=[Constant [type=Type (org.opendaylight.yangtools.yang.common.QName), name=QNAME, value=org.opendaylight.yangtools.yang.common.QName.cachedReference(org.opendaylight.yangtools.yang.common.QName.create(&quot;urn:huawei:params:xml:ns:yang:huawei-security-policy&quot;,&quot;2017-04-15&quot;,&quot;global-ip&quot;)), definingType=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.sec.policy.rule._default.GlobalIp]], enumerations=[], properties=, methods=[MethodSignatureBuilderImpl [name=isDestination, returnType=Type (java.lang.Boolean), parameters=[], annotationBuilders=[], comment=Enable or disable destination global ip. True means enable and false means disable.]]], getPolicylog=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.PolicyLoggingFlag, getAction=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.ActionPolicyFlag, getSessionlog=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.SessionLoggingFlag}
&lt;p&gt;	at org.opendaylight.yangtools.binding.data.codec.gen.impl.DataNodeContainerSerializerSource.emitBody(DataNodeContainerSerializerSource.java:149)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.DataNodeContainerSerializerSource.getSerializerBody(DataNodeContainerSerializerSource.java:80)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator$1.get(AbstractStreamWriterGenerator.java:203)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator$1.get(AbstractStreamWriterGenerator.java:200)&lt;br/&gt;
	at org.opendaylight.yangtools.util.ClassLoaderUtils.withClassLoader(ClassLoaderUtils.java:53)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator.generateEmitter0(AbstractStreamWriterGenerator.java:200)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator.access$300(AbstractStreamWriterGenerator.java:46)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator$SerializerImplementationLoader.generateSerializer(AbstractStreamWriterGenerator.java:136)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator$SerializerImplementationLoader.load(AbstractStreamWriterGenerator.java:124)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator$SerializerImplementationLoader.load(AbstractStreamWriterGenerator.java:102)&lt;br/&gt;
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)&lt;br/&gt;
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)&lt;br/&gt;
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)&lt;br/&gt;
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)&lt;br/&gt;
	... 177 more&lt;/p&gt;

&lt;p&gt;This could be a bug, Should we work it out?&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27098">MDSAL-276</key>
            <summary>binding-data-codec does not work with boolean type using typedef</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="zhuweisheng@huawei.com">zhuweisheng</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Jul 2017 06:17:58 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:22 +0000</updated>
                            <resolved>Fri, 28 Jul 2017 07:18:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="27099">MDSAL-277</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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>8901</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=8901]]></customfieldvalue>

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

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