stable

Clone or download

Read-only

REST route for PATCH files rejects document with table approval

part of story #12458 DnD on an existing file creates a new version how to test: Patch route is only available with feature flag please add $enable_patch_item_route = 1; in your conf file, without it route always returns a 501 Have a document with an active approval table => patch route throws an error Have a regular document => patch route throws 501 Change-Id: Ieabffd26f173741ac304261c502aaf35a8a0989e

Modified Files

Name
A plugins/docman/include/ApprovalTable/ApprovalTableRetriever.php +56 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanItemUpdator.php +49 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +66 −7 Go to diff View file
A plugins/docman/include/REST/v1/ExceptionDocumentHasApprovalTable.php +27 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +22 −29 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +3 −2 Go to diff View file
A plugins/docman/phpunit/ApprovalTable/ApprovalTableRetrieverTest.php +102 −0 Go to diff View file
A plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php +65 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/ItemRepresentationBuilderTest.php +10 −12 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +5 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +38 −1 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +44 −6 Go to diff View file