aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-10 17:34:54 +0000
committerLin Jen-Shin <godfat@godfat.org>2017-03-10 17:34:54 +0000
commite63fb2407a1dd5de1bfe8d4d8b1976ce51022f0c (patch)
tree429ef67efcb58e772d73564d4a05d91ef9afd79f /actionpack/CHANGELOG.md
parentc8c1460f7a97c15dff641a30e63914991d407595 (diff)
downloadrails-e63fb2407a1dd5de1bfe8d4d8b1976ce51022f0c.tar.gz
rails-e63fb2407a1dd5de1bfe8d4d8b1976ce51022f0c.tar.bz2
rails-e63fb2407a1dd5de1bfe8d4d8b1976ce51022f0c.zip
Make sure local cache cleared even it's throwing:
We (GitLab) hit into an issue that somewhere in the middleware chain was throwing `:warden`, which was caught in the wrapping middleware, but `LocalCache::Middleware` was not aware of it. It should look like: ``` ruby result = catch(:warden) do @app.call(env) end ``` Source: https://github.com/hassox/warden/blob/090ed153dbd2f5bf4a1ca672b3018877e21223a4/lib/warden/manager.rb#L35-L37 Using `ensure` could make sure that we would always do the cleanup, and better yet, avoid `rescue Exception` which we all should know that could cause some issues which could be very hard to debug. Please check the discussion thread for more context: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1402#note_25128108
Diffstat (limited to 'actionpack/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions