<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:13: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>[NETCONF-2] Cannot perform any operations on leaves</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-2</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;This should work according to the swagger API docs, but does not:&lt;/p&gt;

&lt;p&gt;$ curl &lt;a href=&quot;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&lt;/a&gt;&lt;br/&gt;
URI has bad format. Node &quot;darknessFactor&quot; must be Container or List yang type.&lt;/p&gt;

&lt;p&gt;So should this (PUT and POST give the same error):&lt;br/&gt;
$ curl -X POST -H &apos;Content-Type: application/yang.data+json&apos; -d &apos;2000&apos; &lt;a href=&quot;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&lt;/a&gt;&lt;br/&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Apache Tomcat/7.0.32 - Error report&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;&amp;lt;!--H1 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
&lt;p&gt; H2 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
&lt;p&gt; H3 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
&lt;p&gt; BODY &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
&lt;p&gt; B &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
&lt;p&gt; P &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
&lt;p&gt;A &lt;/p&gt;
{color : black;}
&lt;p&gt;A.name &lt;/p&gt;
{color : black;}
&lt;p&gt;HR &lt;/p&gt;
{color : #525D76;}
&lt;p&gt;--&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;HTTP Status 500 - java.lang.String cannot be cast to org.opendaylight.controller.sal.restconf.impl.StructuredData&amp;lt;/h1&amp;gt;&amp;lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt; Exception report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;message&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;java.lang.String cannot be cast to org.opendaylight.controller.sal.restconf.impl.StructuredData&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;description&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;The server encountered an internal error that prevented it from fulfilling this request.&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;exception&amp;lt;/b&amp;gt; &amp;lt;pre&amp;gt;java.lang.ClassCastException: java.lang.String cannot be cast to org.opendaylight.controller.sal.restconf.impl.StructuredData&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.StructuredDataToXmlProvider.getSize(StructuredDataToXmlProvider.java:39)&lt;br/&gt;
	com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:289)&lt;br/&gt;
	com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="21015">NETCONF-2</key>
            <summary>Cannot perform any operations on leaves</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="-1">Unassigned</assignee>
                                    <reporter username="readams">Rob Adams</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 May 2014 22:21:31 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:09 +0000</updated>
                            <resolved>Tue, 10 Oct 2017 09:55:48 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="38672" author="tpantelis" created="Wed, 21 May 2014 16:26:58 +0000"  >&lt;p&gt;The cast exception is fixed with &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-472&quot; title=&quot;Restconf errors should be formatted in JSON as appropropriate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-472&quot;&gt;&lt;del&gt;CONTROLLER-472&lt;/del&gt;&lt;/a&gt;. The POST command above with -d &apos;2000&apos; now returns error:&lt;/p&gt;

&lt;p&gt;  &quot;Root element of Json has to be Object&quot;&lt;/p&gt;

&lt;p&gt;which makes sense because it isn&apos;t valid json.&lt;/p&gt;

&lt;p&gt;Issuing this:&lt;/p&gt;

&lt;p&gt;curl -X POST -H &apos;Content-Type: application/json&apos; -d &apos;&lt;/p&gt;
{darknessFactor: &quot;2000&quot;}
&lt;p&gt;&apos; &lt;a href=&quot;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/toaster:toaster/darknessFactor&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;yields this error:&lt;/p&gt;

&lt;p&gt;  &quot;First element in Json Object has to be &quot;Object&quot; or &quot;Array with one Object   element&quot;. Other scenarios are not supported yet.&quot;&lt;/p&gt;


&lt;p&gt;So the controller&apos;s restconf doesn&apos;t (yet) support GET/PUT/POST to leaf nodes. The RESTCONF spec doesn&apos;t appear to preclude it.&lt;/p&gt;</comment>
                            <comment id="38673" author="tpantelis" created="Fri, 30 May 2014 15:19:41 +0000"  >&lt;p&gt;The RESTCONF spec states &quot;Only YANG container and list data node types are considered to represent data resources.  Other YANG data nodes are considered to be fields within their parent resource.&quot;&lt;/p&gt;

&lt;p&gt;The target type for a PUT (also for POST) is a data resource. Therefore, by the definition of data resource, PUT is not allowed for a leaf field of a data resource.&lt;/p&gt;

&lt;p&gt;It seems the PATCH method is intended to perform CUD on leaf fields, which is not currently implemented in ODL.&lt;/p&gt;</comment>
                            <comment id="38674" author="readams@readams.net" created="Fri, 30 May 2014 16:05:50 +0000"  >&lt;p&gt;At a minimum, we need to make these not appear in the API docs.&lt;/p&gt;</comment>
                            <comment id="38675" author="jgloncak" created="Fri, 26 Sep 2014 11:07:05 +0000"  >&lt;p&gt;Currently only lists (with key values) or containers are presents in swagger URI links.&lt;/p&gt;

&lt;p&gt;If no other comments with additional requests will appear in few days regarding this bug I will close it.&lt;/p&gt;</comment>
                            <comment id="38676" author="tony.tkacik@gmail.com" created="Tue, 12 May 2015 13:53:04 +0000"  >&lt;p&gt;This would require upgrade of restconf to latest drafts.&lt;/p&gt;</comment>
                            <comment id="38677" author="rovarga" created="Fri, 13 Nov 2015 12:58:45 +0000"  >&lt;p&gt;Move to NETCONF project&lt;/p&gt;</comment>
                            <comment id="38678" author="rovarga" created="Tue, 10 Oct 2017 09:55:48 +0000"  >&lt;p&gt;Fixed in RFC8040 restconf&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="21031">NETCONF-18</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>1013</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=1013]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10308"><![CDATA[New Feature]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10321"><![CDATA[Carbon]]></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|i01vun:</customfieldvalue>

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