Commit Graph

2284 Commits

Author SHA1 Message Date
Jamal Kaabi-Mofrad
2e2ecb85c5 Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
135505 jkaabimofrad: APPSREPO-137: Made quick-share email template configurable via properties file. The template path property value could be an XPATH, a NodeRef of the template or a class path of the template.
       - Added a helper class to provide email template related utility functions
       - Added share as a default registered client for sending email - the template assets (images) will be available in share.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-03-03 11:41:58 +00:00
Jamal Kaabi-Mofrad
c149e56623 Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
135229 jkaabimofrad: APPSREPO-136: Updated the API framework so that WebApiNoAuth annotation can be used with operations.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135565 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-03-03 11:41:52 +00:00
Stefan Kopf
7ea9dee0b1 REPO-2112 - Security: MNT-17545: HTTP Header Injection in ContentStreamer
MNT-17545 - HTTP Header Injection in ContentStreamer

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-03-03 10:43:55 +00:00
Stefan Kopf
936c4972c3 REPO-2109 - Security: MNT-17475: WebDAV: SXSS+CSRF vulnerability in SSO environments
MNT-17475 - WebDAV: SXSS+CSRF vulnerability in SSO environments

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135537 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-03-02 18:09:08 +00:00
Martin Muller
7892bcef02 MNT-16236 changed the property to opencmis.maxContentSizeMB / opencmis.memoryThresholdKB and adjusted the test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135462 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-02-27 17:08:26 +00:00
Martin Muller
63de280dd1 MNT-16236 added changeable setMaxContentSize CMIS configuration for uploading a file + unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135376 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-02-23 14:41:42 +00:00
Cristian Turlica
c64c1f5389 Merged 5.2.0-CLOUD45 (Cloud ) to 5.2.N (5.2.1)
135265 cturlica: CLD-67: TestSiteMembershipRequests tests failing after cloud update from 5.2-SNAPSHOT to 5.2.0-CLOUD45-SNAPSHOT (plat/share)
      - we shouldn't have default null value for not set properties (partial change for REPO-892)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135306 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-02-21 11:50:24 +00:00
Andrei Rebegea
02928e266a MNT-17427 : api/invite/cancel deletes records in the database with a GET: CSRF/XSS attack
- delete the script/org/alfresco/repository/invite/invite.get
   - use the alternatives: script/org/alfresco/repository/site/invitation/invitation.post and script/org/alfresco/repository/site/invitation/invitation.delete
   - updating the tests
   - updating the controller for the invitation.delete to a java controller
   - fix test fallout (SiteServiceTest testInviteDisabledUser - expected error status code)
   - improve security by allowing only invitationIDs that belong the the site passed as parameter to be canceled
   - be consistent and return 404 when an invitationID can not be found

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-02-20 09:04:45 +00:00
Cristian Turlica
cff630061f REPO-1878: Support GROUP_EVERYONE in all endpoints
- initial commit

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 15:49:50 +00:00
Cristian Turlica
a234a4641b CLD-3: Trunk broken by Servlet API upgrade on platform
- partial revert of refactoring done in REPO-908

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 15:44:27 +00:00
Matt Ward
86467be9b6 Merged mward/repo-1844-sortorder (5.2.1) to 5.2.N (5.2.1)
134816 mward: REPO-1844: sort order problems with ID


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134825 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 15:43:20 +00:00
Matt Ward
04c6028147 Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134762 mward: REPO-1583: added include=parentIds support


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 10:02:38 +00:00
Matt Ward
75c8ee0ae5 Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134742 mward: REPO-1583: added isRoot filtering.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 10:02:31 +00:00
Matt Ward
5377a9f21a Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134741 mward: REPO-1600: added support for zone filtering to GET /people/{personId}/groups
   Also brought in-line with spec to return an empty list rather than a 404 if the zone is non-existent.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 10:02:10 +00:00
