stable

Clone or download

Read-only

user can't create a new version if there is already an on going version upload

part of story #12458 DnD on an existing file creates a new version How to test: Try to update a fil with REST route when there is already an on going update on the file => error Try to do the same on legacy UI => error Change-Id: Ie0846a73091f4e7ff679009099a57cdfb55ba9e3

Modified Files

Name
M plugins/docman/include/Docman_Controller.class.php +9 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +1 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemUpdator.php +8 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +6 −4 Go to diff View file
R plugins/docman/include/Upload/DocumentOngoingUploadRetriever.php Go to diff View file
M plugins/docman/include/Upload/Version/DocumentOnGoingVersionToUploadDAO.php +9 −0 Go to diff View file
A plugins/docman/include/Upload/Version/VersionOngoingUploadRetriever.php +60 −0 Go to diff View file
M plugins/docman/include/view/Docman_View_GetMenuItemsVisitor.class.php +8 −0 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionNewVersion.class.php +13 −0 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 +8 −7 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +3 −0 Go to diff View file
A plugins/docman/templates/document_file_upload_on_going_error.mustache +3 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +129 −124 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +11 −4 Go to diff View file