stable

Clone or download

Read-only

Block item creation if there is an item being uploaded with the same name and parent

The goal is to put a lock a on item creation to let users uploading a document the time to finish. To test, you can add an entry to the plugin_docman_new_document_upload table. The creation of an item with the same parent and name should be denied whatever creation methods you use. This is part of story #12612: upload document via REST route Change-Id: I5df4b5233f73b09784bc65db75f20ad40e6d6854

Modified Files

Name
M plugins/docman/db/install.sql +14 −0 Go to diff View file
A plugins/docman/db/mysql/updates/2018/20181218_add_plugin_docman_new_document_upload_table.php +50 −0 Go to diff View file
M plugins/docman/db/uninstall.sql +1 −0 Go to diff View file
M plugins/docman/include/Docman_Controller.class.php +18 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +9 −2 Go to diff View file
A plugins/docman/include/Upload/DocumentOngoingUploadDAO.php +38 −0 Go to diff View file
A plugins/docman/include/Upload/DocumentOngoingUploadRetriever.php +46 −0 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +3 −0 Go to diff View file
M plugins/docman/site-content/tuleap-docman.pot +3 −0 Go to diff View file