WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend: Disallow "/" in domain names

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Disallow "/" in domain names
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:26 -0800
Delivery-date: Wed, 03 Feb 2010 01:56:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265190302 0
# Node ID 2a775968c7a1614d9a799c44d7eec170340d573d
# Parent  39424ff0c91ce95993b83aff919f08710c5c6c1c
xend: Disallow "/" in domain names

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 39424ff0c91c -r 2a775968c7a1 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Feb 03 09:44:12 2010 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Feb 03 09:45:02 2010 +0000
@@ -3472,7 +3472,7 @@ class XendDomainInfo:
 
     def _checkName(self, name):
         """Check if a vm name is valid. Valid names contain alphabetic
-        characters, digits, or characters in '_-.:/+'.
+        characters, digits, or characters in '_-.:+'.
         The same name cannot be used for more than one vm at the same time.
 
         @param name: name
@@ -3483,7 +3483,7 @@ class XendDomainInfo:
         if name is None or name == '':
             raise VmError('Missing VM Name')
 
-        if not re.search(r'^[A-Za-z0-9_\-\.\:\/\+]+$', name):
+        if not re.search(r'^[A-Za-z0-9_\-\.\:\+]+$', name):
             raise VmError('Invalid VM Name')
 
         dom =  XendDomain.instance().domain_lookup_nr(name)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Disallow "/" in domain names, Xen patchbot-unstable <=