From: Stephen Smith Date: Thu, 29 Jul 2021 15:07:14 +0000 (-0400) Subject: 17526: Remove redundant user/pass from webdav wget tab and add curl command X-Git-Tag: 2.3.0~12^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/41a579060898b29e6d50000e6f95c93d97a7a433 17526: Remove redundant user/pass from webdav wget tab and add curl command Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- 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}> + +