stable

Clone or download

Read-only

PATCH route should only be possible for files

part of story #12458 DnD on an existing file creates a new version How to test: Try to do patch on a non file item => 501 this is forbidden Change-Id: I6c6e48083494683bc32ec80179b6f7fceb86a656

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemUpdator.php +9 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +2 −1 Go to diff View file
A plugins/docman/include/REST/v1/VersionToUploadVisitorBeforeUpdateValidator.php +68 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php +14 −2 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +70 −6 Go to diff View file