stable

Clone or download

Read-only

feat: Check archive does not contain data

Before importing an uploaded archive, we must ensure that it does not contain any data. We want to import a template, not a whole project. Part of story #36484 create a new project from an XML template Change-Id: I6b3c685d815d33d1739481c0276b638f9b1e5d1d

Modified Files

Name
M plugins/agiledashboard/include/agiledashboardPlugin.php +13 −0 Go to diff View file
M plugins/agiledashboard/site-content/fr_FR/LC_MESSAGES/tuleap-agiledashboard.po +3 −0 Go to diff View file
M plugins/agiledashboard/site-content/pt_BR/LC_MESSAGES/tuleap-agiledashboard.po +3 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.php +13 −0 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +5 −2 Go to diff View file
M plugins/docman/site-content/pt_BR/LC_MESSAGES/tuleap-docman.po +3 −0 Go to diff View file
M plugins/git/include/gitPlugin.php +14 −1 Go to diff View file
M plugins/git/site-content/fr_FR/LC_MESSAGES/tuleap-git.po +4 −1 Go to diff View file
M plugins/git/site-content/pt_BR/LC_MESSAGES/tuleap-git.po +3 −0 Go to diff View file
M plugins/mediawiki/include/mediawikiPlugin.php +18 −0 Go to diff View file
M plugins/mediawiki/site-content/fr_FR/LC_MESSAGES/tuleap-mediawiki.po +3 −0 Go to diff View file
M plugins/mediawiki/site-content/pt_BR/LC_MESSAGES/tuleap-mediawiki.po +3 −0 Go to diff View file
M plugins/svn/include/svnPlugin.php +14 −1 Go to diff View file
M plugins/svn/site-content/fr_FR/LC_MESSAGES/tuleap-svn.po +5 −2 Go to diff View file
M plugins/svn/site-content/pt_BR/LC_MESSAGES/tuleap-svn.po +3 −0 Go to diff View file
M plugins/timetracking/include/timetrackingPlugin.php +13 −0 Go to diff View file
M plugins/timetracking/site-content/fr_FR/LC_MESSAGES/tuleap-timetracking.po +4 −1 Go to diff View file
M plugins/timetracking/site-content/pt_BR/LC_MESSAGES/tuleap-timetracking.po +3 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +16 −3 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +4 −1 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +3 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M src/common/CLI/Command/ImportProjectXMLCommand.php +7 −1 Go to diff View file
M src/common/Project/ImportFromArchive.php +2 −0 Go to diff View file
M src/common/Project/ProjectXMLImporter.class.php +14 −4 Go to diff View file
A src/common/Project/Registration/Template/Upload/ArchiveWithoutDataChecker.php +86 −0 Go to diff View file
A src/common/Project/Registration/Template/Upload/ArchiveWithoutDataCheckerErrorCollection.php +63 −0 Go to diff View file
A src/common/Project/Registration/Template/Upload/CheckArchiveContent.php +36 −0 Go to diff View file
M src/common/Project/Registration/Template/Upload/ExtractArchiveAndCreateProject.php +5 −1 Go to diff View file
A src/common/Project/Registration/Template/Upload/NoNeedToCheckArchiveContentForCliXmlImport.php +36 −0 Go to diff View file
M src/common/Queue/WorkerEventProcessorFinder.php +5 −0 Go to diff View file
M tests/lib/Stubs/Project/ImportFromArchiveStub.php +7 −2 Go to diff View file
A tests/unit/common/Project/Registration/Template/Upload/ArchiveWithoutDataCheckerTest.php +194 −0 Go to diff View file
M tests/unit/common/Project/Registration/Template/Upload/ExtractArchiveAndCreateProjectTest.php +18 −0 Go to diff View file
A tests/unit/common/Project/Registration/Template/Upload/NoNeedToCheckArchiveContentForCliXmlImportTest.php +38 −0 Go to diff View file