uploading user avatar recieve error 411
Summary
Trying to set user new avatar pic, recieving error 500
in the logs i get error 411 (Summarize the bug encountered concisely)
Steps to reproduce
Goint to user account settings uploading an image less than 200KB applying profile settings
(How one can reproduce the issue - this is very important)
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)
What is the current bug behavior?
Request failed with status code 500
What is the expected correct behavior?
image beeing successfully uploaded
Relevant logs and/or screenshots
Excon::Error::LengthRequired (Expected(200) <=> Actual(411 Length Required)
excon.error.response
:body => "<?xml version='1.0' encoding='UTF-8'?>\n<Error>\n <Code>MissingContentLength</Code>\n <Message>You must provide the Content-Length HTTP header.</Message>\n <RequestId>xxx</RequestId>\n <HostId>xxx</HostId>\n</Error>\n\n"
:cookies => [
]
:headers => {
"Cache-Control" => "no-cache,no-store,must-revalidate"
"Content-Security-Policy" => "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'self'; frame-ancestors 'self';"
"Content-Type" => "application/xml;charset=UTF-8"
"Date" => "Thu, 20 Feb 2020 05:07:42 GMT"
"Expires" => "Thu, 01 Jan 1970 00:00:00 GMT"
"Pragma" => "no-cache"
"Strict-Transport-Security" => "max-age=31536000; includeSubDomains"
"X-Content-Type-Options" => "nosniff"
"X-DNS-Prefetch-Control" => "off"
"X-Download-Options" => "noopen"
"X-Frame-Options" => "SAMEORIGIN"
"X-XSS-Protection" => "1; mode=block"
}
:host => "xxx.xxx.xxx.xxx"
:local_address => "xxx.xxx.xxx.xxx"
:local_port => 58862
:path => "/user/avatar/9/avatar.png"
:port => 443
:reason_phrase => "Length Required"
:remote_ip => "xxx.xxx.xxx.xxx"
:status => 411
:status_line => "HTTP/1.1 411 Length Required\r\n"
):
Results of GitLab environment info
this is an on premise environment
Gitlab version 12.7.5-ee
running on k8s 1.15.5 - installed with helm chart
s3 bucket we are using is a on premise hitachi content platform
Results of GitLab application Check
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)