<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:14 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>[CONTROLLER-116] RESTCONF: GET operation on group results in IllegalArgumentException</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-116</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Steps:&lt;br/&gt;
1. Create a group on the switch.&lt;br/&gt;
2. Perform GET operation on the group using url:&lt;br/&gt;
&lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/group/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/group/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This results in following exception:&lt;br/&gt;
java.lang.IllegalArgumentException&lt;br/&gt;
	com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.ControllerContext.addKeyValue(ControllerContext.java:682)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.ControllerContext.collectPathArguments(ControllerContext.java:596)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.ControllerContext.collectPathArguments(ControllerContext.java:612)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.ControllerContext.collectPathArguments(ControllerContext.java:612)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.ControllerContext.toInstanceIdentifier(ControllerContext.java:160)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.RestconfImpl.resolveInstanceIdentifier(RestconfImpl.java:384)&lt;br/&gt;
	org.opendaylight.controller.sal.restconf.impl.RestconfImpl.readData(RestconfImpl.java:165)&lt;br/&gt;
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;br/&gt;
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	java.lang.reflect.Method.invoke(Method.java:601)&lt;br/&gt;
...&lt;/p&gt;


&lt;p&gt;Debug Results:&lt;/p&gt;

&lt;p&gt;1. In flow-node-inventory.yang: &quot;grouping flow-node&quot; contains statement &quot;uses group:groups;&quot; where group refers to group-types.yang&lt;/p&gt;

&lt;p&gt;2. ControllerContext.java line:595&lt;br/&gt;
DataSchemaNode _dataChildByName = listNode.getDataChildByName(key);&lt;br/&gt;
RESTCONF correctly recognizes the group-id to be in group-types namespace and hence key is identified as &quot;urn:opendaylight:group:types:group-id&quot;.&lt;br/&gt;
But the listNode object reference points to ListSchemaNode -&amp;gt; group whose child lements&apos; namespace is incorrectly set to &quot;urn:opendaylight:flow:inventory&quot; namespace. Thus _dataChildByName is set to null. This results in exception.&lt;/p&gt;

&lt;p&gt;Please note that the issue does not occur consistently.&lt;/p&gt;

&lt;p&gt;Build info:&lt;br/&gt;
My code base contains code till the commit:&lt;/p&gt;

&lt;p&gt;commit ffecdf80dfcda1b05b18ab30690e93f77593a236&lt;br/&gt;
Merge: 39e9983 f5f6bbc&lt;br/&gt;
Author: Abhijit Kumbhare &amp;lt;abhijitk@us.ibm.com&amp;gt;&lt;br/&gt;
Date:   Thu Jan 16 00:48:58 2014 +0000&lt;/p&gt;

&lt;p&gt;    Merge &quot;Fixed Bug : 287 &lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=287&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=287&lt;/a&gt;&quot;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24670">CONTROLLER-116</key>
            <summary>RESTCONF: GET operation on group results in IllegalArgumentException</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="msunal@cisco.com">Martin Sunal</assignee>
                                    <reporter username="deepthi.v.v@ericsson.com">Deepthi V V</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Jan 2014 12:33:02 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:59 +0000</updated>
                            <resolved>Fri, 24 Jan 2014 16:25:02 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47527" author="hagbard@gmail.com" created="Thu, 16 Jan 2014 16:34:12 +0000"  >&lt;p&gt;This may be fixed by &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/4209/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/4209/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47528" author="deepthi.v.v@ericsson.com" created="Fri, 17 Jan 2014 06:28:41 +0000"  >&lt;p&gt;Ed:&lt;br/&gt;
This issue is related to fetching group information even without any statistics.&lt;br/&gt;
It is basically yang parsing issue.&lt;br/&gt;
ListSchemaNodeBuilder object for &quot;list group&quot;:&lt;br/&gt;
  keyDefinition contains group-id from &quot;urn:opendaylight:group:types&quot; namespace. But its childNodes map contains group-id from &quot;urn:opendaylight:flow:inventory&quot;.&lt;/p&gt;

&lt;p&gt;The fix may/may not have impact on code review:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/4209/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/4209/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47529" author="msunal@cisco.com" created="Mon, 20 Jan 2014 16:48:14 +0000"  >&lt;p&gt;there is a &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-75&quot; title=&quot;key from ListSchemaNode has different revision&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-75&quot;&gt;&lt;del&gt;YANGTOOLS-75&lt;/del&gt;&lt;/a&gt; which has to be resolved in yangtools.&lt;/p&gt;</comment>
                            <comment id="47530" author="tony.tkacik@gmail.com" created="Fri, 24 Jan 2014 14:27:11 +0000"  >&lt;p&gt;Fix for &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-75&quot; title=&quot;key from ListSchemaNode has different revision&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-75&quot;&gt;&lt;del&gt;YANGTOOLS-75&lt;/del&gt;&lt;/a&gt; fixed this behaviour.&lt;br/&gt;
Fix for &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-119&quot; title=&quot;Create group fails through RESTCONF&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-119&quot;&gt;&lt;del&gt;CONTROLLER-119&lt;/del&gt;&lt;/a&gt; fixes also edit operations on that subtree.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="22495">YANGTOOLS-75</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22498">YANGTOOLS-78</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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>313</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=313]]></customfieldvalue>

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

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