stable

Clone or download

Read-only

request #14715 NotFound should be more user friendly

Given I am anonymous When I try to access to a protected resource Then I should be redirected to the login page Instead of receiving a 404 Test example: as anonymous access to the download of a specific document https:/<your_instance>/plugins/docman/download/<document_id> => you are redirected to login page curl the url => you still have the "not found' page Change-Id: I2295895ee5325250a67ff13508aa2158b93daecb

Modified Files

Name
M src/common/Request/FrontRouter.php +27 −8 Go to diff View file
A src/common/Request/HeaderAcceptReader.php +49 −0 Go to diff View file
M src/composer.json +2 −1 Go to diff View file
M src/composer.lock +65 −7 Go to diff View file
M tests/unit/common/Request/FrontRouterTest.php +79 −17 Go to diff View file
A tests/unit/common/Request/HeaderAcceptReaderTest.php +81 −0 Go to diff View file