Matt Ward
6f28d39f6c Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134688 mward: REPO-1600: slight optimisation to use zone filtering earlier


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134805 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 10:00:47 +00:00
Matt Ward
8d03006825 Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134686 mward: REPO-1600: implemented logical conjunction for where clause
   e.g.
       isRoot=true AND zones in ('MY.ZONE')


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 10:00:29 +00:00
Matt Ward
7a8c4c9688 Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134681 mward: REPO-1600: unknown zone results in 404


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134803 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 09:58:52 +00:00
Matt Ward
90123678f5 Merged mward/repo-1600-zonesfilter (5.2.1) to 5.2.N (5.2.1)
134670 mward: REPO-1600: initial groundwork
   Includes impl for path where no isRoot parameter is supplied.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-30 09:58:42 +00:00
Raluca Munteanu
8e827385dd REPO-1306: Delete group membership
- Added functionality and tests
   - Added minor changes to create group membership functionality ( REPO-1307 )

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134789 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-27 14:14:50 +00:00
Raluca Munteanu
66b0cbbb69 REPO-1884: Don't allow adding a sub-group with memberType:"PERSON"
- Added validation and tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134777 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-26 15:46:03 +00:00
Cristina Mocanu
2372dfc5eb REPO-1305 - Corrected a validation in GroupsTests.java, checked that group has been removed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134775 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-26 13:30:42 +00:00
Martin Muller
7f03b263ba Merged 5.2.N-REPO-1815 (5.2.1) to 5.2.N (5.2.1)
134749 mmuller: REPO-1815 / ACE-5753 check if operation is null or empty and attach cmisselect=repositoryInfo and some code optimazion


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 12:55:22 +00:00
Martin Muller
08a903bb85 Merged 5.2.N-REPO-1815 (5.2.1) to 5.2.N (5.2.1)
134746 mmuller: REPO-1815 / ACE-5753 check if cmisselector is null or empty


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 12:55:15 +00:00
Martin Muller
f48c4b5cda Merged 5.2.N-REPO-1815 (5.2.1) to 5.2.N (5.2.1)
134745 mmuller: REPO-1815 / ACE-5753 reverse cmisselector=repositoryInfo + regression test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 12:55:08 +00:00
Raluca Munteanu
fe089c7651 REPO-1307: Create group membership
- Added create group membership functionality
   - Added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 11:57:40 +00:00
