17526: Remove filename placeholder from webdav dialog curl command 17526-3rd-party-access-ui
authorStephen Smith <stephen@curii.com>
Mon, 2 Aug 2021 16:38:59 +0000 (12:38 -0400)
committerStephen Smith <stephen@curii.com>
Mon, 2 Aug 2021 16:38:59 +0000 (12:38 -0400)
Also add a note to add filenames at the end of the curl URL

Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx

index 49283813eade8b7c09b0a5aaf6b43b29bebf556a..8e9edac11accccfe710877b44c30ab4400c87e45 100644 (file)
@@ -148,7 +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()}<FILENAME>`;
+        const curlCommand = `curl -O -u ${props.data.username}:${props.data.token} ${winDav.toString()}`;
 
         return <Dialog
             open={props.open}
@@ -228,7 +228,7 @@ export const WebDavS3InfoDialog = compose(
                         Download Cyber/Mountain Duck bookmark
                     </Button>
 
-                    <h3>Gnome</h3>
+                    <h3>GNOME</h3>
                     <ol>
                         <li>Open Files</li>
                         <li>Select +Other Locations</li>
@@ -278,6 +278,11 @@ export const WebDavS3InfoDialog = compose(
                             lines={[curlCommand]} />
                     </DetailsAttribute>
 
+                    <p>
+                      Note: This curl command downloads single files.
+                      Append the desired filename to the end of the URL.
+                    </p>
+
                 </TabPanel>
 
             </div>