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/09/15 22:00:48 UTC

[airavata-django-portal] branch master updated: AIRAVATA-3383 Fix creating the GATEWAY_DATA_STORE_REMOTE_API setting

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 84db898  AIRAVATA-3383 Fix creating the GATEWAY_DATA_STORE_REMOTE_API setting
84db898 is described below

commit 84db89883b45779744be9ff7c167a267f03dbcad
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Sep 15 18:00:31 2021 -0400

    AIRAVATA-3383 Fix creating the GATEWAY_DATA_STORE_REMOTE_API setting
---
 django_airavata/apps/auth/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_airavata/apps/auth/views.py b/django_airavata/apps/auth/views.py
index efbec52..977f604 100644
--- a/django_airavata/apps/auth/views.py
+++ b/django_airavata/apps/auth/views.py
@@ -637,7 +637,7 @@ def download_settings_local(request):
     if hasattr(settings, 'GATEWAY_DATA_STORE_REMOTE_API'):
         context['GATEWAY_DATA_STORE_REMOTE_API'] = settings.GATEWAY_DATA_STORE_REMOTE_API
     else:
-        context['GATEWAY_DATA_STORE_REMOTE_API'] = request.build_absolute_uri()
+        context['GATEWAY_DATA_STORE_REMOTE_API'] = request.build_absolute_uri("/")
     context['PROFILE_SERVICE_HOST'] = settings.PROFILE_SERVICE_HOST
     context['PROFILE_SERVICE_PORT'] = settings.PROFILE_SERVICE_PORT
     context['PROFILE_SERVICE_SECURE'] = settings.PROFILE_SERVICE_SECURE