<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54: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>[CONTROLLER-1207] Restconf JSON PUT cannot update/create network-topology configuration data</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1207</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;It is not possible to create or update the network-topology configuration data by Restconf JSON content-based PUT operation. &lt;/p&gt;

&lt;p&gt;The Restconf JSON PUT operation returns ok, however when reading back the data it can be seen that nothing is being created inside the network-topology configuration data. &lt;/p&gt;

&lt;p&gt;For example when issuing:&lt;/p&gt;

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

&lt;p&gt;   application/json&lt;/p&gt;

&lt;p&gt;   {&lt;br/&gt;
      &quot;network-topology&quot;: {&lt;br/&gt;
          &quot;topology&quot;: [&lt;/p&gt;
              {
                  &quot;topology-id&quot;: &quot;test&quot;
              }
&lt;p&gt;          ]&lt;br/&gt;
      }&lt;br/&gt;
   }   &lt;/p&gt;

&lt;p&gt;However when reading back by Restconf GET, the following error is reported:&lt;/p&gt;

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

&lt;p&gt;   application/json&lt;/p&gt;

&lt;p&gt;   ERROR OCCURRED:404&lt;br/&gt;
   {&lt;br/&gt;
       &quot;errors&quot;:{&lt;br/&gt;
           &quot;error&quot;:[&lt;/p&gt;
               {
                   &quot;error-message&quot;:&quot;Request could not be completed because the relevant data model content does not exist.&quot;
   ,
                   &quot;error-tag&quot;:&quot;data-missing&quot;,
                   &quot;error-type&quot;:&quot;application&quot;
               }
&lt;p&gt;           ]&lt;br/&gt;
       }&lt;br/&gt;
  }&lt;/p&gt;

&lt;p&gt;On the other hand, network-topology:network-topology configuration data can be read by Restconf GET and deleted by Restconf DELETE operations when already present as a result of the behavior of some feature installation (such as odl-netconf-connector-all, for example). &lt;/p&gt;

&lt;p&gt;Workaround is to take advantage of application/xml content in place of JSON one.&lt;/p&gt;

&lt;p&gt;As a attachment a file reporting the step I performed to reproduce systematically such issue.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25761">CONTROLLER-1207</key>
            <summary>Restconf JSON PUT cannot update/create network-topology configuration data</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="jhajnar@cisco.com">Jan Hajnar</assignee>
                                    <reporter username="giorgio.garziano@ericsson.com">Giorgio Garziano</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Mar 2015 16:57:19 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:57 +0000</updated>
                            <resolved>Mon, 23 Mar 2015 11:09:29 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="50267" author="giorgio.garziano@ericsson.com" created="Fri, 13 Mar 2015 16:57:19 +0000"  >&lt;p&gt;Attachment RestconfJsonPUT_bug.txt has been added with description: Steps used to reproduce systematically this issue&lt;/p&gt;</comment>
                            <comment id="50266" author="jhajnar@cisco.com" created="Mon, 23 Mar 2015 10:49:18 +0000"  >&lt;p&gt;patch:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16978/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16978/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13494" name="RestconfJsonPUT_bug.txt" size="2484" author="giorgio.garziano@ericsson.com" created="Fri, 13 Mar 2015 16:57:19 +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>2843</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=2843]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10361"><![CDATA[Lithium-RC0]]></customfieldvalue>

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

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