Saving a user invokes a GET request for user avatar in object storage
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
I noticed this on staging. I suspect the User model is validating the avatar exists, but this seems odd:
irb(main):005:0> user.save
Sending HTTP get https://www.googleapis.com/storage/v1/b/gitlab-gstg-uploads/o/user%2Favatar%2F64248%2Fstanhu.jpg?
200
#<HTTP::Message:0x00007fc5bee51f38 @http_header=#<HTTP::Message::Headers:0x00007fc5bee51d30 @http_version="1.1", @body_size=0, @chunked=false, @request_method="GET", @request_uri=#<Addressable::URI:0x3fe2df735990 URI:https://www.googleapis.com/storage/v1/b/gitlab-gstg-uploads/o/user%2Favatar%2F64248%2Fstanhu.jpg?SNIP>
Success - #<Google::Apis::StorageV1::Object:0x00007fc5bf111570
<SNIP>
=> true
Edited by 🤖 GitLab Bot 🤖