stable

Clone or download

Read-only

Update API REST to reject creation of items with duplicated name

part of story #10721 upload documents with drag'n drop how to test: - In REST API try to create a document with same name than an existing document of parent folder => rejected - try to create a document with same name than an existing folder => created - try to create a document with same name of an other document located in an other folder => created Change-Id: I04b58aa4e646b8840d26d541db3561cddd4109d5

Modified Files

Name
M plugins/docman/include/Docman_ItemDao.class.php +23 −0 Go to diff View file
M plugins/docman/include/Docman_ItemFactory.class.php +10 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +19 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +51 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +23 −0 Go to diff View file