From 517ced19c6af36d0ecbb0c3475d469d777ad11a9 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Mon, 17 Jul 2023 17:41:52 +0200 Subject: [PATCH] new taskdef for multipart/form-data --- templates/create_vre_folder_for_context.json.j2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/create_vre_folder_for_context.json.j2 b/templates/create_vre_folder_for_context.json.j2 index 6e526ba..0c14fbe 100644 --- a/templates/create_vre_folder_for_context.json.j2 +++ b/templates/create_vre_folder_for_context.json.j2 @@ -13,7 +13,7 @@ "base_url": "https://url.gcube.d4science.org/", "keycloak": "{{ keycloak }}/{{ keycloak_realm }}", "keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}", - "storagehub" : "{{ storagehub }}", + "storagehub" : "{{ storagehub }}/workspace", "ctx": "${workflow.input.context}", "scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))} if(e($.ctx)) throw('Context must not be empty'); return { shubified_context_name : ($.ctx[0] === '%' ? $.ctx.replace('%2F', '') : $.ctx).split('%2F').join('-') }" }, @@ -58,9 +58,12 @@ "Content-Type": "multipart/form-data" }, "body": { - "accessType": "WRITE_OWN", - "folderOwner": "orchestrator", - "group": "${init.output.result.shubified_context_name}" + "accessType": [ + "WRITE_OWNER", + "application/json" + ], + "group": "${init.output.result.shubified_context_name}", + "folderOwner": "leonardo.candela" } }, "type": "SIMPLE",