Thursday, October 16, 2008

Error "XML request body is larger than the configured limit of 1000000" -- Subversion 1.5, Apache 2.0 and LimitXMLRequestBody 0

Recently, I started getting this error when doing Subversion "update" on a large folder in my repository called "branches"

XML request body is larger than the configured limit of 1000000

This is following up Subversion 1.5.2 upgrade and is occurring in Apache 2.0

The fix, for me, was to remove the limit on the XML request body by setting the following:

LimitXMLRequestBody 0

and the error was fixed.  Limit XML Request Body should not be set to 0 for public web servers, as that will open you up to Denial of Service (DoS) attacks, however, my SVN system is private to my development team and this setting was appropriate for my deployment.

Host Name:                 *** SUBVERSION SERVER ***
OS Name:                   Microsoft(R) Windows(R) Server 2003, Standard Edition
OS Version:                5.2.3790 Service Pack 1 Build 3790
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Distributed Computing
Original Install Date:     8/4/2005, 2:50:21 PM
System Up Time:            225 Days, 13 Hours, 26 Minutes, 37 Seconds
System Manufacturer:       HP
System Model:              ProLiant DL380 G4
System Type:               X86-based PC
Processor(s):              2 Processor(s) Installed.
                           [01]: x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3400 Mhz
                           [02]: x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3400 Mhz
Input Locale:              en-us;English (United States)
Time Zone:                 (GMT-05:00) Eastern Time (US & Canada)
Total Physical Memory:     2,047 MB
Available Physical Memory: 295 MB
Page File: Max Size:       876 MB
Page File: Available:      1,606 MB


No comments: