stable

Clone or download

Read-only

Check size of committed files

When the threshold is not configured, one can commit anything. When the threshold is set, the files can no longer be bigger than the limit. This applies both on existing and new files. (ie if file was bigger than the limit it can no longer be modified). Log errors for admins. Part of story #19285 limit the max size of files in svn Change-Id: Ieef41b858f329899c6af04fc8a901d7c37159fe9

Modified Files

Name
M plugins/svn/bin/svn_pre_commit.php +12 −5 Go to diff View file
A plugins/svn/include/SVN/Commit/CommittedFileTooLargeException.php +32 −0 Go to diff View file
A plugins/svn/include/SVN/Commit/FileSizeValidator.php +89 −0 Go to diff View file
M plugins/svn/include/SVN/Commit/Svnlook.php +11 −0 Go to diff View file
M plugins/svn/include/svnPlugin.php +8 −0 Go to diff View file
A plugins/svn/tests/integration/SVN/Commit/SvnlookTest.php +79 −0 Go to diff View file
A plugins/svn/tests/integration/SVN/Commit/_fixtures/pre-commit.php +41 −0 Go to diff View file
A plugins/svn/tests/unit/SVN/Commit/FileSizeValidatorTest.php +120 −0 Go to diff View file