caches: fixes the file-store backend to use serialized names for filename cache of vcsserver.

Using ones with '/' would crash the backend
This commit is contained in:
RhodeCode Admin 2022-10-06 10:26:43 +02:00
parent 127da865d6
commit 39e6e12be3

View file

@ -185,8 +185,9 @@ class RemoteRepo(object):
self.url = remote_maker.url
self.stream_url = remote_maker.stream_url
self._session = remote_maker._session_factory()
cache_repo_id = self._repo_id_sanitizer(repo_id)
self._cache_region, self._cache_namespace = \
remote_maker.init_cache_region(self._repo_id_sanitizer(repo_id))
remote_maker.init_cache_region(self._repo_id_sanitizer(cache_repo_id))
with_wire = with_wire or {}
@ -194,6 +195,7 @@ class RemoteRepo(object):
self._wire = {
"path": path, # repo path
"repo_id": repo_id,
"cache_repo_id": cache_repo_id,
"config": config,
"repo_state_uid": repo_state_uid,
"context": self._create_vcs_cache_context(path, repo_state_uid)