stable

Clone or download

Read-only

check title existence in rest route for PUT/PATCH routes

part of story #13463 Split PATCH docman_items_type/id route How to test: - PATCH and PUT/metadata route should forbidd you to update the title of a document to an other existing one This patch only deals with check migrated in visitor, Empty and Wiki will be done later. Change-Id: I7c18af2c40a21ac6b934663caf4e2e410a0a84ed

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +11 −28 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +26 −33 Go to diff View file
M plugins/docman/include/REST/v1/DocmanLinksResource.php +9 −27 Go to diff View file
M plugins/docman/include/REST/v1/DocumentBeforeVersionCreationValidatorVisitor.php +58 −32 Go to diff View file
A plugins/docman/include/REST/v1/DocumentBeforeVersionCreationValidatorVisitorBuilder.php +46 −0 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/MetadataUpdator.php +6 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocumentBeforeVersionCreationValidatorVisitorTest.php +101 −26 Go to diff View file
M plugins/docman/phpunit/REST/v1/Metadata/MetadataUpdatorTest.php +45 −4 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanEmbeddedTest.php +22 −17 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanFilesTest.php +25 −28 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanLinksTest.php +12 −8 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanEmbeddedDataBuild.php +1 −1 Go to diff View file