diff --git a/dss/api/bundles/__init__.py b/dss/api/bundles/__init__.py index 50a4c0d9..0e4104e2 100644 --- a/dss/api/bundles/__init__.py +++ b/dss/api/bundles/__init__.py @@ -110,7 +110,7 @@ def get( elif presignedurls: handle = Config.get_blobstore_handle(_replica) file_version['url'] = handle.generate_presigned_GET_url( - _replica.checkout_bucket, + _replica.bucket, "{}/{}".format( get_dst_bundle_prefix(uuid, bundle_metadata[BundleMetadata.VERSION]), _file[BundleFileMetadata.NAME], diff --git a/dss/api/files.py b/dss/api/files.py index 8b150ba8..4801aed3 100644 --- a/dss/api/files.py +++ b/dss/api/files.py @@ -105,12 +105,12 @@ def get_helper(uuid: str, replica: Replica, version: str = None, token: str = No if content_disposition: # can tell a browser to treat the response link as a download rather than open a new tab response = redirect(handle.generate_presigned_GET_url( - replica.checkout_bucket, + replica.bucket, get_dst_key(blob_path), response_content_disposition=content_disposition)) else: response = redirect(handle.generate_presigned_GET_url( - replica.checkout_bucket, + replica.bucket, get_dst_key(blob_path))) else: with tracing.Subsegment('make_retry'):