Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
530979e1
Commit
530979e1
authored
1 week ago
by
Marius Dumitru Florea
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-22886: Jetty 12+ docker image is actually still not supported in 16.4.x
parent
a3608efb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/WEB-INF/jetty-ee8-web.xml
+39
-0
39 additions, 0 deletions
...latform-web-war/src/main/webapp/WEB-INF/jetty-ee8-web.xml
with
39 additions
and
0 deletions
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/WEB-INF/jetty-ee8-web.xml
0 → 100644
+
39
−
0
View file @
530979e1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_0.dtd">
<!--
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<Configure
class=
"org.eclipse.jetty.ee8.webapp.WebAppContext"
>
<!-- In order to avoid getting a "java.lang.IllegalStateException: Form too large" error when editing large page in
XWiki we need to tell Jetty to allow for large content since by default it only allows for 20K. We do this by
passing the "org.eclipse.jetty.server.Request.maxFormContentSize" attribute.
Note 1: Setting this value too high can leave your server vulnerable to denial of service attacks.
Note 2: We're setting it here instead of in Jetty's XML configuration files so that the XWiki WAR can be used
in any Jetty config and work out of the box.
-->
<Set
name=
"maxFormContentSize"
>
1000000
</Set>
<!-- Increasing the maxFormKeys in order to be able to import correctly a full wiki (more than 1000 pages in 11.10).
The import should be fixed at a point to allow importing everything without creating a form with a field by
page. Once done this configuration can be removed. See https://jira.xwiki.org/browse/XWIKI-11597 for a follow
up.
-->
<Set
name=
"maxFormKeys"
>
2000
</Set>
</Configure>
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