diff options
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | cobbler.spec | 2 | ||||
-rw-r--r-- | cobbler/item.py | 4 |
3 files changed, 7 insertions, 2 deletions
@@ -1,13 +1,14 @@ Cobbler CHANGELOG (all entries mdehaan@redhat.com unless noted otherwise) -* Fri Mar 04 2008 - 0.8.3 +* Tue Apr 08 2008 - 0.8.3 - Make createrepo get run for local cobbler reposync invocations as needed - fix WebUI documentation URL - fix bug in /etc/cobbler/modules.conf regarding pluggable authn/z - fix default flags for yumdownloader - fix for RHEL 4u6 DVD/tree import x86_64 arch detection - fix dnsmasq template to point at the correct hosts file +- force all names to be alphanumeric * Fri Feb 22 2008 - 0.8.2 - fix to webui to allow repos to be edited there on profile page diff --git a/cobbler.spec b/cobbler.spec index e34e0da..911399a 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -190,7 +190,7 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT %changelog -* Mon Mar 10 2008 Michael DeHaan <mdehaan@redhat.com> - 0.8.3-1 +* Tue Apr 08 2008 Michael DeHaan <mdehaan@redhat.com> - 0.8.3-1 - Upstream changes (see CHANGELOG) * Fri Mar 07 2008 Michael DeHaan <mdehaan@redhat.com> - 0.8.2-1 diff --git a/cobbler/item.py b/cobbler/item.py index dadcd23..db73820 100644 --- a/cobbler/item.py +++ b/cobbler/item.py @@ -114,6 +114,10 @@ class Item(serializable.Serializable): """ if self.name not in ["",None] and self.parent not in ["",None] and self.name == self.parent: raise CX(_("self parentage is weird")) + if type(name) != type(""): + raise CX(_("name must be a string")) + if not name.isalnum(): + raise CX(_("name must be alphanumeric")) self.name = name return True |