Skip to content

Fix Gitlab::Geo::Replication::BaseTransfer for orphaned registries

What does this MR do?

The uploader attribute was introduced is only used to upload the file to Object Storage when the option to sync object storage is enabled.

The problem is that we're setting this value during the object initialization. It raises an error for orphaned records while building the uploader because the model is nil.

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

Merge request reports