<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:55 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-1191] Restconf PUT to top-level node fails</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1191</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description></description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25745">CONTROLLER-1191</key>
            <summary>Restconf PUT to top-level node fails</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="tony.tkacik@gmail.com">Tony Tkacik</assignee>
                                    <reporter username="tpantelis">Tom Pantelis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Mar 2015 06:54:45 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:56 +0000</updated>
                            <resolved>Mon, 16 Mar 2015 12:24:04 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="50212" author="tpantelis" created="Tue, 10 Mar 2015 07:02:55 +0000"  >&lt;p&gt;If you do a PUT to a top-level node, an exception is thrown:&lt;/p&gt;

&lt;p&gt;aylight.controller.sal-rest-connector - 1.2.0.SNAPSHOT |  | Error parsing json input&lt;br/&gt;
java.util.NoSuchElementException&lt;br/&gt;
        at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:82)&lt;span class=&quot;error&quot;&gt;&amp;#91;114:com.google.guava:18.0.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findNodeInSchemaContext(SchemaContextUtil.java:229)&lt;span class=&quot;error&quot;&gt;&amp;#91;141:org.opendaylight.yangtools.yang-model-util:0.7.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findDataSchemaNode(SchemaContextUtil.java:87)&lt;span class=&quot;error&quot;&gt;&amp;#91;141:org.opendaylight.yangtools.yang-model-util:0.7.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.JsonNormalizedNodeBodyReader.readFrom(JsonNormalizedNodeBodyReader.java:64)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.JsonNormalizedNodeBodyReader.readFrom(JsonNormalizedNodeBodyReader.java:41)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;This is easily reproducible with the toaster, eg:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://localhost:8181/restconf/config/toaster:toaster&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/toaster:toaster&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
    toaster:&lt;/p&gt;
    {
       darknessFactor: &quot;2000&quot;
    }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Also the CDS 3-node integration tests that use the car/people models are broken as well.&lt;/p&gt;</comment>
                            <comment id="50213" author="tpantelis" created="Tue, 10 Mar 2015 07:18:39 +0000"  >&lt;p&gt;Also doing POST to &lt;a href=&quot;http://localhost:8181/restconf/config/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/&lt;/a&gt;, gets a different exception:&lt;/p&gt;

&lt;p&gt;java.lang.NullPointerException&lt;br/&gt;
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)&lt;span class=&quot;error&quot;&gt;&amp;#91;114:com.google.guava:18.0.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at com.google.common.base.Splitter.split(Splitter.java:386)&lt;span class=&quot;error&quot;&gt;&amp;#91;114:com.google.guava:18.0.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.restconf.impl.ControllerContext.toIdentifier(ControllerContext.java:138)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.restconf.impl.ControllerContext.toInstanceIdentifier(ControllerContext.java:124)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.AbstractIdentifierAwareJaxRsProvider.getInstanceIdentifierContext(AbstractIdentifierAwareJaxRsProvider.java:24)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.AbstractIdentifierAwareJaxRsProvider.getIdentifierWithSchema(AbstractIdentifierAwareJaxRsProvider.java:20)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.JsonNormalizedNodeBodyReader.readFrom(JsonNormalizedNodeBodyReader.java:60)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.controller.sal.rest.impl.JsonNormalizedNodeBodyReader.readFrom(JsonNormalizedNodeBodyReader.java:41)&lt;span class=&quot;error&quot;&gt;&amp;#91;256:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;This is because the identifier portion of the URL was not specified. This is supposed to be allowed for POST (it used to work anyway).&lt;/p&gt;

&lt;p&gt;Perhaps this should be a separate bug...&lt;/p&gt;</comment>
                            <comment id="50214" author="tpantelis" created="Tue, 10 Mar 2015 07:26:35 +0000"  >&lt;p&gt;It looks like this may have been broken by &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16209/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16209/2&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="50215" author="tony.tkacik@gmail.com" created="Tue, 10 Mar 2015 10:38:42 +0000"  >&lt;p&gt;Yeah, in patch you mentioned is bug, which provides JSON failure for top-level element,&lt;br/&gt;
but without that patch JSON did not work at all.&lt;/p&gt;</comment>
                            <comment id="50216" author="tpantelis" created="Tue, 10 Mar 2015 12:22:41 +0000"  >&lt;p&gt;ok - so there&apos;s progress - that&apos;s good &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;  &lt;/p&gt;

&lt;p&gt;(In reply to Tony Tkacik from comment #4)&lt;br/&gt;
&amp;gt; Yeah, in patch you mentioned is bug, which provides JSON failure for&lt;br/&gt;
&amp;gt; top-level element,&lt;br/&gt;
&amp;gt; but without that patch JSON did not work at all.&lt;/p&gt;</comment>
                            <comment id="50217" author="tony.tkacik@gmail.com" created="Tue, 10 Mar 2015 21:19:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16136/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16136/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This fixes PUT for JSON inputs&lt;br/&gt;
and also POST for JSON/XML for creation of data and RPCs.&lt;/p&gt;</comment>
                    </comments>
                    <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>2805</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=2805]]></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="10315"><![CDATA[Lithium]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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