Jan Vonka
ffcd8885c9
REPO-1058: REST API - minor refactor of TestSites to split the existing test
...
- prep' for REPO-1058 / REPO-1244
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130677 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-15 10:13:05 +00:00
Cristina Mocanu
e05b5d5a0e
REPO-164 - Added new negative unit test for includeChildren: try to lock using includeChildren parameter that has been removed and 400 response code is retrieved.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130641 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-14 12:26:19 +00:00
Ancuta Morarasu
302e275b3e
REPO-1059: Fix tests number.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130639 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-14 12:05:58 +00:00
Jan Vonka
2b312bf4ce
REPO-1059: REST API: Invalid orderBy field is ignored
...
- minor follow-on (comment in the specific test when this issue was found - in addition to the new generic tests)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130614 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-13 16:58:20 +00:00
Ancuta Morarasu
e586f9f210
REPO-484: [REST API] 400 error for unsupported NOT operator in the 'where' predicate.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130610 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-13 15:41:43 +00:00
Cristina Mocanu
b2accc9af8
REPO-164 - Added new unit test for timeToExpire parameter: locked a document, tried to delete while is locked, wait until expiration time has passed and delete the document.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130574 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-12 13:19:22 +00:00
Cristina Mocanu
c69160a717
Added new negative test for Lock functionality: try to lock a folder.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-12 11:39:10 +00:00
Jan Vonka
bae222c1f3
MNT-16449: CMIS delete version fails on versions other than latest (most recent) version
...
- add commented-out test to demonstrate the issue (we can then decide to prioritise accordingly)
- note: this scenario works via V1 REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130525 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-09 15:04:32 +00:00
Ancuta Morarasu
59eed12c13
REPO-1164: [REST API] 422 error when executing unlock on a node that is not locked
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-07 11:48:02 +00:00
Gethin James
59a1186522
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
130005 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129716 amorarasu: REPO-340 / REPO-1136 - V1 REST API: Unlock Node
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 15:12:54 +00:00
Gethin James
91cc53e31b
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129999 ahind: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1)
129643 amorarasu: REPO-164 / REPO-1086 - V1 REST API: Lock Node
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130261 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:58:13 +00:00
Gethin James
faeb31dabe
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129786 gjames: SEARCH-113: Adding client object for SearchEntry
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:18:27 +00:00
Gethin James
b18f433fca
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
...
129778 gjames: SEARCH-113: Initial implementation of the Search public API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-06 14:15:02 +00:00
Jan Vonka
30a211d262
REPO-1187 / REPO-164: V1 REST API to "lock content node" - initially, we will support one of two lock types, either ALLOW_OWNER_CHANGES (default, if not requested otherwise) or FULL
...
- we will not support ALLOW_ADD_CHILDREN lock type (removed as part of this change request)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-09-01 10:35:46 +00:00
Martin Muller
ed67760ab4
Restrict lock method to content types. REPO-1158
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-26 09:15:52 +00:00
Jan Vonka
25988a8efb
REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
...
- follow-on (re: NodeApiTest.getChildrenAssocType fallout - when returning any assoc, not just cm:contains)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 17:02:31 +00:00
Ancuta Morarasu
8dfbbeaf3d
REPO-1155 / REPO-160 / REPO-340 - V1 REST API: Remove "includeChildren" option for Lock / Unlock in the rest api (REPO-1163)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-25 16:16:37 +00:00
Jan Vonka
51c220c5a5
REPO-164 / REPO-1150: fix minor regress (eg. if recursively locking nodes via includeChildren)
...
- MNT-16446, MNT-14945
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-24 12:11:40 +00:00
Ancuta Morarasu
b04cef45d1
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Removed the allowCheckedOut option from the unlock body
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 20:24:18 +00:00
Ancuta Morarasu
d53ac5135a
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
- Unlock with includeChildren=true - fixed + testcases
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:34:52 +00:00
Jan Vonka
650554b62c
REPO-164 / REPO-1141: fix error mapping when unable to update content due to locked node (should be 409 not 500)
...
- also minor cleanup of error handling/mapping (handle within common "writeContent")
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-23 11:14:03 +00:00
Martin Muller
2c62e68f71
Added somes tests for invalid paging parameters. REPO-1061, REPO-890
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 13:24:38 +00:00
Ancuta Morarasu
ecec348d6c
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
- review suggestions
- added more test cases + utility methods
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-22 13:10:19 +00:00
Ancuta Morarasu
063dde5d8b
REPO-340 / REPO-1136 - V1 REST API: Unlock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 18:37:10 +00:00
Jan Vonka
0376e880d0
REPO-1138 / REPO-983: Add support for the isLocked property
...
- can optionally "include" when getting node info, listing children, ...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-19 16:22:09 +00:00
Ancuta Morarasu
3374ed8e49
REPO-164 / REPO-1086 - V1 REST API: Lock Node
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-18 12:11:24 +00:00
Alan Davis
c82cfb582c
REPO-1069 Review live search sort order / sort type (sites and also people)
...
- Removal of parameter sortType - we are going to be using the POST_QUERY_SORT
- Removal of tests using IN_QUERY_SORT except for the one to do with the default sort.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129253 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-09 10:09:49 +00:00
Alan Davis
4b308b5cdc
REPO-1079 Rename "Live Search" API endpoints
...
- Changes to end points to reflect the rename of:
/queries/live-search-nodes to /queries/nodes
/queries/live-search-people to /queries/people
/queries/live-search-sites to /queries/sites
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129252 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-09 09:33:20 +00:00
Martin Muller
fda06755c6
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129059 adavis: REPO-243 People Live Search
- Use id (in fields and orderBy) rather than userName as it is an id that is returned in the Person entity
- Added tests to test id can be used in fields and orderBy
- Added 'wildcard' tests created by Alexandru-Eusebiu Epure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129199 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:50:07 +00:00
Martin Muller
2b9173ee6a
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129058 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
- additional tweaks based on ADs review comments
REPO-232, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129198 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:50:03 +00:00
Martin Muller
b41bab742e
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129051 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
- add some api sanity checks for basic paging (along with sorting)
REPO-232, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:49 +00:00
Martin Muller
33a3c91e99
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129050 jvonka: V1 REST API: fix 500 (NPE) when trying to get a version (info or content) for a node that has no version history
REPO-1051, REPO-327, REPO-229
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:42 +00:00
Martin Muller
9bc32208c7
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129042 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
- add experimental option (for review) to choose sort type
- fix post query sort to use AlfrescoCollator rather than RuleBasedCollator (latter ignores spaces)
- fix post query sort to apply paging correctly (get results first) - TODO add test
REPO-232, REPO-882, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129193 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:39 +00:00
Martin Muller
267cdf9072
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129037 adavis: REPO-243 People Live Search
- Added another orderBy test following a question from Jan.
- Minor change in post order code to replace a Map lookup with a List lookup. Logically the same but faster.
- Replaced a NPE test failure with a failure message if TEST_COUNT is too small
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129192 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:35 +00:00
Martin Muller
aee655b2f0
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129025 jvonka: V1 REST API: 1st-cut of api test for Sites Live Search (/queries/live-search-sites)
REPO-232, REPO-883
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129191 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:31 +00:00
Martin Muller
dd330266ed
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129017 adavis: REPO-243 People Live Search
- Added additional tests
- Removed check in Person constructor for no id as we want to be able to create a Person from json which might not have the id.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:27 +00:00
Martin Muller
4350d8026b
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129011 adavis: REPO-243 People Live Search
- Fix build failures
- replace tabs in Person.java
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129189 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:23 +00:00
Martin Muller
83e9fdf964
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
129004 adavis: REPO-243 People Live Search
- First cut of this code
- Includes a re-factor of the code used by GET /queries/live-search-nodes as there is much in common.
- Still have some tests to write and there are bound to be comments from the review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:15 +00:00
Martin Muller
15f33e6130
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128790 mmuller: Fix for REPO-855 + Sanity test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129186 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:49:10 +00:00
Martin Muller
79149bf9b3
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128681 jvonka: V1 REST API: version history - add api sanity check for auto-version on metadata-only updates
REPO-348, REPO-313, REPO-905
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:57 +00:00
Martin Muller
2f4ee372f1
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128662 jvonka: V1 REST API test improvements - allow tests to be run individually (as well as within a suite)
REPO-896
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:53 +00:00
Martin Muller
ee32e29f48
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128651 jvonka: V1 REST API test improvements: minor fix to re-comment out known issue (see REPO-907)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:49 +00:00
Martin Muller
01042e67ff
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128650 jvonka: V1 REST API: minor fixes (if running within default non-tenant context and single setup)
- fix couple of failed tests to make sure they're no longer inter-dependent when run in this mode
REPO-113
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:46 +00:00
Martin Muller
7fa1d5b889
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128642 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 5b
- fix test fallout
REPO-113
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129180 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:41 +00:00
Martin Muller
a65e2f48f1
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128640 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 5
REPO-113 (also relates to REPO-28, REPO-114, REPO-825)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129179 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:37 +00:00
Martin Muller
3c1341e808
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128608 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 4
REPO-113 (also relates to REPO-28, REPO-114, REPO-825)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:33 +00:00
Martin Muller
82f60d85fb
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128601 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 3
REPO-113 (also relates to REPO-28, REPO-825)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129176 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:24 +00:00
Martin Muller
bcf551a644
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128597 jvonka: REPO-900: Fix "autoRename not working if using a relativePath (with create/add node via json request)"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:20 +00:00
Martin Muller
a95eb5613e
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128594 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 2
REPO-113
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129174 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:16 +00:00
Martin Muller
1b474b8199
Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
...
128583 jvonka: V1 REST API: Node Version History - tweak "delete version" operation
- cannot delete last version for now (return 422)
REPO-835
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-08-05 13:47:11 +00:00