forked from openstack/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 500 in versioned writes with bad Destination
When this code lived in the proxy, it was protected by an "except HTTPException" clause in proxy.Application.handle_request(). When it moved to middleware, it lost that, and then things like constraints.check_name_format that raised HTTPException would cause 500s. The HTTPException would make it all the way out to catch_errors and get translated to a 500. This commit just wraps a couple try/excepts around the bits in versioned writes that can raise HTTPException. I tried to make it use wsgify so I could get that for free, but that wound up being a real pain because env/start_response are plumbed through pretty much the whole versioned-writes middleware. Closes-Bug: 1483705 Change-Id: Ife165bf709e64f313ed07c779b21914045e51f25
- Loading branch information
Showing
2 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters