stable

Clone or download

Read-only

feat(svn/el9): introduce ability to disable default permissions

This cannot be tested manually at the moment. This patch introduce the concept of repository that can have default permission or not as well as the consequences for generation of the default block. The cache mecanism is a sensitive part of the patch as it was introduced on larger platform with lot's of svn repositories and lot's of user groups with a lot's of users (yeah). We can no longer cache the whole default block, however it's still possible to cache the groups definition (once per project) as well as the "plugin override" as it's project based as well. Part of: request #31541 svn 1.10+ no longer supports duplicate sections Change-Id: I6f59046ae3dcc7b9f8d7d4d9b8c1dd22f4d385df

Modified Files

Name
M plugins/svn/include/SVN/AccessControl/AccessFileHistoryCreator.php +2 −2 Go to diff View file
M plugins/svn/include/SVN/Repository/CoreRepository.php +5 −0 Go to diff View file
M plugins/svn/include/SVN/Repository/RepositoryManager.php +1 −1 Go to diff View file
M plugins/svn/include/SVN/Repository/SvnRepository.php +17 −31 Go to diff View file
M plugins/svn/tests/unit/SVN/AccessFile/AccessFileHistoryCreatorTest.php +1 −2 Go to diff View file
M src/common/SVNCore/Repository.php +2 −0 Go to diff View file
A src/common/SVNCore/SVNAccessFileDefaultBlockForCache.php +34 −0 Go to diff View file
M src/common/SVNCore/SVNAccessFileDefaultBlockGenerator.php +17 −13 Go to diff View file
M src/common/SVNCore/SVNAccessFileDefaultBlockGeneratorInterface.php +1 −2 Go to diff View file
M src/common/SVNCore/SVNAccessFileReader.php +1 −1 Go to diff View file
A tests/unit/common/SVNCore/RepositoryStub.php +158 −0 Go to diff View file
M tests/unit/common/SVNCore/SVNAccessFileDefaultBlockGeneratorTest.php +88 −12 Go to diff View file
M tests/unit/common/SVNCore/SVNAccessFileReaderTest.php +2 −7 Go to diff View file