You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/05/24 21:26:52 UTC

[airavata-django-portal-sdk] branch mft-integration updated: AIRAVATA-3420 backwards compatible /api/download

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch mft-integration
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git


The following commit(s) were added to refs/heads/mft-integration by this push:
     new 7cb087c  AIRAVATA-3420 backwards compatible /api/download
7cb087c is described below

commit 7cb087cb2e660dad9c228f9011085c1a042df157
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon May 24 17:26:40 2021 -0400

    AIRAVATA-3420 backwards compatible /api/download
---
 airavata_django_portal_sdk/user_storage/api.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/airavata_django_portal_sdk/user_storage/api.py b/airavata_django_portal_sdk/user_storage/api.py
index eaae583..d102bdb 100644
--- a/airavata_django_portal_sdk/user_storage/api.py
+++ b/airavata_django_portal_sdk/user_storage/api.py
@@ -223,7 +223,9 @@ def open_file(request, data_product=None, data_product_uri=None):
             request,
             "/download",
             params={'data-product-uri': data_product.productUri},
-            base_url="/sdk")
+            # TODO: once /sdk/download is integrated with airavata-django-portal, this can be updated to
+            # base_url="/sdk"
+            base_url="/api")
         file = io.BytesIO(resp.content)
         disposition = resp.headers['Content-Disposition']
         disp_value, disp_params = cgi.parse_header(disposition)