stable
Clone or download
Read-only
part of story #12447 Modal new document for empty/wiki/link How to test: use new empty document with REST route POST /api/docman_items: Empty title --> 400 Invalid item_type (only "empty" is allowed for now) --> 400 Unknown parent_id --> 400 Parent id is not a folder --> 400 Current user cannot access project's parent --> 403 Current user cannot access parent --> 403 Current user cannot write parent --> 403 Anonymous user with write permissions: --> 201 Otherwise ---> 201 Info: empty documens are created with 100 as default status, there is a dedicated task to handle this particular metadata. Same for obsolescence date Change-Id: I84d453c4b4b0e7dc6126b98e9e791d0414608ff6
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/docman/include/CannotInstantiateItemWeHaveJustCreatedInDBException.php | +25 | −0 | Go to diff View file |
M | plugins/docman/include/Docman_ItemFactory.class.php | +31 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/DocmanItemCreator.php | +100 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemsRequestBuilder.php | +11 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemsResource.php | +159 | −18 | Go to diff View file |
A | plugins/docman/include/REST/v1/NullResponseFeedbackWrapper.php | +31 | −0 | Go to diff View file |
M | plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po | +11 | −5 | Go to diff View file |
M | plugins/docman/site-content/tuleap-docman.pot | +8 | −2 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +70 | −12 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +5 | −8 | Go to diff View file |
M | src/common/event/EventManager.class.php | +1 | −1 | Go to diff View file |