Hi,

this patch fixes ticket https://fedorahosted.org/freeipa/ticket/4163
maximum serial number field now accepts only positive numbers

Thanks
Adam
From dd364e2bc41446854be966d0a09bf7bcde60c663 Mon Sep 17 00:00:00 2001
From: Adam Misnyovszki <amisn...@redhat.com>
Date: Thu, 20 Feb 2014 15:48:28 +0100
Subject: [PATCH] Certificate search max_serial_number problem fixed

Maximum serial number field now accepts only positive numbers

https://fedorahosted.org/freeipa/ticket/4163
---
 ipalib/plugins/cert.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
index 762f13b0f07cb725efb97b15ab4a633d7dec22a8..936bd7a30936f55fddd10bc5f6f95c0fed490b47 100644
--- a/ipalib/plugins/cert.py
+++ b/ipalib/plugins/cert.py
@@ -654,6 +654,7 @@ class cert_find(Command):
         Int('max_serial_number?',
             doc=_("maximum serial number"),
             autofill=False,
+            minvalue=0,
             maxvalue=2147483647,
         ),
         Flag('exactly?',
-- 
1.8.5.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to