-
Bug
-
Resolution: Done
-
Medium
-
Frankfurt Release
-
None
According to Waqas Ikram (EST), the ETSI Catalog Manager returns 500 instead of 404 if subscription does not exist.
- Waqas Ikram (EST) found that the ESTI Catalog Manager returns 500 (internal server error) when subscription does not exist. The response code for this should be 404 (not found). Otherwise, it will mislead the response.
GET:
/app # curl -k -X GET http://modeling-etsicatalog.onap:8806/api/vnfpkgm/v1/subscriptions/4ff9a265-07e7-409e-93a6-3b2b84e6c8e7 -H "accept: application/json" -H
"Content-Type: application/json" -i
HTTP/1.1 500 Internal Server Error
Date: Tue, 18 Feb 2020 17:14:23 GMT
Server: WSGIServer/0.2 CPython/3.6.10
Content-Type: application/json
Allow: GET, DELETE, HEAD, OPTIONS
Connection: close
{"status":500,"detail":"Subscription with ID: 4ff9a265-07e7-409e-93a6-3b2b84e6c8e7 does not exists"}
DELETE:
/app # curl -k -X DELETE http://modeling-etsicatalog.onap:8806/api/vnfpkgm/v1/subscriptions/4ff9a265-07e7-409e-93a6-3b2b84e6c8e7 -H "accept: application/json"-H "Content-Type: application/json" -i
HTTP/1.1 500 Internal Server Error
Date: Tue, 18 Feb 2020 18:34:23 GMT
Server: WSGIServer/0.2 CPython/3.6.10
Content-Type: application/json
Allow: GET, DELETE, HEAD, OPTIONS
Connection: close
/app #