Skip to content

Commit

Permalink
Merge pull request rucio#4160 from mlassnig/patch-4159-clean_urls_for…
Browse files Browse the repository at this point in the history
…_aws

Clean URLs for AWS; Fix rucio#4159
  • Loading branch information
bari12 committed Nov 26, 2020
2 parents 6450345 + 5527a92 commit 28bf965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rucio/common/utils.py
Expand Up @@ -667,6 +667,8 @@ def clean_surls(surls):
surl = re.sub('/srm/managerv2\?SFN=', '', surl) # NOQA: W605
if surl.startswith('https://storage.googleapis.com'):
surl = surl.split('?GoogleAccessId')[0]
if '?X-Amz' in surl:
surl = surl.split('?X-Amz')[0]
res.append(surl)
res.sort()
return res
Expand Down

0 comments on commit 28bf965

Please sign in to comment.