Comment 0 for bug 1915119

Revision history for this message
YaoYudie (yaoyudie) wrote :

according to SOL013 v2.6.1 (clause 6.4 Common error situations), the API should return:
400 Bad Request: If the request contains a malformed access token, the API producer should respond with this response.
However, the API returns with http code 401

operation log:
root@ubuntu:~# curl -i -X GET http://172.22.39.3:9890/vnfpkgm/v1/vnf_packages -H "Content-type: application/json" -H "Authorization:$OS_AUTH_TOKEN"
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Content-Length: 114
Www-Authenticate: Keystone uri="http://172.22.39.3/identity"
X-Openstack-Request-Id: req-5d6913a0-31e3-4177-8e71-9ef1cb4732ef
Date: Tue, 09 Feb 2021 07:15:14 GMT

{"error": {"code": 401, "title": "Unauthorized", "message": "The request you have made requires authentication."}}root@ubuntu:~#