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