After importing a project that does not use the default SVN permission (and redefine a [/]
section), the generated SVN access file is like:
# BEGIN CODENDI DEFAULT SETTINGS - DO NOT REMOVE
[groups]
[/]
* =
@members = rw
# END CODENDI DEFAULT SETTINGS
[/]
* =
@members = r
Which is not a valid file.
Here, the source project has deactivated the Use default permissions
option to replace permissions by the custom definition:
[/]
* =
@members = r
Steps to reproduce:
As a project administrator,
- On a project using an SVN repository, goto the SVN repository 'Access control' tab
- Uncheck the option 'Use default permissions'
- Set new custom permissions
- Save a new version of the permission
As a site admin,
- Export this project using src/utils/php-launcher.sh src/utils/export_project_xml.php
- Import this archive on a new instance using tuleap import-project-xml
- Check the content of the file /var/lib/tuleap/svn_plugin/<project_id>/<repo_name>/.SVNAccessFile
Note: The file src/common/xml/resources/project/svn-definition.rng
does not seem to support the option 'Default permissions'.