Closed gothub closed 3 years ago
The following request should return HTTP 404, but returns 202 instead:
curl -v -X GET "https://api.test.dataone.org:30443/bookkeeper/v1/quotas/10000" \ -H "Origin: https://avatar.nceas.ucsb.edu" \ -H "Authorization: Bearer $token" ... < HTTP/1.1 204 No Content < Server: nginx/1.19.0 < Date: Tue, 25 Aug 2020 21:29:13 GMT < Connection: keep-alive < Access-Control-Allow-Origin: https://avatar.nceas.ucsb.edu < Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE < Access-Control-Allow-Headers: Authorization, Content-Type, Origin, Cache-Control < Access-Control-Allow-Credentials: true
If the quota is found, the proper HTTP result is returned.
In addition, for QuotaResource.retrieve() perform an authorization check.
QuotaResource.retrieve()
An HTTP 404 status is returned if the requested quota is not found. Fixed in commit 9320122ea85b7ef4e9e8fc1e20dea0b05b0b12d8
The following request should return HTTP 404, but returns 202 instead:
If the quota is found, the proper HTTP result is returned.