[arvados-workbench2] created: 2.5.0-25-g3e7c9447
git repository hosting
git at public.arvados.org
Fri Feb 10 16:13:11 UTC 2023
at 3e7c94478e72347cfb36934004d7b5f3eb891b46 (commit)
commit 3e7c94478e72347cfb36934004d7b5f3eb891b46
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Fri Feb 10 11:12:13 2023 -0500
19294: Use c= URLs instead of by_id URLs when wildcard isn't available
Because by_id is currently read-only.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.test.tsx b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.test.tsx
index ec0a9c8a..d654f6ed 100644
--- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.test.tsx
+++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.test.tsx
@@ -64,7 +64,7 @@ describe('WebDavS3InfoDialog', () => {
);
// then
- expect(wrapper.text()).toContain("davs://bobby@download.example.com/by_id/zzzzz-4zz18-b1f8tbldjrm8885");
+ expect(wrapper.text()).toContain("davs://bobby@download.example.com/c=zzzzz-4zz18-b1f8tbldjrm8885");
});
it('render win/mac tab', () => {
@@ -79,7 +79,7 @@ describe('WebDavS3InfoDialog', () => {
);
// then
- expect(wrapper.text()).toContain("https://download.example.com/by_id/zzzzz-4zz18-b1f8tbldjrm8885");
+ expect(wrapper.text()).toContain("https://download.example.com/c=zzzzz-4zz18-b1f8tbldjrm8885");
});
it('render s3 tab with federated token', () => {
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 8e9edac1..a32044a7 100644
--- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx
+++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx
@@ -79,7 +79,7 @@ const mountainduckTemplate = ({
<key>Port</key>
<string>${(cyberDavStr.split(':')[2] || '443').split('/')[0]}</string>
<key>Username</key>
- <string>${username}</string>${isValidIpAddress(collectionsUrl.replace('https://', ``).split(':')[0])?
+ <string>${username}</string>${isValidIpAddress(collectionsUrl.replace('https://', ``).split(':')[0]) ?
`
<key>Path</key>
<string>/c=${uuid}</string>` : ''}
@@ -120,8 +120,8 @@ export const WebDavS3InfoDialog = compose(
} else {
winDav = new URL(props.data.downloadUrl);
cyberDav = new URL(props.data.downloadUrl);
- winDav.pathname = `/by_id/${props.data.uuid}`;
- cyberDav.pathname = `/by_id/${props.data.uuid}`;
+ winDav.pathname = `/c=${props.data.uuid}`;
+ cyberDav.pathname = `/c=${props.data.uuid}`;
}
cyberDav.username = props.data.username;
@@ -279,8 +279,8 @@ export const WebDavS3InfoDialog = compose(
</DetailsAttribute>
<p>
- Note: This curl command downloads single files.
- Append the desired filename to the end of the URL.
+ Note: This curl command downloads single files.
+ Append the desired filename to the end of the URL.
</p>
</TabPanel>
@@ -292,7 +292,7 @@ export const WebDavS3InfoDialog = compose(
color='primary'
onClick={props.closeDialog}>
Close
- </Button>
+ </Button>
</DialogActions>
</Dialog >;
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list