From 7b74d30632010c5e598aae7d22f44cd356f7aafb Mon Sep 17 00:00:00 2001 From: Matthew R Hanlon Date: Fri, 22 Jul 2016 16:01:43 -0500 Subject: [PATCH] with filePath='/', the underlying url has a '//' at the end, which causes Agave Files returns a 301. I don't think that this is correct (AH-95) but right now it's causing home dirs not to be created. For now, work around by setting filePath=''. --- designsafe/apps/auth/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designsafe/apps/auth/tasks.py b/designsafe/apps/auth/tasks.py index 04a4e18229..44bda7bc9c 100644 --- a/designsafe/apps/auth/tasks.py +++ b/designsafe/apps/auth/tasks.py @@ -20,7 +20,7 @@ def check_or_create_agave_home_dir(username): token=settings.AGAVE_SUPER_TOKEN) body = {'action': 'mkdir', 'path': username} ag.files.manage(systemId=settings.AGAVE_STORAGE_SYSTEM, - filePath='/', body=json.dumps(body)) + filePath='', body=body) # add dir to index fm = FileManager(agave_client=ag)