UploadLinkFilter may not work with hashed storage
From: https://gitlab.com/gitlab-com/infrastructure/issues/2821#note_47684308
In %10.0 we introduced "hashed storage". When enabled, rather than storing projects on disk in a location determined by project.full_path, they are now stored in @hashed/aa/bb/full-hash. The hash is generated by SHAing the project ID.
The use of full_path
needs to be re-evaluated and tested.
This is related to https://gitlab.com/gitlab-org/gitlab-ce/issues/40280.
# Need to check this doesn't fall through to disk
lib/banzai/filter/upload_link_filter.rb:32: File.join(Gitlab::Geo.primary_node.url, project.full_path, uri)
lib/banzai/filter/upload_link_filter.rb:34: File.join(Gitlab.config.gitlab.url, project.full_path, uri)