# HG changeset patch # User RhodeCode Admin # Date 2022-10-06 08:26:43 # Node ID 428559950151b8fd87d79cec14d4cf910fc64611 # Parent c2cdde730d13085cd7305c643705d465f44f7b01 caches: fixes the file-store backend to use serialized names for filename cache of vcsserver. Using ones with '/' would crash the backend diff --git a/rhodecode/lib/vcs/client_http.py b/rhodecode/lib/vcs/client_http.py --- a/rhodecode/lib/vcs/client_http.py +++ b/rhodecode/lib/vcs/client_http.py @@ -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)