barbicanclient does not catch exceptions thrown by "secrets.payload" API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-barbicanclient |
In Progress
|
Undecided
|
Kiran Totad |
Bug Description
As per the barbican client documentation, the get secrets APIs will throw below wrapper exceptions for HTTP Errors:
barbicancli
barbicancli
barbicancli
But in the below code snippet, the HTTP errors from "secrets.payload" API are not catched and wrapped with barbicanclient exceptions.
.
.
secrets = barbican_
secret_payload = secrets.payload
.
.
Exception Trace for HTTP 500 :
=======
File "/root/
secrets.payload
File "/usr/lib/
self.
File "/usr/lib/
payload = self._api.
File "/usr/lib/
return self.request(path, 'GET', *args, **kwargs).content
File "/usr/lib/
resp = super(_HTTPClient, self).request(
File "/usr/lib/
return self.session.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
auth_headers = self.get_
File "/usr/lib/
return auth.get_
File "/usr/lib/
token = self.get_
File "/usr/lib/
return self.get_
File "/usr/lib/
self.auth_ref = self.get_
File "/usr/lib/
authenticat
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
raise exceptions.
InternalServerE
Changed in barbican: | |
assignee: | nobody → Mahesh D N (maheshd2) |
affects: | barbican → python-barbicanclient |
Changed in python-barbicanclient: | |
assignee: | Mahesh D N (maheshd2) → Kiran Totad (kiran-totad) |
Changed in python-barbicanclient: | |
assignee: | Kiran Totad (kiran-totad) → nobody |
Changed in python-barbicanclient: | |
assignee: | nobody → Kiran Totad (kiran-totad) |
In which condition did you get this error?