From 39e6e12be3675a214c48e65fb4a63e9fa1cdf6c0 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Thu, 6 Oct 2022 10:26:43 +0200 Subject: [PATCH] caches: fixes the file-store backend to use serialized names for filename cache of vcsserver. Using ones with '/' would crash the backend --- rhodecode/lib/vcs/client_http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rhodecode/lib/vcs/client_http.py b/rhodecode/lib/vcs/client_http.py index ac562347..f3d9cbd4 100644 --- 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)