From 41a579060898b29e6d50000e6f95c93d97a7a433 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 29 Jul 2021 11:07:14 -0400 Subject: [PATCH] 17526: Remove redundant user/pass from webdav wget tab and add curl command Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .../webdav-s3-dialog/webdav-s3-dialog.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx index 7255e756..49283813 100644 --- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx +++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx @@ -148,6 +148,7 @@ export const WebDavS3InfoDialog = compose( } const wgetCommand = `wget --http-user=${props.data.username} --http-passwd=${props.data.token} --mirror --no-parent --no-host --cut-dirs=0 ${winDav.toString()}`; + const curlCommand = `curl -O -u ${props.data.username}:${props.data.token} ${winDav.toString()}`; return - - + label='Curl command' + copyValue={curlCommand} + classValue={props.classes.detailsAttrValWithCode}> + + -- 2.30.2