From 79d22f8341026450ba7ca564e24812c9351c7e70 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 21 Feb 2011 11:46:10 -0500 Subject: Set hard limit on number of commands in batch request to 256. ticket 984 --- ipalib/plugins/batch.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py index a5907791..5455340b 100644 --- a/ipalib/plugins/batch.py +++ b/ipalib/plugins/batch.py @@ -80,6 +80,8 @@ class batch(Command): def execute(self, *args, **options): results=[] + if len(args[0]) > 256: + raise errors.BatchRequestLimitError(limit=256) for arg in args[0]: try: a = arg['params'][0] -- cgit