<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:02 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-442] Deleting non existing data using PATCH should return 404</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-442</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;According to rfc8072, section 2.5., delete operation should return error when the data does not exist. &lt;br/&gt;
Steps to reproduce:&lt;br/&gt;
feature:install odl-restconf odl-clustering-test-app&lt;/p&gt;

&lt;p&gt;Run curl:&lt;br/&gt;
curl -X PATCH --user admin:admin ${ODL_HOST}:8181/restconf/config/car:cars  -v -H &quot;Content-Type: application/yang.patch+json&quot; -H &quot;Accept: application/yang.patch-status+json&quot;  -d &apos;&lt;br/&gt;
{&lt;br/&gt;
  &quot;ietf-restconf:yang-patch&quot; : {&lt;br/&gt;
    &quot;patch-id&quot; : &quot;0&quot;,&lt;br/&gt;
    &quot;edit&quot; : [&lt;/p&gt;
     {
         &quot;edit-id&quot; : &quot;edit2&quot;,
         &quot;operation&quot; : &quot;delete&quot;,
         &quot;target&quot; : &quot;/car:car-entry[car:id=\&quot;1\&quot;]&quot;
     }
&lt;p&gt;    ]&lt;br/&gt;
  }&lt;br/&gt;
}&lt;br/&gt;
&apos;&lt;/p&gt;

&lt;p&gt;With no data in car:cars, returns 200 but outputs:&lt;br/&gt;
{&quot;ietf-yang-patch:yang-patch-status&quot;:{&quot;patch-id&quot;:&quot;0&quot;,&quot;errors&quot;:{&quot;error&quot;:[&lt;/p&gt;
{&quot;error-type&quot;:&quot;application&quot;,&quot;error-tag&quot;:&quot;operation-failed&quot;,&quot;error-message&quot;:&quot;Data did not pass validation.&quot;}
&lt;p&gt;]},&quot;edit-status&quot;:{&quot;edit&quot;:[&lt;/p&gt;
{&quot;edit-id&quot;:&quot;edit2&quot;,&quot;ok&quot;:[null]}
&lt;p&gt;]}}}&lt;/p&gt;

&lt;p&gt;This is probably the same issue reported as &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-429&quot; title=&quot;Status code for patch error response is not proper.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-429&quot;&gt;&lt;del&gt;NETCONF-429&lt;/del&gt;&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;However adding a car:&lt;br/&gt;
curl -v --user admin:admin $ODL_HOST:8181/restconf/config/car:cars/ -H &quot;Content-Type: application/yang.data+json&quot; -X PUT -d &apos;&lt;br/&gt;
{ &quot;cars&quot; :&lt;br/&gt;
   {&quot;car-entry&quot;: [&lt;/p&gt;
    {
     &quot;id&quot;: &quot;1&quot;,
     &quot;category&quot;: &quot;coupe&quot;,
     &quot;model&quot;: &quot;mustang&quot;,
     &quot;manufacturer&quot;: &quot;ford&quot;,
     &quot;year&quot;: &quot;2013&quot;
    }
&lt;p&gt;   ]&lt;br/&gt;
 }&lt;br/&gt;
}&lt;br/&gt;
&apos;&lt;/p&gt;

&lt;p&gt;And then executing PATCH delete operation multiple times will always result in status code 200 and output:&lt;br/&gt;
{&quot;ietf-yang-patch:yang-patch-status&quot;:{&quot;patch-id&quot;:&quot;0&quot;,&quot;ok&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;null&amp;#93;&lt;/span&gt;}}&lt;/p&gt;

&lt;p&gt;Expected behavior:&lt;br/&gt;
According to the RFC the first delete operation should succeed with 200, all subsequent delete operations must fail with status code 404.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21455">NETCONF-442</key>
            <summary>Deleting non existing data using PATCH should return 404</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tolvecky@frinx.io">Tomas Olvecky</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Jul 2017 11:19:44 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:43 +0000</updated>
                            <resolved>Wed, 9 Aug 2017 09:40:35 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="21442">NETCONF-429</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>8878</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=8878]]></customfieldvalue>

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

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