Clear Web UI session on 401 and keep API/Ingress errors as JSON.
Include the missing resource id in not-found messages, expire auth to Guest after 401, and document Ingress annotations so nginx does not rewrite 404/405 bodies into branded HTML.
This commit is contained in:
@@ -438,7 +438,7 @@ async def _handle_show(
|
||||
item_id,
|
||||
)
|
||||
if row is None:
|
||||
raise OpenStackError("NotFound", f"{op.resource_type} {item_id} not found", status_code=404)
|
||||
raise OpenStackError("NotFound", f"{op.resource_type} '{item_id}' not found", status_code=404)
|
||||
return JSONResponse(_fixture_or_item(op, _row_item(row)), status_code=op.status_code)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user