Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7921905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:45:36+00:00 2026-06-03T16:45:36+00:00

Tomcat Error 403 the request body was too large to be cashed during authentication

  • 0

Tomcat Error 403 the request body was too large to be cashed during authentication process

Its related to maxSavePostSize setting its currently default which is 4096 (4KB). In googling people suggest -1 (unrestricted). Does that means it could be subject of DOS attack? What you suggest?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:45:37+00:00Added an answer on June 3, 2026 at 4:45 pm

    Setting maxSavePostSize to -1 on a Tomcat instance that is accessible by untrusted users would be a monumentally stupid thing to do because – as you correctly suspect – it would open up the server to a DoS attack.

    This setting is only used when POST’d content needs to be saved during authentication. i.e. when an unauthenticated user POST’s a request to a resource protected by FORM or CLIENT-CERT authentication.

    There are a couple of solutions:
    a) Structure your application in such a way that users are always authenticated before they are able to access pages that trigger POSTs
    b) Increase the maxSavePostSize to the largest POST you expect you application to have to handle. If that is much larger than 4k then you may still be vulnerable to a DoS.

    BTW, make sure you aren’t confusing this setting with maxPostSize.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I use mvn tomcat:deploy of tomcat-maven-plugin there is a 403 error: Failed to
I'm getting this error when trying to access my webservice running inside tomcat. Caused
What causes the FAIL - Deploy Upload Failed, Exception: null error message in tomcat?
In Tomcat, I wrote a ServletContextListener which will start an ExecutorService during startup and
There are load balanced tomcat web servers. Every request could be served by different
I deployed on Tomcat Axis2 and OpenEjb and got the error. If deploy either
I am trying to deploy and run my webapplication using maven and its tomcat
I have a Tomcat problem, i get this error everytime i try to setup
I would like to use Tomcat's error-page directive to display various different error pages
While running my tomcat the following error is coming . The BASEDIR environment variable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.