[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit with huge log message

From: Senthil Kumaran S <senthil_at_collab.net>
Date: Tue, 11 Aug 2009 15:25:21 +0530

Senthil Kumaran S wrote:
> Also, the above shows that there is a limit for the size of log message, do
> anyone know what is the maximum size of log message that can be committed. If

Further look at this revealed that, this is not a limitation with subversion
per se, it is a limitation with apache (may be not a limitation but for good?)
which is obvious from the following run,

<snip>
$ svnadmin create repos1
$ svn co file:///tmp/repos1 wc
Checked out revision 0.
$ cd wc/
$ touch file1.txt
$ svn add file1.txt
A file1.txt
$ svn ci -F /tmp/log.txt
Adding file1.txt
Transmitting file data .
Committed revision 1.
</snip>

Over dav,
<snip>
$ svn co http://localhost/svn/repos1 wc-http
A wc-http/file1.txt
Checked out revision 1.
$ cd wc-http/
$ touch file2.txt
$ svn add file2.txt
A file2.txt
$ svn ci -F /tmp/log.txt
../subversion/svn/commit-cmd.c:142: (apr_err=20014)
../subversion/libsvn_client/commit.c:854: (apr_err=20014)
svn: Commit failed (details follow):
../subversion/libsvn_client/commit_util.c:1614: (apr_err=20014)
../subversion/libsvn_delta/path_driver.c:173: (apr_err=20014)
../subversion/libsvn_ra_serf/commit.c:1264: (apr_err=20014)
../subversion/libsvn_ra_serf/commit.c:762: (apr_err=20014)
../subversion/libsvn_ra_serf/util.c:568: (apr_err=20014)
svn: Error running context: Internal error
</snip>

Hmmm, that is probably a known issue ;) the default value for
"LimitXMLRequestBody" is 1 million bytes (approx 1mb), so obviously my commit
wont succeed.

Again the segfault for this in the case of serf is not acceptable and also the
irrelevant error message by neon should be improved.

Should we avoid this by getting this info via server capabilities (mod_dav_svn
can advertise this?) and error out before sending the entire log message xml?

-- 
Senthil Kumaran S
http://www.stylesen.org/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2382400
Received on 2009-08-11 11:55:54 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.