Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
3cf237df
Commit
3cf237df
authored
10 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
set max argument length to 4000
parent
bf65b1f1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db_structure.xml
+1
-1
1 addition, 1 deletion
db_structure.xml
lib/private/backgroundjob/joblist.php
+1
-1
1 addition, 1 deletion
lib/private/backgroundjob/joblist.php
with
2 additions
and
2 deletions
db_structure.xml
+
1
−
1
View file @
3cf237df
...
@@ -979,7 +979,7 @@
...
@@ -979,7 +979,7 @@
<type>
text
</type>
<type>
text
</type>
<default></default>
<default></default>
<notnull>
true
</notnull>
<notnull>
true
</notnull>
<length>
2048
</length>
<length>
4000
</length>
</field>
</field>
<field>
<field>
...
...
This diff is collapsed.
Click to expand it.
lib/private/backgroundjob/joblist.php
+
1
−
1
View file @
3cf237df
...
@@ -57,7 +57,7 @@ class JobList implements IJobList {
...
@@ -57,7 +57,7 @@ class JobList implements IJobList {
$class
=
$job
;
$class
=
$job
;
}
}
$argument
=
json_encode
(
$argument
);
$argument
=
json_encode
(
$argument
);
if
(
strlen
(
$argument
)
>
2048
)
{
if
(
strlen
(
$argument
)
>
4000
)
{
throw
new
\InvalidArgumentException
(
'Background job arguments cant exceed 2048 characters (json encoded'
);
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)'
);
$query
=
$this
->
conn
->
prepare
(
'INSERT INTO `*PREFIX*jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment