Setting a user avatar from administration panel leads to 404 page
Created by: jtreml
Entering the administration panel of GitLab when editing a user and trying to upload an avatar, it fails with a 404 error.
Production log:
Processing by Admin::UsersController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxxxxxxxxxxxxxxxx", "user"=>{"name"=>"xxxxxx", "username"=>"xxxxxx", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "projects_limit"=>"0", "can_create_group"=>"0", "admin"=>"0", "avatar"=>#<ActionDispatch::Http::UploadedFile:0xe39a0e0 @tempfile=#<File:/tmp/RackMultipart20140710-29667-17wwta8>, @original_filename="xxx.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"user[avatar]\"; filename=\"xxx.png\"\r\nContent-Type: image/png\r\n">, "skype"=>"", "linkedin"=>"", "twitter"=>"", "website_url"=>""}, "id"=>"xxxxxx/edit"}
ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
app/controllers/admin/users_controller.rb:106:in `user'