[pbs-devel] [PATCH proxmox-backup 6/6] ui: s3 client edit: allow for https scheme prefix in endpoint input
Christian Ebner
c.ebner at proxmox.com
Tue Jul 22 14:48:37 CEST 2025
Since S3 object store providers might show the endpoint via the https
scheme prefix, allow this as valid user input for the ui, but strip
it when sending the value.
This is to reduce friction for the user when copy/pasting the value.
Suggested-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
www/window/S3ClientEdit.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/window/S3ClientEdit.js b/www/window/S3ClientEdit.js
index 12d0b020d..6ebc8bfa8 100644
--- a/www/window/S3ClientEdit.js
+++ b/www/window/S3ClientEdit.js
@@ -130,6 +130,10 @@ Ext.define('PBS.window.S3ClientEdit', {
}
PBS.Utils.delete_if_default(values, 'path-style', false, me.isCreate);
+ let https_scheme_prefix = 'https://';
+ if (values.endpoint.startsWith(https_scheme_prefix)) {
+ values.endpoint = values.endpoint.slice(https_scheme_prefix.length);
+ }
if (values['access-key'] === '') {
delete values['access-key'];
}
--
2.47.2
More information about the pbs-devel
mailing list