Tim Burke f5e422eb78 s3api: Improve checksum-mismatch detection
Previously, we relied on raising a swob.HTTPException from within a
wrapped wsgi.input and just hoping that it either

- comes uncaught all the way back through the pipeline, or at least
- gets translated back to a 422 response.

This was brittle, however; if any middleware between s3api and the
proxy took s3api's approach of turning unexpected responses into 500s,
for example, it all breaks down.

Take a cue from eventlet's Timeout and create a new s3api-specific
BaseException (which does *not* inherit from Exception) to improve
our ability to cut through all the layers.

Change-Id: I9924ff3b8d7d246631fe61b916823e028e2c01f2
2024-04-01 20:21:32 +00:00
..
2024-02-07 15:48:39 -08:00
2010-07-12 17:03:45 -05:00
2024-02-07 15:48:39 -08:00
2018-03-13 12:06:07 +00:00
2022-02-10 11:17:06 -08:00
2017-11-07 15:39:25 +11:00