<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:13: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>[NETCONF-15] PUT method returns wrong status code when new resource is created</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-15</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;When creating new resource with PUT method, status code 200 OK is returned.&lt;br/&gt;
But RESTCONF Protocol draft-bierman-netconf-restconf-04 says:&lt;br/&gt;
   Consistent with &lt;span class=&quot;error&quot;&gt;&amp;#91;RFC2616&amp;#93;&lt;/span&gt;, if the PUT method creates a new resource,&lt;br/&gt;
   a &quot;201 Created&quot; Status-Line is returned.  If an existing resource is&lt;br/&gt;
   modified, either &quot;200 OK&quot; or &quot;204 No Content&quot; are returned.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: Other&lt;/p&gt;</environment>
        <key id="21028">NETCONF-15</key>
            <summary>PUT method returns wrong status code when new resource is created</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="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="amarcine@cisco.com">Andrej Marcinek</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Jan 2015 09:26:08 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:10 +0000</updated>
                            <resolved>Wed, 10 Aug 2016 08:27:31 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="38731" author="vdemcak@cisco.com" created="Fri, 24 Apr 2015 12:52:56 +0000"  >&lt;p&gt;I guess, there is some mispoint for target specifications so:&lt;/p&gt;

&lt;p&gt;draft-bierman-netconf-restconf-02 is a targeted implementation specification for now and it doesn&apos;t say anything about PUT create vs update.&lt;br/&gt;
new target implementation specification is draft-ietf-netconf-restconf-04 (see &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-18&quot; title=&quot;Enhance RESTconf to implement latest draft-ietf-restconf-netconf&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-18&quot;&gt;&lt;del&gt;NETCONF-18&lt;/del&gt;&lt;/a&gt;) and it realy says:&lt;/p&gt;

&lt;p&gt;&quot;Consistent with &lt;span class=&quot;error&quot;&gt;&amp;#91;RFC 7231&amp;#93;&lt;/span&gt;, if the PUT request creates a new resource,&lt;br/&gt;
a &quot;201 Created&quot; status-line is returned. If an existing resource is&lt;br/&gt;
modified, either &quot;200 OK&quot; or &quot;204 No Content&quot; are returned.&quot;&lt;/p&gt;

&lt;p&gt;so here is patch for fix:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/19009/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/19009/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="38732" author="vrpolak" created="Thu, 10 Sep 2015 09:55:50 +0000"  >&lt;p&gt;Current Target Milestone is set to Lithium-1. Is this bug planned to be fixed in Lithium-SR2?&lt;/p&gt;</comment>
                            <comment id="38733" author="rovarga" created="Fri, 13 Nov 2015 12:58:46 +0000"  >&lt;p&gt;Move to NETCONF project&lt;/p&gt;</comment>
                            <comment id="38734" author="tcere" created="Tue, 24 Nov 2015 09:26:07 +0000"  >&lt;p&gt;Needs to be ported to Netconf repo&lt;/p&gt;</comment>
                            <comment id="38735" author="tcere" created="Mon, 21 Dec 2015 12:43:17 +0000"  >&lt;p&gt;Port of li patch:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/31693&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/31693&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Discussion with Tony revealed that this way of handling it will introduce some performance issues, so we will probably have to find another way of handling this.&lt;/p&gt;</comment>
                            <comment id="38736" author="vrpolak" created="Mon, 21 Dec 2015 16:05:04 +0000"  >&lt;p&gt;&amp;gt; Port of li patch&lt;/p&gt;

&lt;p&gt;Li patch is also waiting for review: &lt;a href=&quot;https://git.opendaylight.org/gerrit/21183&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/21183&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="38737" author="vrpolak" created="Mon, 21 Dec 2015 16:11:41 +0000"  >&lt;p&gt;The fix may affect multiple system test suites in integration/test project.&lt;br/&gt;
A warning e-mail has been sent &lt;a href=&quot;https://lists.opendaylight.org/pipermail/integration-dev/2015-December/005434.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/integration-dev/2015-December/005434.html&lt;/a&gt;&lt;br/&gt;
but perhaps weather event will be even more consumer-friendly.&lt;/p&gt;</comment>
                            <comment id="38738" author="jatoth@cisco.com" created="Tue, 14 Jun 2016 10:38:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/40235/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/40235/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="38739" author="rovarga" created="Fri, 17 Jun 2016 14:20:35 +0000"  >&lt;p&gt;An interim &quot;fix&quot; can be to open a read-write transaction, issue a read (which returns a future) and a put, submit the transaction (which returns a future). Then wait for both futures to complete and return appropriate return code.&lt;/p&gt;

&lt;p&gt;The problem is that this will not be reliable, as it will suffer from race conditions anyway: if two such operations are executed concurrently, both will return 201 (as that is the state observed in transaction&apos;s isolated view).&lt;/p&gt;

&lt;p&gt;In order to solve this we need support from the data store, specifically an option to report the DataTreeCandidate view of the transaction&apos;s effect in the future returned by submit(). The DataTreeCandidate has to be then examined to ascertain whether the target resource was created or not.&lt;/p&gt;

&lt;p&gt;This will work for local modifications, transferring the candidate from a remote shard may prove to be too costly to be feasible. This definitely needs more analysis.&lt;/p&gt;</comment>
                            <comment id="38740" author="jatoth@cisco.com" created="Thu, 7 Jul 2016 16:24:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/40235/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/40235/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="27212">TOPOPROCES-86</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>2594</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=2594]]></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="10309"><![CDATA[Boron]]></customfieldvalue>

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

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