Hello,

We've noticed a bug in the Proxmox API - it is possible to create a storage with a dot "." in it, but once created, it is not possible to set ACLs on it.

Please find a patch to correct this problem.

Thank you in advance.

Jort

--
Jort Bloem

Technical Engineer - Auckland
Business Technology Group LTD

p: +64 9 580 1374 x9884
m: +64 21 326 000
e: jort.bl...@btg.co.nz

>From 2b2974bff5e86690fdfe1d31e854590b0a2a8826 Mon Sep 17 00:00:00 2001
From: Jort Bloem <jort.bl...@btg.co.nz>
Date: Tue, 26 Nov 2013 15:41:32 +1300
Subject: [PATCH] Allow changes of access control to storages with a dot in
 them.

Signed-off-by: Jort Bloem <jort.bl...@btg.co.nz>
---
 PVE/AccessControl.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
index 236efac..874dc50 100644
--- a/PVE/AccessControl.pm
+++ b/PVE/AccessControl.pm
@@ -543,7 +543,7 @@ sub normalize_path {
 
     $path = "/$path" if $path !~ m|^/|;
 
-    return undef if $path !~ m|^[[:alnum:]\-\_\/]+$|;
+    return undef if $path !~ m|^[[:alnum:]\-\_\/\.]+$|;
 
     return $path;
 } 
-- 
1.8.3.2

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to