stable

Clone or download

Read-only

User should not be able to push oversize file

part of story #12458 DnD on an existing file creates a new version How to test: have enable_patch_item_route = 1 in local.inc - Try to push a file exceeding sys_max_size_upload value => 400 not allowed - try to push a regular file => 501 not yet implemented Change-Id: I0a8e8cc2ea6f0c95dd00c5abc4bf9af44c70dbcc

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemCreator.php +1 −1 Go to diff View file
A plugins/docman/include/REST/v1/DocmanItemPATCHRepresentation.php +41 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemPOSTRepresentation.php +1 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemUpdator.php +13 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +10 −2 Go to diff View file
R plugins/docman/include/REST/v1/FilePropertiesPOSTRepresentation.php Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +1 −1 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php +33 −2 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +42 −4 Go to diff View file