stable

Clone or download

Read-only

request #24173: Enforce the size when manipulating the SVN immutable tags paths and allow list

This contribution makes sure we cannot try to submit a massive list of paths that would be truncated by the DB (those lists are stored as TEXT). We had some examples of massive lists where the max size of the underlying storage might be reached at some point. Change-Id: I53e2fc112f35bc87fb26af7272ba3f0b5c1472c6

Modified Files

Name
M plugins/svn/include/REST/v1/RepositoryResource.php +5 −0 Go to diff View file
M plugins/svn/include/REST/v1/RepositoryResourceUpdater.php +4 −0 Go to diff View file
M plugins/svn/include/SVN/Admin/ImmutableTagCreator.php +21 −2 Go to diff View file
A plugins/svn/include/SVN/Admin/ImmutableTagListTooBigException.php +31 −0 Go to diff View file
M plugins/svn/include/SVN/Repository/RepositoryCreator.php +8 −0 Go to diff View file
M plugins/svn/templates/admin/immutable_tag.mustache +2 −0 Go to diff View file
M plugins/svn/tests/rest/SVN/RepositoryTest.php +25 −0 Go to diff View file
A plugins/svn/tests/unit/SVN/Admin/ImmutableTagCreatorTest.php +66 −0 Go to diff View file