]> source.dussan.org Git - nextcloud-server.git/commitdiff
set max argument length to 4000
authorRobin Appelman <icewind@owncloud.com>
Mon, 23 Feb 2015 17:07:13 +0000 (18:07 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 25 Feb 2015 14:09:41 +0000 (15:09 +0100)
db_structure.xml
lib/private/backgroundjob/joblist.php

index 9f8cfdce4c56dab7d6401451576e817b194dd7fc..142661ba4276bc513445f59e03f41721e6d796ca 100644 (file)
                                <type>text</type>
                                <default></default>
                                <notnull>true</notnull>
-                               <length>2048</length>
+                               <length>4000</length>
                        </field>
 
                        <field>
index 95a7b1258010af913356fa94e0ec9a79e0c57010..ded269dfe59e2316fadb3325f3e0d5cd5b43eae2 100644 (file)
@@ -57,7 +57,7 @@ class JobList implements IJobList {
                                $class = $job;
                        }
                        $argument = json_encode($argument);
-                       if (strlen($argument) > 2048) {
+                       if (strlen($argument) > 4000) {
                                throw new \InvalidArgumentException('Background job arguments cant exceed 2048 characters (json encoded');
                        }
                        $query = $this->conn->prepare('INSERT INTO `*PREFIX*jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)');