Cristian Turlica
216d34a03e REPO-1800: Create group with an id that contains "/" does not return an error
- added validation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 09:04:42 +00:00
Cristian Turlica
5f20a39cee REPO-1305: Delete a group
- restrict delete group to group authority

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-25 08:56:11 +00:00
Jan Vonka
cc0b2e2157 Merged 5.2.N-LAST-T-MOD (5.2.1) to 5.2.N (5.2.1)
134696 jvonka: REPO-1644: Add REST API level test to check lastThumbnailModification property update (on upload new version)
   - fix local vs build
   - also logged REPO-1834


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134718 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-23 14:04:42 +00:00
Jan Vonka
0cf4d0793d Merged 5.2.N-LAST-T-MOD (5.2.1) to 5.2.N (5.2.1)
134684 jvonka: REPO-1644: Add REST API level test to check lastThumbnailModification property update (on upload new version)
   - note: will fail until we implement fix
   - see also REPO-1580 / MNT-17113 (we need to confirm it's the same/related issue on 5.0.N)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134715 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-23 14:04:10 +00:00
Matt Ward
6a0be6cd7a REPO-1813: 500 Response Code when creating a person without id
Now returns 400. Also fixed to return 400 when user id starts with GROUP_ or ROLE_

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-23 11:39:01 +00:00
Cristian Turlica
688a068f2a REPO-1305: Delete a group
- first version

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-20 13:46:59 +00:00
Constantin Popa
debae96be4 Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
134665 cpopa: APPSREPO-105 : Add an API to download multiple file/folders as a zip
      - test fixes to get rid of unpredictable failures
      - fixes after Gavin's OpenAPI spec review


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-20 12:57:32 +00:00
Constantin Popa
79a98c1cfe Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
134653 cpopa: APPSREPO-105 : Add an API to download multiple file/folders as a zip
      - Fixed a test which failed due to an incorrect wait time.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134673 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-20 12:57:06 +00:00
Constantin Popa
671b712a47 Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
134630 cpopa: APPSREPO-105 : Add an API to download multiple file/folders as a zip
      - Added an API for creating a download, retrieving download info and canceling a download


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-20 12:56:01 +00:00
Matt Ward
681c1c074a REPO-1583: fix test, broken due to introduction of sorting/paging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134425 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-18 09:55:44 +00:00
Cristian Turlica
d4f2773e68 REPO-1303: Update a group
- added update group capabilities.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134418 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-18 08:46:38 +00:00
Matt Ward
45747175d5 Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134397 mward: REPO-1583: implementing feedback from CR-667 review


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134403 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:23:04 +00:00
Matt Ward
c096c60c22 Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134379 mward: REPO-1583: added tests for sorting


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134402 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:22:24 +00:00
Matt Ward
3b41c8a4eb Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134377 mward: REPO-1583: non-admin now supported
   Also added tests for paging.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134401 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:22:12 +00:00
Matt Ward
897cd62fa2 Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134375 mward: REPO-1583: added -me- support and improved implementation


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:20:15 +00:00
Matt Ward
4acd852e05 Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134294 mward: REPO-1583: add test and implementation details


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:13:49 +00:00
Matt Ward
9b4f773498 Merged mward/5.2.n-repo-1583-groupmem (5.2.1) to 5.2.N (5.2.1)
134078 mward: REPO-1583: sketching out some basic code/infrastructure.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 14:13:38 +00:00
Alex Mukha
0d8bfe6aa7 Merged DEV to 5.2.N (5.2.1)
133903 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" take user disabled status in to account for external authentication subsystem + tests
   133907 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" don't propagate user disabled exception
   133930 sglover: MNT-17247 "Disabled user can log into Alfresco Share using external authentication" move test class and add to a test suite
   134295 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
      - Added a test to simulate creation of missing person during external auth log in.
   134315 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
      - Added a fallback to supprt the logging in by non provisioned users.
   134354 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
      - Added a test with deauthorized user. Refactored existing test to start context once.
   134359 jvonka: REPO-1227: External authentication - prevent disabled user from authenticating
      - add log warning (with masked username, similar to brute force attack) if authentication bypassed when setting user details
   134372 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
      - Updated core and data model (contain new logging)
   134390 amukha: MNT-17247: Disabled user can log into Alfresco Share using external authentication
      - isEnabled flag for users is returned correctly
      - Added tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 13:57:05 +00:00
Cristian Turlica
868f0029d3 REPO-1304: Create a group
- updated error message when creating a group with the same name

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-17 13:01:01 +00:00
Cristian Turlica
93fc6fe945 REPO-1304: Create a group
- added create group logic; fixed a sorting bug for get groups/group members; updated test framework - post/create action; fix toJSON issue for parentIds and zones.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-12 16:11:40 +00:00
Matt Ward
abc74f54f6 REPO-1780: always use the primary parent ID regardless of context
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-09 15:50:56 +00:00
Raluca Munteanu
5422b2770a REPO-1752: Create person with long id returns 500
- Minor change, added space in response message.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-06 14:12:19 +00:00
Raluca Munteanu
bad483f217 REPO-1752: Create person with long id returns 500
- Changed validation message.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-05 13:23:59 +00:00
Cristian Turlica
236cd318aa REPO-1684: We should not return properties that are empty
- Empty (zero length) string values are considered to be null values, and will be represented the same as null values (i.e. by non-existence of the property).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134045 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-05 08:24:09 +00:00
Matt Ward
dee0895e4a REPO-1773: Validate ticket API call returns incorrect body with 404 status code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2017-01-04 15:39:39 +00:00