summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-10-13 19:45:27 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-10-13 19:45:27 +0200
commitc6a4c9231e983f2bd5f0c2115a5c9c16fd18bfb2 (patch)
treead6b6a362c8f4342244e0123a3219e3c44785ebc /lib/api/files.rb
parent4127b357881fedbf903159e089cc0c9d99c37eff (diff)
downloadgitlab-ce-c6a4c9231e983f2bd5f0c2115a5c9c16fd18bfb2.tar.gz
Use InvalidUTF8ErrorHandler only for rails 4
In Rails 5 catches invalid UTF8 characters in querystring in a params middleware, errors are handled by a params middleware and raises a BadRequest exception. This means that these UTF8 errors are not raised deeper in application stack and these can't also be handled on application level. If we would want to have custom handler for these errors, we would have to create a new middleware and insert it before actionpack's params middleware and rescue BadRequest exceptions there. But there is no need to do this currently (see discussion on https://gitlab.com/gitlab-org/gitlab-ce/issues/51908)
Diffstat (limited to 'lib/api/files.rb')
0 files changed, 0 insertions, 0 deletions