[CONTROLLER-562] Server returns 500 when trying to DELETE a non-existing resource Created: 19/Jun/14  Updated: 25/Jul/23  Due: 24/Jun/14  Resolved: 01/Jul/14

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Reinaldo Penno Assignee: Jozef Gloncak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1211

 Description   

DELETE is an idempotent method and therefore should always succeed. If resource is not there, return success, meaning it is still not there.

But today server returns internal server error

Example:

DELETE http://localhost:8080/restconf/config/service-function:service-functions/

HTTP Status 500 - Internal Server Error

type Status report

message Internal Server Error

description The server encountered an internal error that prevented it from fulfilling this request.



 Comments   
Comment by Jozef Gloncak [ 24/Jun/14 ]

patch set proposed
https://git.opendaylight.org/gerrit/#/c/8298/

if target specified for deletion doesn't exist then 204 HTTP response return code is returned.

Comment by Jozef Gloncak [ 25/Jun/14 ]

patch set 2 with incorporated remarks from Tony Tkacik was submitted

Comment by Jozef Gloncak [ 26/Jun/14 ]

patch set 3 proposed

Generated at Wed Feb 07 19:53:20 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.