From 7842d0c1d0df114e32ef99a89c50e17cb2d2b067 Mon Sep 17 00:00:00 2001 From: Csaky Date: Mon, 27 May 2024 16:14:59 -0700 Subject: [PATCH 1/3] Allow child bucket sub-path to contains forward slashes --- frontend/src/components/bucket/BucketChildConfig.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/bucket/BucketChildConfig.vue b/frontend/src/components/bucket/BucketChildConfig.vue index 7af9c654..23bae6f9 100644 --- a/frontend/src/components/bucket/BucketChildConfig.vue +++ b/frontend/src/components/bucket/BucketChildConfig.vue @@ -26,7 +26,7 @@ const schema = object({ bucketName: string().required().max(255).label('Folder display name'), subKey: string() .required() - .matches(/^[^/\\]+$/, 'Folder sub-path must not contain back or forward slashes') + .matches(/^[^\\]+$/, 'Folder sub-path must not contain back slashes') .label('Folder sub-path') }); From 32317f5845dd4a651ebb97590177a49020ccef65 Mon Sep 17 00:00:00 2001 From: Csaky Date: Wed, 29 May 2024 16:46:20 -0700 Subject: [PATCH 2/3] Update wordingf on bucket and child config forms --- .../components/bucket/BucketChildConfig.vue | 23 ++++++++++------ .../components/bucket/BucketConfigForm.vue | 26 +++++++++---------- frontend/src/components/form/TextInput.vue | 3 ++- frontend/src/views/list/ListObjectsView.vue | 1 - 4 files changed, 30 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/bucket/BucketChildConfig.vue b/frontend/src/components/bucket/BucketChildConfig.vue index 23bae6f9..69474532 100644 --- a/frontend/src/components/bucket/BucketChildConfig.vue +++ b/frontend/src/components/bucket/BucketChildConfig.vue @@ -26,8 +26,7 @@ const schema = object({ bucketName: string().required().max(255).label('Folder display name'), subKey: string() .required() - .matches(/^[^\\]+$/, 'Folder sub-path must not contain back slashes') - .label('Folder sub-path') + .matches(/^[^\\]+$/, { excludeEmptyString: true, message: 'Path must not contain backslashes' }) }); // Actions @@ -102,17 +101,20 @@ const onCancel = () => {