Skip to content

Ensure a valid mount_point is used by the AvatarUploader

Toon Claes requested to merge tc-fix-38088 into master

What does this MR do?

It seems some avatar uploads in the database have mount_point set to NULL. This made Geo failing to sync avatars to the secondary.

As a workaround, in the AvatarUploader we're setting mount_point to 'avatar' if it was not set.

Related issue: #38088 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Toon Claes

Merge request reports