2008-09-16 18:58:53 |
Diogo Matsubara |
description |
As seen in OOPS-990S35 a ForbiddenAttribute was raised because the user didn't have the permission to set that distribution property.
This OOPS looks similar to bug 267888 so it seems that the appropriate response is to return a 400 - Bad Response
To reproduce:
>>> ubuntu = lp.distributions[0]
>>> ubuntu.active = False
>>> ubuntu.lp_save()
Exception type ForbiddenAttribute
Exception value ('active', <Distribution at 0x970a690>) |
As seen in OOPS-990S35 a ForbiddenAttribute was raised because the user didn't have the permission to set that distribution property.
This OOPS looks similar to bug 267888 and the appropriate response is to return a 401 (Unauthorized)
To reproduce:
>>> ubuntu = lp.distributions[0]
>>> ubuntu.active = False
>>> ubuntu.lp_save()
Exception type ForbiddenAttribute
Exception value ('active', <Distribution at 0x970a690>) |
|