stable

Clone or download

Read-only

feat: Send 404 if project is not active nor deleted nor suspended

If a project is not active, not deleted and not suspended, we should send a 404 since its status does not lead currently to a well formed project. This prepares the field for XML import of project, where we plan to have an intermediate status until the import is complete (ex: status=X). You can try this feature by updating manually the database and setting the status of a project to 'X' (in `groups` table). `GET /projects/:id` should return a 404 and not a 403. Part of story #36484 create a new project from an XML template Change-Id: I94b7c8e374d9141465d9640ab03163b6023f9e94

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +2 −1 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanProjectBuilder.php +1 −1 Go to diff View file
M plugins/project_ownership/tests/rest/ProjectOwnershipTest.php +1 −1 Go to diff View file
M plugins/pullrequest/tests/unit/PullRequestEmptyStatePresenterBuilderTest.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tracker_URLVerification.class.php +2 −2 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +20 −17 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
A src/common/Project/AccessNotActiveException.php +28 −0 Go to diff View file
M src/common/Project/ProjectAccessChecker.php +6 −1 Go to diff View file
R src/common/REST/ProjectAuthorization.class.php Go to diff View file
M src/common/include/URLVerification.class.php +6 −3 Go to diff View file
M tests/lib/Builders/ProjectTestBuilder.php +6 −0 Go to diff View file
M tests/lib/TestDataBuilder.php +1 −1 Go to diff View file
M tests/rest/lib/TestDataBuilder.php +1 −1 Go to diff View file
M tests/rest/tests/ProjectTest.php +13 −3 Go to diff View file
M tests/unit/common/Project/ProjectAccessCheckerTest.php +35 −18 Go to diff View file
M tests/unit/common/Project/Registration/Template/TemplateFromProjectForCreationTest.php +1 −1 Go to diff View file