Skip to content

Commit 6b616b1

Browse files
committed
feat: storm case
1 parent 8bc3290 commit 6b616b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/DIRAC/DataManagementSystem/Client/FTS3Job.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import datetime
44
import errno
5+
import os
56
from packaging.version import Version
67

78
from cachetools import cachedmethod, LRUCache
@@ -542,7 +543,14 @@ def _constructTransferJob(self, pinTime, allLFNs, target_spacetoken, protocols=N
542543
dstTokenPath = res["Value"]
543544
res = self._getIdpClient(self.userGroup).fetchToken(
544545
grant_type="client_credentials",
545-
scope=[f"storage.modify:/{dstTokenPath}", f"storage.read:/{dstTokenPath}", "offline_access"],
546+
scope=[
547+
f"storage.modify:/{dstTokenPath}",
548+
f"storage.read:/{dstTokenPath}",
549+
# Needed because CNAF
550+
# https://ggus.eu/index.php?mode=ticket_info&ticket_id=165048
551+
f"storage.read:/{os.path.dirname(dstTokenPath)}",
552+
"offline_access",
553+
],
546554
# TODO: add a specific audience
547555
)
548556
if not res["OK"]:

0 commit comments

Comments
 (0)