stable

Clone or download

Read-only

request #13368: Invalid API response when using REST route POST /projects with an invalid template ID

A HTML page should not be returned by the REST endpoint. Change-Id: I3aaa0a9837bb90e99512464cf48300fdbd422e7e

Modified Files

Name
M src/common/Project/ProjectCreator.class.php +17 −5 Go to diff View file
A src/common/Project/ProjectInvalidTemplateException.php +33 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +3 −0 Go to diff View file
A tests/phpunit/common/Project/ProjectCreatorTest.php +101 −0 Go to diff View file
M tests/rest/tests/ProjectTest.php +21 −0 Go to diff View file
M tests/simpletest/common/Project/ProjectCreatorTest.php +14 −10 Go to diff View file