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-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new f30958b  AIRAVATA-3460 Pass path as query param to handle full 
resource path paths when creating a directory
f30958b is described below

commit f30958b5122818028da366a978cb2e92383838be
Author: Marcus Christie <[email protected]>
AuthorDate: Thu Jul 15 16:13:31 2021 -0400

    AIRAVATA-3460 Pass path as query param to handle full resource path paths 
when creating a directory
---
 airavata_django_portal_sdk/user_storage/api.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/airavata_django_portal_sdk/user_storage/api.py 
b/airavata_django_portal_sdk/user_storage/api.py
index 6ee7d69..368019a 100644
--- a/airavata_django_portal_sdk/user_storage/api.py
+++ b/airavata_django_portal_sdk/user_storage/api.py
@@ -276,9 +276,8 @@ def dir_exists(request, path, storage_resource_id=None, 
experiment_id=None):
     "Return True if path exists in user's data store."
     if _is_remote_api():
         resp = _call_remote_api(request,
-                                "/user-storage/~/{path}",
-                                path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                "/user-storage/~/",
+                                params={"path": path, "experiment-id": 
experiment_id},
                                 raise_for_status=False)
         if resp.status_code == HTTPStatus.NOT_FOUND:
             return False
@@ -502,9 +501,8 @@ def listdir(request, path, storage_resource_id=None, 
experiment_id=None):
 
     if _is_remote_api():
         resp = _call_remote_api(request,
-                                "/user-storage/~/{path}",
-                                path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                "/user-storage/~/",
+                                params={"path": path, "experiment-id": 
experiment_id},
                                 )
         data = resp.json()
         for directory in data['directories']:

Reply via email to