Skip to content

Commit 9e2cb1f

Browse files
committed
Fix: curl manifest futilely includes external LungMAP files (#8027)
1 parent 90a582f commit 9e2cb1f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/azul/service/index_service.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,14 @@ def azul_file_url(self,
366366
if drs_uri is None:
367367
# To download a file we need its DRS URI
368368
return None
369+
elif (
370+
config.catalogs[self.catalog].atlas == 'lungmap'
371+
and drs_uri.startswith('drs://dg.4503:')
372+
):
373+
# Lungmap contains external files hosted on BioDataCatalyst.
374+
# Downloading these files requires authentication that can't be
375+
# provided by Azul, and our file URL fails with a 401.
376+
return None
369377
else:
370378
special_fields = self.metadata_plugin.special_fields
371379
return str(self.file_url_func(catalog=self.catalog,

0 commit comments

Comments
 (0)