From ae74fbe701b68975217cfccee6701755cd9e2987 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Mon, 4 May 2026 17:01:42 +0200 Subject: [PATCH] fix (SandboxStore): find filepath from serviceName instead of URL to support loadbalancer --- .../WorkloadManagementSystem/Service/SandboxStoreHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py b/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py index 3da44167670..698cec900f0 100755 --- a/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py +++ b/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py @@ -366,8 +366,8 @@ def transfer_toClient(self, fileID, token, fileHelper): def _sendToClient(self, fileID, token, fileHelper=None, raw=False): credDict = self.getRemoteCredentials() - serviceURL = self.serviceInfoDict["URL"] - filePath = fileID.replace(serviceURL, "") + serviceName = self.serviceInfoDict["serviceName"] + filePath = fileID.split(serviceName)[1] # If the PFN starts with S3, we know it has been uploaded to the # S3 sandbox store, so download it from there before sending it