NotFound exception is being thrown instead of PolicyNotAuthorized
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Testing a new use case for a policy approach, I was contantly receiving a NotFound response on trying to access a volume. I could see the volume on horizon's inteface but cannot access it through python-
cinder/
try:
except exception.
# raise VolumeNotFound instead to make sure Cinder behaves
# as it used to
raise exception.
return volume
I believe it's an grotesque error to throw an exception that points into a direction that isn't the cause of the failure just because it was what cinder did in the past. Debuggers got crazy searching for an error when what's indeed happening is a completely different thing.
Changed in cinder: | |
assignee: | nobody → Thiago Paiva Brito (thiagop) |
This is a) an established API b) A security feature that prevents probing for volume IDs. Probing was much more of a problem when we used integer IDs ratehr than UUIDs, but still, by design.