[pve-devel] [PATCH manager 1/1] fix: ui: trim OCI registry reference
Michael Köppl
m.koeppl at proxmox.com
Mon Nov 17 13:45:53 CET 2025
Trim the input such that an added space (e.g. from copying the URL from
a registry page) does not yield error "reference: value does not match
the regex pattern". Although true that the regex is then not matched,
this change avoids failing the validation due to an additional symbol
that can simply be trimmed.
Signed-off-by: Michael Köppl <m.koeppl at proxmox.com>
---
www/manager6/storage/TemplateView.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/storage/TemplateView.js b/www/manager6/storage/TemplateView.js
index 96313c1e5..207944585 100644
--- a/www/manager6/storage/TemplateView.js
+++ b/www/manager6/storage/TemplateView.js
@@ -216,7 +216,7 @@ Ext.define('PVE.storage.OciRegistryPull', {
let me = this;
let view = me.getView();
let refField = view.down('[name=reference]');
- let reference = refField.value;
+ let reference = refField.value.trim();
let tagField = view.down('[name=tag]');
Proxmox.Utils.API2Request({
--
2.47.3
More information about the pve-devel
mailing list