<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:57 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-193] Default values not filled for BA RPC</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-193</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;I specified default values for leafs in a model of an RPC, and the values are not being filled by the system. The model is attached. This issue is happening on master (carbon)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27015">MDSAL-193</key>
            <summary>Default values not filled for BA RPC</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="3" iconUrl="https://jira.opendaylight.org/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Mon, 22 Aug 2016 04:15:26 +0000</created>
                <updated>Thu, 17 Nov 2022 13:08:23 +0000</updated>
                                                                            <component>Binding runtime</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54420" author="jmedved@cisco.com" created="Mon, 22 Aug 2016 04:15:26 +0000"  >&lt;p&gt;Attachment shardingsimple.yang has been added with description: Yang model where the bug can be reproduced&lt;/p&gt;</comment>
                            <comment id="54415" author="ifoltin" created="Mon, 22 Aug 2016 12:14:58 +0000"  >&lt;p&gt;Hi Jan, &lt;/p&gt;

&lt;p&gt;I tested the attached model in the yang parser and all default values were filled out correctly in the produced SchemaContext.&lt;/p&gt;

&lt;p&gt;Could you please provide more info, e.g. circumstances under which you ran into this problem or perhaps a unit test.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="54416" author="pkajsa" created="Tue, 23 Aug 2016 06:58:10 +0000"  >&lt;p&gt;This seems to be duplicate of &lt;br/&gt;
&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=2489&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=2489&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54417" author="jmedved@cisco.com" created="Wed, 24 Aug 2016 03:01:34 +0000"  >&lt;p&gt;Hi Igor,&lt;/p&gt;

&lt;p&gt;I retested the use case. The problem occurs for one specific case, when the json is entirely empty ( &apos;{}&apos;). I added one value for the input (test type) as follows:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
    &quot;shard-test&quot;: {&lt;br/&gt;
        &quot;input&quot;: &lt;/p&gt;
{
            &quot;test-type&quot;: &quot;ROUND-ROBIN&quot;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;and all the other values were filled in. I guess the problem is when no data whatsoever is specified (empty json) - I think for RPCs in that case all default values should be filled in.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;1. check our coretutorials in the current master:&lt;/p&gt;

&lt;p&gt;   &amp;gt; git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/coretutorials.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/coretutorials.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2. Go to the clustering/shardingsimple folder&lt;/p&gt;

&lt;p&gt;   &amp;gt; cd coretutorials/clustering/shardingsimple&lt;/p&gt;

&lt;p&gt;3. Build:&lt;br/&gt;
   &amp;gt; mvn clean install&lt;/p&gt;

&lt;p&gt;4. Run the built distro:&lt;br/&gt;
   &amp;gt; ./karaf/target/assembly/bin/karaf&lt;/p&gt;

&lt;p&gt;5. Point the local browser at the controller - open&lt;br/&gt;
   &lt;a href=&quot;http://localhost:8181/index.html#/yangman/index&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/index.html#/yangman/index&lt;/a&gt; (admin/admin)&lt;/p&gt;

&lt;p&gt;6. Click on yangman, if the above URL did not get you there. Click on the shardingsimple model, then on operations, and then click the red SEND button. You will see the exception on ODL&lt;/p&gt;</comment>
                            <comment id="54418" author="pkajsa" created="Thu, 27 Oct 2016 10:17:47 +0000"  >&lt;p&gt;After further discusion it seems it is a bug in md-sal. Hence the bug has been reopened and moved to md-sal.&lt;/p&gt;</comment>
                            <comment id="54419" author="rovarga" created="Thu, 27 Oct 2016 12:30:31 +0000"  >&lt;p&gt;Binding Aware LazyDataObject should be filling in default nodes, we need to create a unit test in binding-dom-codec&lt;/p&gt;</comment>
                            <comment id="60845" author="rovarga" created="Fri, 26 Jan 2018 16:43:36 +0000"  >&lt;p&gt;Based on the difference between when a single leaf is present and completely empty input, the problem is that nested DataObjects are not instantiated, leading to Input not being present.&lt;/p&gt;</comment>
                            <comment id="60847" author="rovarga" created="Fri, 26 Jan 2018 22:48:22 +0000"  >&lt;p&gt;This is an interesting side-effect of allowing nulls in invokeRpc() path. The idea that an RPC does not take arguments is not correct: RPC input statement is present implicitly and can externally be augmented &#8211; which implies that even RPCs that do not spell out an input statement still take an empty container as the argument. This then maps to the requested functionality: there is an input object which can have default leaves, as opposed to current mode of operation, when input is non-existent and there are not leaves.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-303&quot; title=&quot;Do not allow null RPC input in invocation paths&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-303&quot;&gt;&lt;del&gt;MDSAL-303&lt;/del&gt;&lt;/a&gt; tracks the change to DOMRpcService change required to make the input document always present. This should fix immediate children of input statement, but will not create containers implied by default leaves &#8211; that bit is going to be addressed by this issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="29121">MDSAL-303</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13808" name="shardingsimple.yang" size="7261" author="jmedved@cisco.com" created="Mon, 22 Aug 2016 04:15:26 +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>6488</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=6488]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02wvz:</customfieldvalue>

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