From c71e5362452bda6c9cfd1b0ca42b97663ecd32d6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 30 Jul 2021 23:22:20 +0000 Subject: [PATCH 001/177] Bump commons-csv from 1.8 to 1.9.0 (#637) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e228449046..56762e9d20 100644 --- a/pom.xml +++ b/pom.xml @@ -649,7 +649,7 @@ org.apache.commons commons-csv - 1.8 + 1.9.0 From d6e096a06c9ef0cd05b15187d6453bb99e61259c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sat, 31 Jul 2021 07:59:18 +0000 Subject: [PATCH 002/177] [maven-release-plugin][skip ci] prepare release 11.94 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 900d3abd42..88cf87e210 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.94-SNAPSHOT + 11.94 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6a0f22a16c..aa42608bbb 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.94-SNAPSHOT + 11.94 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index a1cbc8779c..5c55f44cb3 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index daefc515f0..e7c772ab10 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.94-SNAPSHOT + 11.94 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index b273a2aff5..9132bd5fe3 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.94-SNAPSHOT + 11.94 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 368b61a8b8..0204197321 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.94-SNAPSHOT + 11.94 diff --git a/amps/pom.xml b/amps/pom.xml index 53e47b8d7a..bf91f59db7 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index cceeec982e..f0537adbd5 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.94-SNAPSHOT + 11.94 diff --git a/core/pom.xml b/core/pom.xml index 4daba9ed7a..467c1bae1d 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/data-model/pom.xml b/data-model/pom.xml index d666931da7..cee6d93364 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index b14edf0d12..ee825151f0 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 26c836092a..2f3fb8c97c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/pom.xml b/packaging/pom.xml index 4836c1fa02..692c83f035 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index b56d6ba620..267c3cf7fd 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 10769257b8..8cde456d74 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 0270e12496..ad6aa9cbce 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 077c0f1119..d660e5d15b 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index a0f5b8712c..916a56cd51 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8cfe163796..8a6f24f7be 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94-SNAPSHOT + 11.94 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 4607c70e58..ced56638e3 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94-SNAPSHOT + 11.94 diff --git a/pom.xml b/pom.xml index 56762e9d20..faea94644b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.94-SNAPSHOT + 11.94 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.94 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index af173ee4d4..a27227ac6a 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 diff --git a/repository/pom.xml b/repository/pom.xml index 3ad0b97b31..1db5c5787d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94-SNAPSHOT + 11.94 From 28eaa8c2f86e2b8a8838dae2c377561d99af5d61 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sat, 31 Jul 2021 07:59:23 +0000 Subject: [PATCH 003/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 88cf87e210..af9673b898 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.94 + 11.95-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index aa42608bbb..c9989c4898 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.94 + 11.95-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 5c55f44cb3..220edbd446 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index e7c772ab10..842cc07794 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.94 + 11.95-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 9132bd5fe3..916cbeb9ba 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.94 + 11.95-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0204197321..f4c00e6e41 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.94 + 11.95-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index bf91f59db7..28db9340dd 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index f0537adbd5..1a21908162 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.94 + 11.95-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 467c1bae1d..ad2c229971 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index cee6d93364..aa3b6072b0 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index ee825151f0..80e189dc1d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 2f3fb8c97c..bf90de59dd 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 692c83f035..e39ee413fe 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 267c3cf7fd..bae3119757 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 8cde456d74..2bfa4a548a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ad6aa9cbce..901246958d 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index d660e5d15b..b911d2d82f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 916a56cd51..01690096c8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8a6f24f7be..51a993a75b 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.94 + 11.95-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index ced56638e3..4ee6befcfb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.94 + 11.95-SNAPSHOT diff --git a/pom.xml b/pom.xml index faea94644b..edf0fe9fe2 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.94 + 11.95-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.94 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index a27227ac6a..6d93e5af4c 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 1db5c5787d..c8f3898f3d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.94 + 11.95-SNAPSHOT From 3cac5ebfc596449694474c4209594e73c3e73d41 Mon Sep 17 00:00:00 2001 From: Shubham Jain <85296257+shubhamjain10@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:23:30 +0530 Subject: [PATCH 004/177] =?UTF-8?q?APPS-1073=5FAutomated=20Rest=20API=20te?= =?UTF-8?q?sts=20for=20checking=20Export=20for=20Records=20ha=E2=80=A6=20(?= =?UTF-8?q?#630)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * APPS-1073_Automated Rest API tests for checking Export for Records having size greater than 4MB * Updated the test files as per Review Comments * Updated the test files as per Review Comments Co-authored-by: Shubham Jain Co-authored-by: shubhamjain10 --- .../java/org/alfresco/rest/v0/ExportAPI.java | 103 ++++++++++ .../community/records/ExportRecordsTests.java | 136 +++++++++++++ .../utils/FilePlanComponentsUtil.java | 181 +++++++++++------- 3 files changed, 346 insertions(+), 74 deletions(-) create mode 100644 amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/ExportAPI.java create mode 100644 amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/ExportRecordsTests.java diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/ExportAPI.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/ExportAPI.java new file mode 100644 index 0000000000..12d322fdb2 --- /dev/null +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/ExportAPI.java @@ -0,0 +1,103 @@ +/* + * #%L + * Alfresco Records Management Module + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * - + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * - + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * - + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * - + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.v0; + +import java.util.Collections; +import java.util.List; +import java.util.stream.Collectors; + +import org.alfresco.rest.core.v0.BaseAPI; +import org.apache.http.HttpResponse; +import org.json.JSONArray; +import org.json.JSONObject; +import org.springframework.stereotype.Component; + +/** + * Methods to make API requests using v0 API for Exporting Items + * + * @author Shubham Jain + * @since 7.1.0 + */ + +@Component +public class ExportAPI extends BaseAPI +{ + /** + * The URI to export an item + */ + private static final String EXPORT_API = "{0}rma/admin/export"; + + /** + * Export a single Record/Record Folder/Record Category using V0 Export API + * + * @param user User performing the export + * @param password User's Password + * @param expectedStatusCode Expected Response Code + * @param nodeID ID of the Node(Record/RecordFolder) to be exported + * @return HTTP Response + */ + public HttpResponse exportRMNode(String user, String password, int expectedStatusCode, String nodeID) + { + return export(user, password, expectedStatusCode, Collections.singletonList(getNodeRefSpacesStore() + nodeID)); + } + + /** + * Export a list of nodes using V0 Export API + * + * @param user User performing the export + * @param password User's Password + * @param expectedStatusCode Expected Response Code + * @param nodeIDList List of the nodes to be exported + * @return HTTP Response + */ + public HttpResponse exportRMNodes(String user, String password, int expectedStatusCode, List nodeIDList) + { + + List nodeRefs = + nodeIDList.stream().map(nodeID -> getNodeRefSpacesStore() + nodeID).collect(Collectors.toList()); + + return export(user, password, expectedStatusCode, nodeRefs); + } + + /** + * Export API function to perform Export Operation on items with given noderefs using V0 Export Rest API + * + * @param user User performing the export + * @param password User's Password + * @param expectedStatusCode Expected Response Code + * @param nodeRefs list of the noderefs for the items to be exported + * @return Rest API Post Request + */ + public HttpResponse export(String user, String password, int expectedStatusCode, List nodeRefs) + { + final JSONObject requestParams = new JSONObject(); + + requestParams.put("nodeRefs", new JSONArray(nodeRefs)); + + return doPostJsonRequest(user, password, expectedStatusCode, requestParams, EXPORT_API); + } +} diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/ExportRecordsTests.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/ExportRecordsTests.java new file mode 100644 index 0000000000..d3e7bde53f --- /dev/null +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/ExportRecordsTests.java @@ -0,0 +1,136 @@ +/* + * #%L + * Alfresco Records Management Module + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * - + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * - + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * - + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * - + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.rm.community.records; + +import static java.util.Arrays.asList; + +import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentType.CONTENT_TYPE; +import static org.alfresco.rest.rm.community.utils.FilePlanComponentsUtil.createTempFile; +import static org.alfresco.utility.data.RandomData.getRandomName; +import static org.alfresco.utility.report.log.Step.STEP; +import static org.apache.http.HttpStatus.SC_OK; + +import org.alfresco.rest.rm.community.base.BaseRMRestTest; +import org.alfresco.rest.rm.community.model.record.Record; +import org.alfresco.rest.rm.community.model.recordcategory.RecordCategory; +import org.alfresco.rest.rm.community.model.recordcategory.RecordCategoryChild; +import org.alfresco.rest.v0.ExportAPI; +import org.alfresco.test.AlfrescoTest; +import org.springframework.beans.factory.annotation.Autowired; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +/** + * This class contains tests for testing the Export functionality on RM site + * + * @author Shubham Jain + * @since 7.1.0 + */ +public class ExportRecordsTests extends BaseRMRestTest +{ + private RecordCategory rootCategory; + + private RecordCategoryChild recordFolder; + + @Autowired + private ExportAPI exportAPI; + + @BeforeClass (alwaysRun = true) + public void exportRecordsTestsBeforeClass() + { + STEP("Create root level category"); + rootCategory = createRootCategory(getRandomName("Category")); + + STEP("Create the record folder inside the rootCategory"); + recordFolder = createRecordFolder(rootCategory.getId(), getRandomName("Folder")); + + } + + @DataProvider (name = "CreateRMNodes") + public Object[][] getRMNodeID() + { + return new String[][] { + { createRecord("Record_4MB", 4).getId() }, + { createRecord("Record_200MB", 200).getId() }, + { recordFolder.getId() } + }; + } + + /** + * Given a record with size > 4 MB + * When I export the record using API + * Then the request is successful + */ + @Test (description = "Testing the RM Export functionality for records of size >4MB and Record " + + "Folder containing records with size >4MB", + dataProvider = "CreateRMNodes") + @AlfrescoTest (jira = "APPS-986") + public void exportRMNodeTest(String nodeID) + { + STEP("Export the created record/record folder with size greater than 4 MB and verifying the expected response" + + " code"); + exportAPI.exportRMNode(getAdminUser().getUsername(), getAdminUser().getPassword(), SC_OK, nodeID); + } + + /** + * I would change this to + * Given a list of records with a size > 4MB + * When I export the records + * Then the request is succesfull + */ + @Test (description = "Testing the RM Export functionality using API for a list of Records at once with " + + "collective size of more than 4MB") + public void exportRecordsTest() + { + STEP("Export all the created records at once and verifying the expected response code"); + exportAPI.exportRMNodes(getAdminUser().getUsername(), getAdminUser().getPassword(), + SC_OK, asList(createRecord("Record_2MB", 2).getId(), createRecord("Record_3MB", 3).getId())); + } + + /** + * Create a Record with a specific size in RM Site inside already created Record Folder + * + * @param recordName Name of the record to be created + * @param sizeInMegaBytes Size of the record to be created in MegaBytes + * @return Created record with defined size + */ + public Record createRecord(String recordName, int sizeInMegaBytes) + { + return getRestAPIFactory().getRecordFolderAPI().createRecord(Record.builder().name(recordName) + .nodeType(CONTENT_TYPE).build(), recordFolder.getId(), + createTempFile("TempFile", sizeInMegaBytes)); + } + + @AfterClass (alwaysRun = true) + public void exportRecordsTestsAfter() + { + STEP("Delete the created rootCategory along with corresponding record folders/records present in it"); + getRestAPIFactory().getRecordCategoryAPI().deleteRecordCategory(rootCategory.getId()); + } +} diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/FilePlanComponentsUtil.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/FilePlanComponentsUtil.java index 56dd5da2bb..fe91643217 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/FilePlanComponentsUtil.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/utils/FilePlanComponentsUtil.java @@ -41,6 +41,7 @@ import static org.testng.Assert.assertTrue; import java.io.File; import java.io.FileOutputStream; import java.io.OutputStreamWriter; +import java.io.RandomAccessFile; import org.alfresco.rest.rm.community.model.record.Record; import org.alfresco.rest.rm.community.model.record.RecordProperties; @@ -66,13 +67,19 @@ public class FilePlanComponentsUtil // Intentionally blank } - /** Name of the image resource file to be used for records body */ + /** + * Name of the image resource file to be used for records body + */ public static final String IMAGE_FILE = "money.JPG"; - /** Title prefix for record category children */ + /** + * Title prefix for record category children + */ public static final String TITLE_PREFIX = "Title for "; - /** Description prefix for record category children */ + /** + * Description prefix for record category children + */ public static final String DESCRIPTION_PREFIX = "This is the description for"; @@ -87,7 +94,7 @@ public class FilePlanComponentsUtil } /** - * Creates a record model with the given type and a random name (with "Record " prefix) + * Creates a record model with the given type and a random name (with "Record " prefix) * * @param nodeType The node type * @return The {@link Record} with for the given node type @@ -95,9 +102,9 @@ public class FilePlanComponentsUtil private static Record createRecordModel(String nodeType) { return Record.builder() - .name("Record " + getRandomAlphanumeric()) - .nodeType(nodeType) - .build(); + .name("Record " + getRandomAlphanumeric()) + .nodeType(nodeType) + .build(); } /** @@ -133,22 +140,22 @@ public class FilePlanComponentsUtil /** * Creates an unfiled records container child record model with the given name and type * - * @param name The name of the unfiled records container child + * @param name The name of the unfiled records container child * @param nodeType The type of the record category child * @return The {@link UnfiledContainerChild} with the given details */ public static UnfiledContainerChild createUnfiledContainerChildRecordModel(String name, String nodeType) { return UnfiledContainerChild.builder() - .name(name) - .nodeType(nodeType) - .build(); + .name(name) + .nodeType(nodeType) + .build(); } /** * Creates a nonElectronic container child record model with all available properties for the non electronic records * - * @param name The name of the unfiled records container child + * @param name The name of the unfiled records container child * @param nodeType The type of the record category child * @return The {@link UnfiledContainerChild} with the given details */ @@ -156,19 +163,19 @@ public class FilePlanComponentsUtil String shelf, String storageLocation, Integer numberOfCopies, Integer physicalSize) { return UnfiledContainerChild.builder() - .name(name) - .nodeType(NON_ELECTRONIC_RECORD_TYPE) - .properties(UnfiledContainerChildProperties.builder() - .title(title) - .description(description) - .box(box) - .file(file) - .shelf(shelf) - .storageLocation(storageLocation) - .numberOfCopies(numberOfCopies) - .physicalSize(physicalSize) - .build()) - .build(); + .name(name) + .nodeType(NON_ELECTRONIC_RECORD_TYPE) + .properties(UnfiledContainerChildProperties.builder() + .title(title) + .description(description) + .box(box) + .file(file) + .shelf(shelf) + .storageLocation(storageLocation) + .numberOfCopies(numberOfCopies) + .physicalSize(physicalSize) + .build()) + .build(); } /** @@ -190,110 +197,110 @@ public class FilePlanComponentsUtil String shelf, String storageLocation, Integer numberOfCopies, Integer physicalSize) { return Record.builder() - .name(name) - .nodeType(NON_ELECTRONIC_RECORD_TYPE) - .properties(RecordProperties.builder() - .title(title) - .description(description) - .box(box) - .file(file) - .shelf(shelf) - .storageLocation(storageLocation) - .numberOfCopies(numberOfCopies) - .physicalSize(physicalSize) - .build()) - .build(); + .name(name) + .nodeType(NON_ELECTRONIC_RECORD_TYPE) + .properties(RecordProperties.builder() + .title(title) + .description(description) + .box(box) + .file(file) + .shelf(shelf) + .storageLocation(storageLocation) + .numberOfCopies(numberOfCopies) + .physicalSize(physicalSize) + .build()) + .build(); } /** * Creates a record model with the given name, description and title * - * @param name The name of the record + * @param name The name of the record * @param description The description of the record - * @param title The title of the record + * @param title The title of the record * @return The {@link Record} with the given details */ public static Record createRecordModel(String name, String description, String title) { return Record.builder() - .name(name) - .properties(RecordProperties.builder() - .description(description) - .title(title) - .build()) - .build(); + .name(name) + .properties(RecordProperties.builder() + .description(description) + .title(title) + .build()) + .build(); } /** * Creates a record category child model with the given name and type * - * @param name The name of the record category child + * @param name The name of the record category child * @param nodeType The type of the record category child * @return The {@link RecordCategoryChild} with the given details */ public static RecordCategoryChild createRecordCategoryChildModel(String name, String nodeType) { return RecordCategoryChild.builder() - .name(name) - .nodeType(nodeType) - .properties(RecordCategoryChildProperties.builder() - .title(TITLE_PREFIX + name) - .build()) - .build(); + .name(name) + .nodeType(nodeType) + .properties(RecordCategoryChildProperties.builder() + .title(TITLE_PREFIX + name) + .build()) + .build(); } /** * Creates a record category model with the given name and title * - * @param name The name of the record category + * @param name The name of the record category * @param title The title of the record category * @return The {@link RecordCategory} with the given details */ public static RecordCategory createRecordCategoryModel(String name, String title) { return RecordCategory.builder() - .name(name) - .nodeType(RECORD_CATEGORY_TYPE) - .properties(RecordCategoryProperties.builder() - .title(title) - .build()) - .build(); + .name(name) + .nodeType(RECORD_CATEGORY_TYPE) + .properties(RecordCategoryProperties.builder() + .title(title) + .build()) + .build(); } /** * Creates a record folder model with the given name and title * - * @param name The name of the record folder + * @param name The name of the record folder * @param title The title of the record folder * @return The {@link RecordFolder} with the given details */ public static RecordFolder createRecordFolderModel(String name, String title) { return RecordFolder.builder() - .name(name) - .nodeType(RECORD_FOLDER_TYPE) - .properties(RecordFolderProperties.builder() - .title(title) - .build()) - .build(); + .name(name) + .nodeType(RECORD_FOLDER_TYPE) + .properties(RecordFolderProperties.builder() + .title(title) + .build()) + .build(); } /** * Creates an unfiled records container child model with the given name and type * - * @param name The name of the unfiled records container child + * @param name The name of the unfiled records container child * @param nodeType The type of the record category child * @return The {@link UnfiledContainerChild} with the given details */ public static UnfiledContainerChild createUnfiledContainerChildModel(String name, String nodeType) { return UnfiledContainerChild.builder() - .name(name) - .nodeType(nodeType) - .properties(UnfiledContainerChildProperties.builder() - .title(TITLE_PREFIX + name) - .build()) - .build(); + .name(name) + .nodeType(nodeType) + .properties(UnfiledContainerChildProperties.builder() + .title(TITLE_PREFIX + name) + .build()) + .build(); } /** @@ -324,6 +331,32 @@ public class FilePlanComponentsUtil } } + /** + * Method to create a temporary file with specific size + * + * @param name file name + * @param sizeInMegaBytes size + * @return temporary file + */ + public static File createTempFile(final String name, long sizeInMegaBytes) + { + try + { + // Create file + final File file = File.createTempFile(name, ".txt"); + + RandomAccessFile raf = new RandomAccessFile(file, "rw"); + raf.setLength(sizeInMegaBytes * 1024 * 1024); + raf.close(); + + return file; + } + catch (Exception exception) + { + throw new RuntimeException("Unable to create test file.", exception); + } + } + /** * Helper method to verify all properties of a nonElectronic record * From f635bd975413b7baa2a0abd874d253572c0b6faa Mon Sep 17 00:00:00 2001 From: Eliza Stan <54021458+elizastan@users.noreply.github.com> Date: Mon, 2 Aug 2021 15:25:58 +0300 Subject: [PATCH 005/177] APPS-1068 : [AGS] Publish AGS-specific docker images from acs-packaging (#619) --- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 916cbeb9ba..0f0c31f2c9 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -14,7 +14,7 @@ ${project.build.directory}/${project.build.finalName}-war - alfresco/alfresco-governance-repository-community + alfresco/alfresco-governance-repository-community-base From 48af7ebe9ed805f33102641ac169ef2330266eb3 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 2 Aug 2021 13:16:51 +0000 Subject: [PATCH 006/177] [maven-release-plugin][skip ci] prepare release 11.95 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index af9673b898..7ef95a01c2 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.95-SNAPSHOT + 11.95 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index c9989c4898..bfc2c0a2e6 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.95-SNAPSHOT + 11.95 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 220edbd446..e664880126 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 842cc07794..5985559499 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.95-SNAPSHOT + 11.95 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0f0c31f2c9..fc630cdb55 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.95-SNAPSHOT + 11.95 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f4c00e6e41..63fea8431c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.95-SNAPSHOT + 11.95 diff --git a/amps/pom.xml b/amps/pom.xml index 28db9340dd..1d9818ecd7 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 1a21908162..c44528505d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.95-SNAPSHOT + 11.95 diff --git a/core/pom.xml b/core/pom.xml index ad2c229971..87564dfc59 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/data-model/pom.xml b/data-model/pom.xml index aa3b6072b0..c983e0f4dd 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 80e189dc1d..42aca5bd51 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index bf90de59dd..8f8eabe172 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/pom.xml b/packaging/pom.xml index e39ee413fe..897764a717 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index bae3119757..28d93ecf0b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 2bfa4a548a..779b998182 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 901246958d..9668a4fb28 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index b911d2d82f..8f88a000c9 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 01690096c8..f497346755 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 51a993a75b..d7d23ad20d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95-SNAPSHOT + 11.95 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 4ee6befcfb..1ee456ba04 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95-SNAPSHOT + 11.95 diff --git a/pom.xml b/pom.xml index edf0fe9fe2..fc856d0bb3 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.95-SNAPSHOT + 11.95 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.95 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6d93e5af4c..f8d6fad3c5 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 diff --git a/repository/pom.xml b/repository/pom.xml index c8f3898f3d..a2d544ec36 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95-SNAPSHOT + 11.95 From 9626f5ace6b998a6d1e8871e164ef5c8de38557c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 2 Aug 2021 13:16:57 +0000 Subject: [PATCH 007/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7ef95a01c2..226858cc6d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.95 + 11.96-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index bfc2c0a2e6..dd56d77f72 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.95 + 11.96-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e664880126..6bae6f61bf 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5985559499..eb0f615759 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.95 + 11.96-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index fc630cdb55..af0e1328d2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.95 + 11.96-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 63fea8431c..1a553179c9 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.95 + 11.96-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 1d9818ecd7..16bd6e0e8f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c44528505d..a40a247114 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.95 + 11.96-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 87564dfc59..c91e85b96a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index c983e0f4dd..62b36353ff 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 42aca5bd51..edca71e8c6 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 8f8eabe172..18b046ff2f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 897764a717..88973b7f56 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 28d93ecf0b..7c8787eca5 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 779b998182..cc8765d881 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 9668a4fb28..a171858629 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 8f88a000c9..202fe42ca5 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f497346755..b043eb31d9 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d7d23ad20d..426977cd5d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.95 + 11.96-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1ee456ba04..6e0f5ce0c0 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.95 + 11.96-SNAPSHOT diff --git a/pom.xml b/pom.xml index fc856d0bb3..7358e06077 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.95 + 11.96-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.95 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f8d6fad3c5..8d17938fb0 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a2d544ec36..70c3682a14 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.95 + 11.96-SNAPSHOT From e95100e429e7ba2d3f51d1e3afefcb32f18f2296 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 3 Aug 2021 14:16:24 +0100 Subject: [PATCH 008/177] Acs 1865 impl configs for da us (#634) * ACS-1781 Config set up and validation * ACS-1781 Unit tests for config validation * ACS-1865 Code tidy up * ACS-1865 Updates from PR review * ACS-1865 Updates from review --- .../directurl/RestApiDirectUrlConfig.java | 93 + .../org/alfresco/AppContext04TestSuite.java | 3 +- .../impl/RestApiDirectUrlConfigUnitTest.java | 132 + .../directurl/AbstractDirectUrlConfig.java | 81 + .../ContentStoreDirectUrlConfig.java | 134 + .../content/directurl/DirectUrlConfig.java | 41 + ...InvalidDirectAccessUrlConfigException.java | 44 + .../directurl/SystemWideDirectUrlConfig.java | 124 + .../alfresco/content-services-context.xml | 732 ++--- .../resources/alfresco/repository.properties | 2557 +++++++++-------- .../java/org/alfresco/AllUnitTestsSuite.java | 2 + .../ContentStoreDirectUrlConfigUnitTest.java | 234 ++ .../SystemWideDirectUrlConfigUnitTest.java | 153 + 13 files changed, 2723 insertions(+), 1607 deletions(-) create mode 100644 remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java create mode 100644 remote-api/src/test/java/org/alfresco/rest/api/impl/RestApiDirectUrlConfigUnitTest.java create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/AbstractDirectUrlConfig.java create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/DirectUrlConfig.java create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/InvalidDirectAccessUrlConfigException.java create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java create mode 100644 repository/src/test/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfigUnitTest.java create mode 100644 repository/src/test/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfigUnitTest.java diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java new file mode 100644 index 0000000000..3b231ae7e1 --- /dev/null +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java @@ -0,0 +1,93 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.api.impl.directurl; + +import org.alfresco.repo.content.directurl.AbstractDirectUrlConfig; +import org.alfresco.repo.content.directurl.InvalidDirectAccessUrlConfigException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * REST API direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class RestApiDirectUrlConfig extends AbstractDirectUrlConfig +{ + private static final Log logger = LogFactory.getLog(RestApiDirectUrlConfig.class); + + /** + * Configuration initialise + */ + public void init() + { + validate(); + } + + /** + * {@inheritDoc} + */ + @Override + public void validate() + { + // Disable direct access URLs for the REST API if any error found in the REST API direct access URL config + try + { + validateDirectAccessUrlConfig(); + } + catch (InvalidDirectAccessUrlConfigException ex) + { + logger.error("Disabling REST API direct access URLs due to configuration error: " + ex.getMessage()); + setEnabled(false); + } + } + + /* Helper method to validate the REST API direct access url configuration settings */ + private void validateDirectAccessUrlConfig() throws InvalidDirectAccessUrlConfigException + { + if (isEnabled()) + { + if (getDefaultExpiryTimeInSec() == null) + { + logger.warn(String.format("Default expiry time property is missing: setting to system-wide default [%s].", getSysWideDefaultExpiryTimeInSec())); + setDefaultExpiryTimeInSec(getSysWideDefaultExpiryTimeInSec()); + } + + if (getDefaultExpiryTimeInSec() < 1) + { + String errorMsg = String.format("REST API direct access URL default expiry time [%s] is invalid.", getDefaultExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + + if (getDefaultExpiryTimeInSec() > getSysWideMaxExpiryTimeInSec()) + { + String errorMsg = String.format("REST API direct access URL default expiry time [%s] exceeds system-wide maximum expiry time [%s].", + getDefaultExpiryTimeInSec(), getSysWideMaxExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + } + } +} diff --git a/remote-api/src/test/java/org/alfresco/AppContext04TestSuite.java b/remote-api/src/test/java/org/alfresco/AppContext04TestSuite.java index 9545280e76..4548e38d4c 100644 --- a/remote-api/src/test/java/org/alfresco/AppContext04TestSuite.java +++ b/remote-api/src/test/java/org/alfresco/AppContext04TestSuite.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2017 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -76,6 +76,7 @@ import org.junit.runners.Suite; org.alfresco.repo.web.scripts.site.SurfConfigTest.class, org.alfresco.repo.web.scripts.node.NodeWebScripTest.class, org.alfresco.rest.api.impl.CommentsImplUnitTest.class, + org.alfresco.rest.api.impl.RestApiDirectUrlConfigUnitTest.class }) public class AppContext04TestSuite { diff --git a/remote-api/src/test/java/org/alfresco/rest/api/impl/RestApiDirectUrlConfigUnitTest.java b/remote-api/src/test/java/org/alfresco/rest/api/impl/RestApiDirectUrlConfigUnitTest.java new file mode 100644 index 0000000000..e04c07338f --- /dev/null +++ b/remote-api/src/test/java/org/alfresco/rest/api/impl/RestApiDirectUrlConfigUnitTest.java @@ -0,0 +1,132 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.api.impl; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + +import org.alfresco.repo.content.directurl.SystemWideDirectUrlConfig; +import org.alfresco.rest.api.impl.directurl.RestApiDirectUrlConfig; +import org.junit.Before; +import org.junit.Test; + +/** + * Tests for REST API direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class RestApiDirectUrlConfigUnitTest +{ + private static final Boolean ENABLED = Boolean.TRUE; + private static final Boolean DISABLED = Boolean.FALSE; + + private static final Long DEFAULT_EXPIRY_TIME_IN_SECS = 20L; + + private RestApiDirectUrlConfig restApiDirectUrlConfig; + + @Before + public void setup() + { + this.restApiDirectUrlConfig = new RestApiDirectUrlConfig(); + SystemWideDirectUrlConfig sysConfig = new SystemWideDirectUrlConfig(); + sysConfig.setEnabled(ENABLED); + sysConfig.setDefaultExpiryTimeInSec(30L); + sysConfig.setMaxExpiryTimeInSec(300L); + restApiDirectUrlConfig.setSystemWideDirectUrlConfig(sysConfig); + } + + @Test + public void testValidConfig_RemainsEnabled() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + restApiDirectUrlConfig.validate(); + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + } + + @Test + public void testValidConfig_RemainsDisabled() + { + setupDirectAccessConfig(DISABLED, DEFAULT_EXPIRY_TIME_IN_SECS); + + assertFalse("Expected REST API direct URLs to be disabled", restApiDirectUrlConfig.isEnabled()); + restApiDirectUrlConfig.validate(); + assertFalse("Expected REST API direct URLs to be disabled", restApiDirectUrlConfig.isEnabled()); + } + + @Test + public void testValidConfig_DefaultExpiryTimeMissing() + { + setupDirectAccessConfig(ENABLED, null); + + assertNull("Expected REST API default expiry time to be null", restApiDirectUrlConfig.getDefaultExpiryTimeInSec()); + restApiDirectUrlConfig.validate(); + Long expectedDefaultExpiryTime = restApiDirectUrlConfig.getSysWideDefaultExpiryTimeInSec(); + assertEquals("Expected REST API default expiry time to be set to the system-wide default", expectedDefaultExpiryTime, restApiDirectUrlConfig.getDefaultExpiryTimeInSec()); + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeZero() + { + setupDirectAccessConfig(ENABLED, 0L); + + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + restApiDirectUrlConfig.validate(); + assertFalse("Expected REST API direct URLs to be disabled", restApiDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeNegative() + { + setupDirectAccessConfig(ENABLED, -1L); + + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + restApiDirectUrlConfig.validate(); + assertFalse("Expected REST API direct URLs to be disabled", restApiDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsSystemMax() + { + Long systemMax = restApiDirectUrlConfig.getSysWideMaxExpiryTimeInSec(); + setupDirectAccessConfig(ENABLED, systemMax + 1); + + assertTrue("Expected REST API direct URLs to be enabled", restApiDirectUrlConfig.isEnabled()); + restApiDirectUrlConfig.validate(); + assertFalse("Expected REST API direct URLs to be disabled", restApiDirectUrlConfig.isEnabled()); + } + + /* Helper method to set system-wide direct access url configuration settings */ + private void setupDirectAccessConfig(Boolean isEnabled, Long defaultExpiryTime) + { + restApiDirectUrlConfig.setEnabled(isEnabled); + restApiDirectUrlConfig.setDefaultExpiryTimeInSec(defaultExpiryTime); + } +} diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/AbstractDirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/AbstractDirectUrlConfig.java new file mode 100644 index 0000000000..db6ebef9e6 --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/AbstractDirectUrlConfig.java @@ -0,0 +1,81 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +/** + * Direct Access Url configuration settings. + * + * @author Sara Aspery + */ +public abstract class AbstractDirectUrlConfig implements DirectUrlConfig +{ + /** System-wide direct access URL configuration */ + private SystemWideDirectUrlConfig systemWideDirectUrlConfig; + + /** Direct access URL configuration settings */ + private Boolean enabled; + private Long defaultExpiryTimeInSec; + + public void setSystemWideDirectUrlConfig(SystemWideDirectUrlConfig systemWideDirectUrlConfig) + { + this.systemWideDirectUrlConfig = systemWideDirectUrlConfig; + } + + public void setEnabled(Boolean enabled) + { + this.enabled = enabled; + } + + public void setDefaultExpiryTimeInSec(Long defaultExpiryTimeInSec) + { + this.defaultExpiryTimeInSec = defaultExpiryTimeInSec; + } + + protected Boolean isSysWideEnabled() + { + return systemWideDirectUrlConfig.isEnabled(); + } + + public Long getSysWideDefaultExpiryTimeInSec() + { + return systemWideDirectUrlConfig.getDefaultExpiryTimeInSec(); + } + + public Long getSysWideMaxExpiryTimeInSec() + { + return systemWideDirectUrlConfig.getMaxExpiryTimeInSec(); + } + + public Boolean isEnabled() + { + return enabled; + } + + public Long getDefaultExpiryTimeInSec() + { + return defaultExpiryTimeInSec; + } +} diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java new file mode 100644 index 0000000000..79494718bf --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java @@ -0,0 +1,134 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * Content store direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class ContentStoreDirectUrlConfig extends AbstractDirectUrlConfig +{ + private static final Log logger = LogFactory.getLog(ContentStoreDirectUrlConfig.class); + + private Long maxExpiryTimeInSec; + + public void setMaxExpiryTimeInSec(Long maxExpiryTimeInSec) + { + this.maxExpiryTimeInSec = maxExpiryTimeInSec; + } + + public Long getMaxExpiryTimeInSec() + { + return maxExpiryTimeInSec; + } + + /** + * Configuration initialise + */ + public void init() + { + validate(); + } + + /** + * {@inheritDoc} + */ + @Override + public void validate() + { + // Disable direct access URLs for the content store if any error found in the content store direct access URL config + try + { + validateDirectAccessUrlConfig(); + } + catch (InvalidDirectAccessUrlConfigException ex) + { + logger.error("Disabling content store direct access URLs due to configuration error: " + ex.getMessage()); + setEnabled(false); + } + } + + /* Helper method to validate the content direct access url configuration settings */ + private void validateDirectAccessUrlConfig() throws InvalidDirectAccessUrlConfigException + { + if (isEnabled()) + { + if (getMaxExpiryTimeInSec() == null) + { + logger.warn(String.format("Maximum expiry time property is missing: setting to system-wide maximum [%s].", getSysWideMaxExpiryTimeInSec())); + setMaxExpiryTimeInSec(getSysWideMaxExpiryTimeInSec()); + } + else if (getMaxExpiryTimeInSec() > getSysWideMaxExpiryTimeInSec()) + { + String errorMsg = String.format("Content store direct access URL maximum expiry time [%s] exceeds system-wide maximum expiry time [%s].", + getMaxExpiryTimeInSec(), getSysWideMaxExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + + if (getDefaultExpiryTimeInSec() == null) + { + logger.warn(String.format("Default expiry time property is missing: setting to system-wide default [%s].", getSysWideDefaultExpiryTimeInSec())); + setDefaultExpiryTimeInSec(getSysWideDefaultExpiryTimeInSec()); + } + else if (getDefaultExpiryTimeInSec() > getMaxExpiryTimeInSec()) + { + logger.warn(String.format("Default expiry time property [%s] exceeds maximum expiry time for content store [%s]: setting to system-wide default [%s].", + getDefaultExpiryTimeInSec(), getMaxExpiryTimeInSec(), getSysWideDefaultExpiryTimeInSec())); + setDefaultExpiryTimeInSec(getSysWideDefaultExpiryTimeInSec()); + } + else if (getDefaultExpiryTimeInSec() > getSysWideDefaultExpiryTimeInSec()) + { + logger.warn(String.format("Default expiry time property [%s] exceeds system-wide default expiry time [%s]: setting to system-wide default.", + getDefaultExpiryTimeInSec(), getSysWideDefaultExpiryTimeInSec())); + setDefaultExpiryTimeInSec(getSysWideDefaultExpiryTimeInSec()); + } + + if (getDefaultExpiryTimeInSec() < 1) + { + String errorMsg = String.format("Content store direct access URL default expiry time [%s] is invalid.", getDefaultExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + + if (getDefaultExpiryTimeInSec() > getSysWideMaxExpiryTimeInSec()) + { + String errorMsg = String.format("Content store direct access URL default expiry time [%s] exceeds system-wide maximum expiry time [%s].", + getDefaultExpiryTimeInSec(), getSysWideMaxExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + + if (getDefaultExpiryTimeInSec() > getMaxExpiryTimeInSec()) + { + String errorMsg = String.format("Content store direct access URL default expiry time [%s] exceeds content store maximum expiry time [%s].", + getDefaultExpiryTimeInSec(), getMaxExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + } + } +} diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/DirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/DirectUrlConfig.java new file mode 100644 index 0000000000..68ed3a84da --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/DirectUrlConfig.java @@ -0,0 +1,41 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import org.alfresco.api.AlfrescoPublicApi; + +/** + * Direct Access Url configuration settings interface. + * + * @author Sara Aspery + */ +@AlfrescoPublicApi +public interface DirectUrlConfig +{ + Boolean isEnabled(); + Long getDefaultExpiryTimeInSec(); + void validate(); +} diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/InvalidDirectAccessUrlConfigException.java b/repository/src/main/java/org/alfresco/repo/content/directurl/InvalidDirectAccessUrlConfigException.java new file mode 100644 index 0000000000..5c6445ed5f --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/InvalidDirectAccessUrlConfigException.java @@ -0,0 +1,44 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import org.alfresco.error.AlfrescoRuntimeException; + +/** + * Runtime exception thrown when the direct access URL configuration settings are invalid. + * + * @author Sara Aspery + */ +public class InvalidDirectAccessUrlConfigException extends AlfrescoRuntimeException +{ + private static final long serialVersionUID = -6318313836484979887L; + + public InvalidDirectAccessUrlConfigException(String msg) + { + super(msg); + } +} + diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java new file mode 100644 index 0000000000..ecfa769e38 --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java @@ -0,0 +1,124 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * System-wide direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class SystemWideDirectUrlConfig implements DirectUrlConfig +{ + private static final Log logger = LogFactory.getLog(SystemWideDirectUrlConfig.class); + + /** Direct access url configuration settings */ + private Boolean enabled; + private Long defaultExpiryTimeInSec; + private Long maxExpiryTimeInSec; + + public void setEnabled(Boolean enabled) + { + this.enabled = enabled; + } + + public void setDefaultExpiryTimeInSec(Long defaultExpiryTimeInSec) + { + this.defaultExpiryTimeInSec = defaultExpiryTimeInSec; + } + + public void setMaxExpiryTimeInSec(Long maxExpiryTimeInSec) + { + this.maxExpiryTimeInSec = maxExpiryTimeInSec; + } + + public Boolean isEnabled() + { + return enabled; + } + + public Long getDefaultExpiryTimeInSec() + { + return defaultExpiryTimeInSec; + } + + public Long getMaxExpiryTimeInSec() + { + return maxExpiryTimeInSec; + } + + /** + * Configuration initialise + */ + public void init() + { + validate(); + } + + /** + * {@inheritDoc} + */ + @Override + public void validate() + { + // Disable direct access URLs system-wide if any error found in the system-wide direct access URL config + try + { + validateSystemDirectAccessUrlConfig(); + } + catch (InvalidDirectAccessUrlConfigException ex) + { + logger.error("Disabling system-wide direct access URLs due to configuration error: " + ex.getMessage()); + setEnabled(false); + } + } + + /* Helper method to validate the system-wide direct access url configuration settings */ + private void validateSystemDirectAccessUrlConfig() throws InvalidDirectAccessUrlConfigException + { + if (isEnabled()) + { + if (getDefaultExpiryTimeInSec() == null || getDefaultExpiryTimeInSec() < 1) + { + throw new InvalidDirectAccessUrlConfigException("System-wide direct access URL default expiry time is missing or invalid."); + } + + if (getMaxExpiryTimeInSec() == null || getMaxExpiryTimeInSec() < 1) + { + throw new InvalidDirectAccessUrlConfigException("System-wide direct access URL maximum expiry time is missing or invalid."); + } + + if (getDefaultExpiryTimeInSec() > getMaxExpiryTimeInSec()) + { + String errorMsg = String.format("System-wide direct access URL default expiry time [%s] exceeds maximum expiry time [%s].", + getDefaultExpiryTimeInSec(), getMaxExpiryTimeInSec()); + throw new InvalidDirectAccessUrlConfigException(errorMsg); + } + } + } +} diff --git a/repository/src/main/resources/alfresco/content-services-context.xml b/repository/src/main/resources/alfresco/content-services-context.xml index aed14cdd9e..ab02159381 100644 --- a/repository/src/main/resources/alfresco/content-services-context.xml +++ b/repository/src/main/resources/alfresco/content-services-context.xml @@ -1,359 +1,373 @@ - - - - - - - false - - - ContentStore - - - - ${filecontentstore.subsystem.name} - - - - manager - - - - - - - - true - - - ContentStore - - - unencrypted - - - - managed - unencrypted - - - - - - - - - - - fileContentStore - - - - org.alfresco.repo.content.ContentStore - org.alfresco.repo.content.ContentStoreCaps - - - - - - - - - - - - - - - - ${dir.contentstore.deleted} - - - - - - - - - - - - - - - - - - - - - - ${system.content.orphanProtectDays} - - - ${system.content.deletionFailureAction} - - - - - - - - - - - - - - - - - - - - - ${system.content.cleanerBatchSize} - - - - - - ${system.content.eagerOrphanCleanup} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${policy.content.update.ignoreEmpty} - - - - - - - - - - - - - - - - - - UTF-8 - - - - - - - - - - - - - - - - - - - - - - - classpath:alfresco/mimetype/mimetype-map.xml - classpath:alfresco/mimetype/mimetype-map-openoffice.xml - classpath*:alfresco/module/*/mimetype-map*.xml - classpath*:alfresco/extension/mimetype/*-map.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - classpath:alfresco/ml/content-filter-lang.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EEE, d MMM yyyy HH:mm:ss Z - EEE, d MMM yy HH:mm:ss Z - d MMM yyyy HH:mm:ss Z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.alfresco.repo.content.transform.TransformerConfigMBean - - - - - - - - - - - transformerDebugLog - - - - org.apache.commons.logging.Log - - - - - - - - - - - transformerLog - - - - org.apache.commons.logging.Log - - - - - - + + + + + + + false + + + ContentStore + + + + ${filecontentstore.subsystem.name} + + + + manager + + + + + + + + true + + + ContentStore + + + unencrypted + + + + managed + unencrypted + + + + + + + + + + + fileContentStore + + + + org.alfresco.repo.content.ContentStore + org.alfresco.repo.content.ContentStoreCaps + + + + + + + + + + + + + + + + ${dir.contentstore.deleted} + + + + + + + + + + + + + + + + + + + + + + ${system.content.orphanProtectDays} + + + ${system.content.deletionFailureAction} + + + + + + + + + + + + + + + + + + + + + ${system.content.cleanerBatchSize} + + + + + + ${system.content.eagerOrphanCleanup} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${policy.content.update.ignoreEmpty} + + + + + + + + + + + + + + + + + + UTF-8 + + + + + + + + + + + + + + + + + + + + + + + classpath:alfresco/mimetype/mimetype-map.xml + classpath:alfresco/mimetype/mimetype-map-openoffice.xml + classpath*:alfresco/module/*/mimetype-map*.xml + classpath*:alfresco/extension/mimetype/*-map.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + classpath:alfresco/ml/content-filter-lang.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + EEE, d MMM yyyy HH:mm:ss Z + EEE, d MMM yy HH:mm:ss Z + d MMM yyyy HH:mm:ss Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.alfresco.repo.content.transform.TransformerConfigMBean + + + + + + + + + + + transformerDebugLog + + + + org.apache.commons.logging.Log + + + + + + + + + + + transformerLog + + + + org.apache.commons.logging.Log + + + + + + + + + + + + + + + + + + + + diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index ef6bade8a1..4979b06b90 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -1,1247 +1,1310 @@ -# Repository configuration - -repository.name=Main Repository - -# Schema number -version.schema=15001 - -# Directory configuration - -dir.root=./alf_data - -dir.contentstore=${dir.root}/contentstore -dir.contentstore.deleted=${dir.root}/contentstore.deleted -dir.contentstore.bucketsPerMinute=0 - -# ContentStore subsystem: default choice -filecontentstore.subsystem.name=unencryptedContentStore - -# The location of cached content -dir.cachedcontent=${dir.root}/cachedcontent - -# The value for the maximum permitted size in bytes of all content. -# No value (or a negative long) will be taken to mean that no limit should be applied. -# See content-services-context.xml -system.content.maximumFileSizeLimit= - -# -# The server mode. Set value in alfresco-global.properties -# UNKNOWN | TEST | BACKUP | PRODUCTION -# -system.serverMode=UNKNOWN - -# The location for lucene index files -dir.indexes=${dir.root}/lucene-indexes - -# The location for index backups -dir.indexes.backup=${dir.root}/backup-lucene-indexes - -# The location for lucene index locks -dir.indexes.lock=${dir.indexes}/locks - -#Directory to find external license -dir.license.external=. -# Spring resource location of external license files -location.license.external=file://${dir.license.external}/*.lic -# Spring resource location of embedded license files -location.license.embedded=/WEB-INF/alfresco/license/*.lic -# Spring resource location of license files on shared classpath -location.license.shared=classpath*:/alfresco/extension/license/*.lic - -# WebDAV initialization properties -system.webdav.servlet.enabled=true -system.webdav.url.path.prefix= -system.webdav.storeName=${protocols.storeName} -system.webdav.rootPath=${protocols.rootPath} -# File name patterns that trigger rename shuffle detection -# pattern is used by move - tested against full path after it has been lower cased. -system.webdav.renameShufflePattern=(.*/\\..*)|(.*[a-f0-9]{8}+$)|(.*\\.tmp$)|(.*atmp[0-9]+$)|(.*\\.wbk$)|(.*\\.bak$)|(.*\\~$)|(.*backup.*\\.do[ct]{1}[x]?[m]?$)|(.*\\.sb\\-\\w{8}\\-\\w{6}$) -system.webdav.activities.enabled=false - - -system.workflow.jbpm.comment.property.max.length=-1 -system.workflow.comment.property.max.length=4000 - -#Determines if Activiti definitions are visible -system.workflow.engine.activiti.definitions.visible=true - - -# Determines if the Activiti engine is enabled -system.workflow.engine.activiti.enabled=true -system.workflow.engine.activiti.idblocksize=100 -system.workflow.engine.activiti.taskvariableslimit=20000 - -# Determines if the workflows that are deployed to the activiti engine should -# be deployed in the tenant-context of the thread IF the tenant-service is enabled -# If set to false, all workflows deployed will be shared among tenants. Recommended -# setting is true unless there is a good reason to not allow deploy tenant-specific -# worklfows when a MT-environment is set up. -system.workflow.deployWorkflowsInTenant=true -#Determines if historic process instance are retained in case of canceling a process instance -system.workflow.engine.activiti.retentionHistoricProcessInstance=false - -# The maximum number of groups to check for pooled tasks. For performance -# reasons, this is limited to 500 by default. -system.workflow.maxAuthoritiesForPooledTasks=500 - -# The maximum number of pooled tasks to return in a query. It may be necessary -# to limit this depending on UI limitations. -system.workflow.maxPooledTasks=-1 - -# The maximum number of reviewers for "Group Review and Approve" workflow. -# Use '0' for unlimited. -system.workflow.maxGroupReviewers=0 - -index.subsystem.name=noindex - -# ######################################### # -# Index Tracking Configuration # -# ######################################### # -# -# Index tracking information of a certain age is cleaned out by a scheduled job. -# Any clustered system that has been offline for longer than this period will need to be seeded -# with a more recent backup of the Lucene indexes or the indexes will have to be fully rebuilt. -# Use -1 to disable purging. This can be switched on at any stage. -index.tracking.minRecordPurgeAgeDays=30 -# Unused transactions will be purged in chunks determined by commit time boundaries. 'index.tracking.purgeSize' specifies the size -# of the chunk (in ms). Default is a couple of hours. -index.tracking.purgeSize=7200000 - -# Change the failure behaviour of the configuration checker -system.bootstrap.config_check.strict=true - - -# -# How long should shutdown wait to complete normally before -# taking stronger action and calling System.exit() -# in ms, 10,000 is 10 seconds -# -shutdown.backstop.timeout=10000 -shutdown.backstop.enabled=false - -# Server Single User Mode -# note: -# only allow named user (note: if blank or not set then will allow all users) -# assuming maxusers is not set to 0 -#server.singleuseronly.name=admin - -# Server Max Users - limit number of users with non-expired tickets -# note: -# -1 allows any number of users, assuming not in single-user mode -# 0 prevents further logins, including the ability to enter single-user mode -server.maxusers=-1 - -# -# Disable all shared caches (mutable and immutable) -# These properties are used for diagnostic purposes -system.cache.disableMutableSharedCaches=false -system.cache.disableImmutableSharedCaches=false - -# The maximum capacity of the parent assocs cache (the number of nodes whose parents can be cached) -system.cache.parentAssocs.maxSize=130000 - -# The average number of parents expected per cache entry. This parameter is multiplied by the above -# value to compute a limit on the total number of cached parents, which will be proportional to the -# cache's memory usage. The cache will be pruned when this limit is exceeded to avoid excessive -# memory usage. -system.cache.parentAssocs.limitFactor=8 - -# -# Properties to limit resources spent on individual searches -# -# The maximum time spent pruning results -system.acl.maxPermissionCheckTimeMillis=10000 -# The maximum number of search results to perform permission checks against -system.acl.maxPermissionChecks=1000 -system.acl.maxPermissionCheckEnabled=false - -# The maximum number of filefolder list results -system.filefolderservice.defaultListMaxResults=5000 -# DEPRECATED: Use 'system.auditableData.preserve' -system.preserve.modificationData=false -# The default to preserve all cm:auditable data on a node when the process is not directly driven by a user action -system.auditableData.preserve=${system.preserve.modificationData} -# Specific control of how the FileFolderService treats cm:auditable data when performing moves -system.auditableData.FileFolderService=${system.auditableData.preserve} -# Specific control of whether ACL changes on a node trigger the cm:auditable aspect -system.auditableData.ACLs=${system.auditableData.preserve} - -# Properties to control read permission evaluation for acegi -system.readpermissions.optimise=true -system.readpermissions.bulkfetchsize=1000 - -# -# Manually control how the system handles maximum string lengths. -# Any zero or negative value is ignored. -# Only change this after consulting support or reading the appropriate Javadocs for -# org.alfresco.repo.domain.schema.SchemaBootstrap for V2.1.2. -# Before database migration, the string value storage may need to be adjusted using the scheduled job -system.maximumStringLength=-1 -system.maximumStringLength.jobCronExpression=* * * * * ? 2099 -system.maximumStringLength.jobQueryRange=10000 -system.maximumStringLength.jobThreadCount=4 - -# -# Limit hibernate session size by trying to amalgamate events for the L2 session invalidation -# - hibernate works as is up to this size -# - after the limit is hit events that can be grouped invalidate the L2 cache by type and not instance -# events may not group if there are post action listener registered (this is not the case with the default distribution) -system.hibernateMaxExecutions=20000 - -# -# Determine if modification timestamp propagation from child to parent nodes is respected or not. -# Even if 'true', the functionality is only supported for child associations that declare the -# 'propagateTimestamps' element in the dictionary definition. -system.enableTimestampPropagation=true - -# -# Enable system model integrity checking. -# WARNING: Changing this is unsupported; bugs may corrupt data -system.integrity.enabled=true -# Do integrity violations fail transactions -# WARNING: Changing this is unsupported; bugs may corrupt data -system.integrity.failOnViolation=true -# The number of errors to report when violations are detected -system.integrity.maxErrorsPerTransaction=5 -# Add call stacks to integrity events so that errors are logged with possible causes -# WARNING: This is expensive and should only be switched on for diagnostic purposes -system.integrity.trace=false - -# -# Decide if content should be removed from the system immediately after being orphaned. -# Do not change this unless you have examined the impact it has on your backup procedures. -system.content.eagerOrphanCleanup=false -# The number of days to keep orphaned content in the content stores. -# This has no effect on the 'deleted' content stores, which are not automatically emptied. -system.content.orphanProtectDays=14 -# The action to take when a store or stores fails to delete orphaned content -# IGNORE: Just log a warning. The binary remains and the record is expunged -# KEEP_URL: Log a warning and create a URL entry with orphan time 0. It won't be processed or removed. -system.content.deletionFailureAction=IGNORE -# The CRON expression to trigger the deletion of resources associated with orphaned content. -system.content.orphanCleanup.cronExpression=0 0 4 * * ? -# The batch size user by the content store cleaner -system.content.cleanerBatchSize=1000 - -# The CRON expression to trigger the cleanup of deleted nodes and dangling transactions that are old enough -system.nodeServiceCleanup.cronExpression=0 0 21 * * ? - -# When transforming archive files (.zip etc) into text representations (such as -# for full text indexing), should the files within the archive be processed too? -# If enabled, transformation takes longer, but searches of the files find more. -transformer.Archive.includeContents=false - -# Database configuration -db.schema.name= -db.schema.stopAfterSchemaBootstrap=false -db.schema.update=true -db.schema.update.lockRetryCount=24 -db.schema.update.lockRetryWaitSeconds=5 -db.driver=org.gjt.mm.mysql.Driver -db.name=alfresco -db.url=jdbc:mysql:///${db.name} -db.username=alfresco -db.password=alfresco -db.pool.initial=10 -db.pool.max=275 -db.txn.isolation=-1 -db.pool.statements.enable=true -db.pool.statements.max=40 -db.pool.min=10 -db.pool.idle=10 -db.pool.wait.max=5000 - -db.pool.validate.query= -db.pool.evict.interval=600000 -db.pool.evict.idle.min=1800000 -# -# note: for 'db.pool.evict.num.tests' see http://commons.apache.org/dbcp/configuration.html (numTestsPerEvictionRun) -# and also following extract from "org.apache.commons.pool.impl.GenericKeyedObjectPool" (1.5.5) -# -# * The number of objects to examine during each run of the idle object evictor thread (if any). -# * When a negative value is supplied, ceil({@link #getNumIdle})/abs({@link #getNumTestsPerEvictionRun}) -# * tests will be run. I.e., when the value is -n, roughly one nth of the -# * idle objects will be tested per run. -# -db.pool.evict.num.tests=-1 - -db.pool.evict.validate=false -db.pool.validate.borrow=true -db.pool.validate.return=false - -db.pool.abandoned.detect=false -db.pool.abandoned.time=300 -# -# db.pool.abandoned.log=true (logAbandoned) adds overhead (http://commons.apache.org/dbcp/configuration.html) -# and also requires db.pool.abandoned.detect=true (removeAbandoned) -# -db.pool.abandoned.log=false - - -# Audit configuration -audit.enabled=true -audit.tagging.enabled=true -audit.alfresco-access.enabled=false -audit.alfresco-access.sub-actions.enabled=false -audit.cmischangelog.enabled=false -audit.dod5015.enabled=false -# Setting this flag to true will force startup failure when invalid audit configurations are detected -audit.config.strict=false -# Audit map filter for AccessAuditor - restricts recorded events to user driven events -audit.filter.alfresco-access.default.enabled=false -audit.filter.alfresco-access.transaction.user=~System;~null;.* -audit.filter.alfresco-access.transaction.type=cm:folder;cm:content;st:site -audit.filter.alfresco-access.transaction.path=~/sys:archivedItem;~/ver:;.* - - -# System Configuration -system.store=system://system -system.descriptor.childname=sys:descriptor -system.descriptor.current.childname=sys:descriptor-current - -# User config -alfresco_user_store.store=user://alfrescoUserStore -alfresco_user_store.system_container.childname=sys:system -alfresco_user_store.user_container.childname=sys:people - -# note: default admin username - should not be changed after installation -alfresco_user_store.adminusername=admin - -# Initial password - editing this will not have any effect once the repository is installed -alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634 - -# note: default guest username - should not be changed after installation -alfresco_user_store.guestusername=guest - -# Used to move home folders to a new location -home_folder_provider_synchronizer.enabled=false -home_folder_provider_synchronizer.override_provider= -home_folder_provider_synchronizer.keep_empty_parents=false - -# Spaces Archive Configuration -spaces.archive.store=archive://SpacesStore - -# Spaces Configuration -spaces.store=workspace://SpacesStore -spaces.company_home.childname=app:company_home -spaces.guest_home.childname=app:guest_home -spaces.dictionary.childname=app:dictionary -spaces.templates.childname=app:space_templates -spaces.imap_attachments.childname=cm:Imap Attachments -spaces.imap_home.childname=cm:Imap Home -spaces.imapConfig.childname=app:imap_configs -spaces.imap_templates.childname=app:imap_templates -spaces.scheduled_actions.childname=cm:Scheduled Actions -spaces.emailActions.childname=app:email_actions -spaces.searchAction.childname=cm:search -spaces.templates.content.childname=app:content_templates -spaces.templates.email.childname=app:email_templates -spaces.templates.email.invite1.childname=app:invite_email_templates -spaces.templates.email.notify.childname=app:notify_email_templates -spaces.templates.email.following.childname=app:following -spaces.templates.rss.childname=app:rss_templates -spaces.savedsearches.childname=app:saved_searches -spaces.scripts.childname=app:scripts -spaces.content_forms.childname=app:forms -spaces.user_homes.childname=app:user_homes -spaces.user_homes.regex.key=userName -spaces.user_homes.regex.pattern= -spaces.user_homes.regex.group_order= -spaces.sites.childname=st:sites -spaces.templates.email.invite.childname=cm:invite -spaces.templates.email.activities.childname=cm:activities -spaces.rendition.rendering_actions.childname=app:rendering_actions -spaces.replication.replication_actions.childname=app:replication_actions -spaces.transfers.childname=app:transfers -spaces.transfer_groups.childname=app:transfer_groups -spaces.transfer_temp.childname=app:temp -spaces.inbound_transfer_records.childname=app:inbound_transfer_records -spaces.webscripts.childname=cm:webscripts -spaces.extension_webscripts.childname=cm:extensionwebscripts -spaces.models.childname=app:models -spaces.workflow.definitions.childname=app:workflow_defs -spaces.templates.email.workflowemailnotification.childname=cm:workflownotification -spaces.nodetemplates.childname=app:node_templates -spaces.shared.childname=app:shared -spaces.solr_facets.root.childname=srft:facets -spaces.smartfolders.childname=app:smart_folders -spaces.smartdownloads.childname=app:smart_downloads -spaces.transfer_summary_report.location=/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.transfers.childname}/${spaces.inbound_transfer_records.childname} -spaces.quickshare.link_expiry_actions.childname=app:quick_share_link_expiry_actions - - -# ADM VersionStore Configuration -version.store.initialVersion=true -version.store.enableAutoVersioning=true -version.store.enableAutoVersionOnUpdateProps=false -version.store.deprecated.lightWeightVersionStore=workspace://lightWeightVersionStore -version.store.version2Store=workspace://version2Store - -# Optional Comparator class name to sort versions. -# Set to: org.alfresco.repo.version.common.VersionLabelComparator -# if upgrading from a version that used unordered sequences in a cluster. -version.store.versionComparatorClass= - -# Folders for storing people -system.system_container.childname=sys:system -system.people_container.childname=sys:people -system.authorities_container.childname=sys:authorities -system.zones_container.childname=sys:zones - -# Folders for storing workflow related info -system.workflow_container.childname=sys:workflow - -# Folder for storing shared remote credentials -system.remote_credentials_container.childname=sys:remote_credentials - -# Folder for storing syncset definitions -system.syncset_definition_container.childname=sys:syncset_definitions - -# Folder for storing download archives -system.downloads_container.childname=sys:downloads - -# Folder for storing IdP's certificate definitions -system.certificate_container.childname=sys:samlcertificate - -# Are user names case sensitive? -user.name.caseSensitive=false -domain.name.caseSensitive=false -domain.separator= - -#Format caption extracted from the XML Schema. -xforms.formatCaption=true - -# ECM content usages/quotas -system.usages.enabled=false -system.usages.clearBatchSize=0 -system.usages.updateBatchSize=50 - -# Repository endpoint - used by Activity Service -repo.remote.endpoint=/service - -# Some authentication mechanisms may need to create people -# in the repository on demand. This enables that feature. -# If disabled an error will be generated for missing -# people. If enabled then a person will be created and -# persisted. -create.missing.people=${server.transaction.allow-writes} - -# Create home folders (unless disabled, see next property) as people are created (true) or create them lazily (false) -home.folder.creation.eager=true -# Disable home folder creation - if true then home folders are not created (neither eagerly nor lazily) -home.folder.creation.disabled=false - -# Should we consider zero byte content to be the same as no content when firing -# content update policies? Prevents 'premature' firing of inbound content rules -# for some clients such as Mac OS X Finder -policy.content.update.ignoreEmpty=true - -# Default value of alfresco.rmi.services.host is 0.0.0.0 which means 'listen on all adapters'. -# This allows connections to JMX both remotely and locally. -# -alfresco.rmi.services.port=50500 -alfresco.rmi.services.external.host=localhost -alfresco.rmi.services.host=0.0.0.0 - -# If the RMI address is in-use, how many retries should be done before aborting -# Default value of alfresco.rmi.services.retries is 0 which means 'Don't retry if the address is in-use' -alfresco.rmi.services.retries=4 -# How long in milliseconds to wait after a failed server socket bind, before retrying -alfresco.rmi.services.retryInterval=250 - -# RMI service ports for the individual services. -# These eight services are available remotely. -# -# Assign individual ports for each service for best performance -# or run several services on the same port, you can even run everything on 50500 if -# running through a firewall. -# -# Specify 0 to use a random unused port. -# -monitor.rmi.service.port=50508 - -# -# enable or disable individual RMI services -# -monitor.rmi.service.enabled=false - - -# Should the Mbean server bind to an existing server. Set to true for most application servers. -# false for WebSphere clusters. -mbean.server.locateExistingServerIfPossible=true - -# Rendition Service 2 -renditionService2.enabled=true - -# Thumbnail Service -system.thumbnail.generate=true - -# when creating doc via CMIS - optionally configure set of renditions names to request async -cmis.create.doc.request.renditions.set= - -# Default thumbnail limits -# When creating thumbnails, only use the first pageLimit pages -system.thumbnail.definition.default.timeoutMs=-1 -system.thumbnail.definition.default.readLimitTimeMs=-1 -system.thumbnail.definition.default.maxSourceSizeKBytes=-1 -system.thumbnail.definition.default.readLimitKBytes=-1 -system.thumbnail.definition.default.pageLimit=-1 -system.thumbnail.definition.default.maxPages=-1 - -# Max mimetype sizes to create thumbnail icons -system.thumbnail.mimetype.maxSourceSizeKBytes.pdf=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.txt=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.docx=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.xlsx=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.pptx=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.odt=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.ods=-1 -system.thumbnail.mimetype.maxSourceSizeKBytes.odp=-1 - -# Configuration for handling of failing thumbnails. -# See NodeEligibleForRethumbnailingEvaluator's javadoc for details. -# -# Retry periods limit the frequency with which the repository will attempt to create Share thumbnails -# for content nodes which have previously failed in their thumbnail attempts. -# These periods are in seconds. -# -# 604800s = 60s * 60m * 24h * 7d = 1 week -system.thumbnail.retryPeriod=60 -system.thumbnail.retryCount=2 -system.thumbnail.quietPeriod=604800 -system.thumbnail.quietPeriodRetriesEnabled=true -system.thumbnail.redeployStaticDefsOnStartup=true - -content.metadata.async.extract.enabled=true -content.metadata.async.embed.enabled=true - -# The default timeout for metadata mapping extracters -content.metadataExtracter.default.timeoutMs=20000 - -# Local transformer urls to T-engines to service transform requests via http. Enabled by default. -localTransform.core-aio.url=http://localhost:8090/ - -# When a local transformer .url is set, this value indicates the amount of time to wait after a connection failure -# before retrying the connection to allow a docker container to (re)start. -localTransform.core-aio.startupRetryPeriodSeconds=60 - -# Property to enable upgrade from 2.1-A -V2.1-A.fixes.to.schema=0 -#V2.1-A.fixes.to.schema=82 - -# The default authentication chain -authentication.chain=alfrescoNtlm1:alfrescoNtlm - -# Do authentication tickets expire or live for ever? -authentication.ticket.ticketsExpire=true - -# If ticketsEpire is true then how they should expire? -# Valid values are: AFTER_INACTIVITY, AFTER_FIXED_TIME, DO_NOT_EXPIRE -# The default is AFTER_FIXED_TIME -authentication.ticket.expiryMode=AFTER_INACTIVITY - -# If authentication.ticket.ticketsExpire is true and -# authentication.ticket.expiryMode is AFTER_FIXED_TIME or AFTER_INACTIVITY, -# this controls the minimum period for which tickets are valid. -# The default is PT1H for one hour. -authentication.ticket.validDuration=PT1H - -# Use one ticket for all user sessions -# For the pre 4.2 behaviour of one ticket per session set this to false. -authentication.ticket.useSingleTicketPerUser=true - -authentication.alwaysAllowBasicAuthForAdminConsole.enabled=true -authentication.getRemoteUserTimeoutMilliseconds=10000 - -# FTP access -ftp.enabled=false - -# Default root path for protocols -protocols.storeName=${spaces.store} -protocols.rootPath=/${spaces.company_home.childname} - -# OpenCMIS -opencmis.connector.default.store=${spaces.store} -opencmis.connector.default.rootPath=/${spaces.company_home.childname} -opencmis.connector.default.typesDefaultMaxItems=500 -opencmis.connector.default.typesDefaultDepth=-1 -opencmis.connector.default.objectsDefaultMaxItems=10000 -opencmis.connector.default.objectsDefaultDepth=100 -opencmis.connector.default.contentChangesDefaultMaxItems=10000 -opencmis.connector.default.openHttpSession=false -opencmis.activities.enabled=true -opencmis.bulkUpdateProperties.maxItemsSize=1000 -opencmis.bulkUpdateProperties.batchSize=20 -opencmis.bulkUpdateProperties.workerThreads=2 -opencmis.maxContentSizeMB=4096 -opencmis.memoryThresholdKB=4096 - -# URL generation overrides - -# if true, the context path of OpenCMIS generated urls will be set to "opencmis.context.value", otherwise it will be taken from the request url -opencmis.context.override=false -opencmis.context.value= -# if true, the servlet path of OpenCMIS generated urls will be set to "opencmis.servletpath.value", otherwise it will be taken from the request url -opencmis.servletpath.override=false -opencmis.servletpath.value= -opencmis.server.override=false -opencmis.server.value= - -# IMAP -imap.server.enabled=false -imap.server.port=143 -imap.server.attachments.extraction.enabled=true - -# Default IMAP mount points -imap.config.home.store=${spaces.store} -imap.config.home.rootPath=/${spaces.company_home.childname} -imap.config.home.folderPath=${spaces.imap_home.childname} -imap.config.server.mountPoints=AlfrescoIMAP -imap.config.server.mountPoints.default.mountPointName=IMAP -imap.config.server.mountPoints.default.modeName=ARCHIVE -imap.config.server.mountPoints.default.store=${spaces.store} -imap.config.server.mountPoints.default.rootPath=${protocols.rootPath} -imap.config.server.mountPoints.value.AlfrescoIMAP.mountPointName=Alfresco IMAP -imap.config.server.mountPoints.value.AlfrescoIMAP.modeName=MIXED - -#Imap extraction settings -#imap.attachments.mode: -# SEPARATE -- All attachments for each email will be extracted to separate folder. -# COMMON -- All attachments for all emails will be extracted to one folder. -# SAME -- Attachments will be extracted to the same folder where email lies. -imap.attachments.mode=SEPARATE -imap.attachments.folder.store=${spaces.store} -imap.attachments.folder.rootPath=/${spaces.company_home.childname} -imap.attachments.folder.folderPath=${spaces.imap_attachments.childname} - -# Activities Feed - refer to subsystem - -# Feed max ID range to limit maximum number of entries -activities.feed.max.idRange=1000000 -# Feed max size (number of entries) -activities.feed.max.size=200 -# Feed max age (eg. 44640 mins => 31 days) -activities.feed.max.ageMins=44640 - -activities.feed.generator.jsonFormatOnly=true -activities.feed.fetchBatchSize=250 -activities.feedNotifier.batchSize=200 -activities.feedNotifier.numThreads=2 - -# Subsystem unit test values. Will not have any effect on production servers -subsystems.test.beanProp.default.longProperty=123456789123456789 -subsystems.test.beanProp.default.anotherStringProperty=Global Default -subsystems.test.beanProp=inst1,inst2,inst3 -subsystems.test.beanProp.value.inst2.boolProperty=true -subsystems.test.beanProp.value.inst3.anotherStringProperty=Global Instance Default -subsystems.test.simpleProp2=true -subsystems.test.simpleProp3=Global Default3 - -# Default Async Action Thread Pool -default.async.action.threadPriority=1 -default.async.action.corePoolSize=8 -default.async.action.maximumPoolSize=20 - -# Deployment Service -deployment.service.numberOfSendingThreads=5 -deployment.service.corePoolSize=2 -deployment.service.maximumPoolSize=3 -deployment.service.threadPriority=5 -# How long to wait in mS before refreshing a target lock - detects shutdown servers -deployment.service.targetLockRefreshTime=60000 -# How long to wait in mS from the last communication before deciding that deployment has failed, possibly -# the destination is no longer available? -deployment.service.targetLockTimeout=3600000 -# Deployment method used to deploy this Alfresco instance (DEFAULT, INSTALLER, DOCKER_COMPOSE, HELM_CHART, ANSIBLE, ZIP, QUICK_START) -deployment.method=DEFAULT - -#Invitation Service -# Should send emails as part of invitation process. -notification.email.siteinvite=true -# Moderated invite Activiti workflow -site.invite.moderated.workflowId=activiti$activitiInvitationModerated -# Add intneral users Activiti workflow (use activiti$activitiInvitationNominated to revert to requiring accept of invite for internal users) -site.invite.nominated.workflowId=activiti$activitiInvitationNominatedAddDirect -# Add external users Activiti workflow -site.invite.nominatedExternal.workflowId=activiti$activitiInvitationNominated - -# Replication Service -replication.enabled=false - -# Transfer Service -transferservice.receiver.enabled=false -transferservice.receiver.stagingDir=${java.io.tmpdir}/alfresco-transfer-staging -# -# How long to wait in mS before refreshing a transfer lock - detects shutdown servers -# Default 1 minute. -transferservice.receiver.lockRefreshTime=60000 -# -# How many times to attempt retry the transfer lock -transferservice.receiver.lockRetryCount=3 -# How long to wait, in mS, before retrying the transfer lock -transferservice.receiver.lockRetryWait=100 -# -# How long to wait, in mS, since the last contact with from the client before -# timing out a transfer. Needs to be long enough to cope with network delays and "thinking -# time" for both source and destination. Default 5 minutes. -transferservice.receiver.lockTimeOut=300000 - -# OrphanReaper -orphanReaper.lockRefreshTime=60000 -orphanReaper.lockTimeOut=3600000 - - -# security -security.anyDenyDenies=true -# Whether to post-process denies. Only applies to solr4+ when anyDenyDenies is true. -security.postProcessDenies=false - -# -# Encryption properties -# -# default keystores location -dir.keystore=classpath:alfresco/keystore - -# general encryption parameters -encryption.keySpec.class=org.alfresco.encryption.DESEDEKeyGenerator -encryption.keyAlgorithm=AES -encryption.cipherAlgorithm=AES/CBC/PKCS5Padding - -# secret key keystore configuration -encryption.keystore.location=${dir.keystore}/keystore -# configuration via metadata is deprecated -encryption.keystore.keyMetaData.location= -encryption.keystore.provider= -encryption.keystore.type=pkcs12 - -# backup secret key keystore configuration -encryption.keystore.backup.location=${dir.keystore}/backup-keystore -# configuration via metadata is deprecated -encryption.keystore.backup.keyMetaData.location= -encryption.keystore.backup.provider= -encryption.keystore.backup.type=pkcs12 - -# Should encryptable properties be re-encrypted with new encryption keys on botstrap? -encryption.bootstrap.reencrypt=false - -# mac/md5 encryption -encryption.mac.messageTimeout=30000 -encryption.mac.algorithm=HmacSHA1 - -# ssl encryption -encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore -encryption.ssl.keystore.provider= -encryption.ssl.keystore.type=JCEKS -# configuration via metadata is deprecated -encryption.ssl.keystore.keyMetaData.location= -encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore -encryption.ssl.truststore.provider= -encryption.ssl.truststore.type=JCEKS -# configuration via metadata is deprecated -encryption.ssl.truststore.keyMetaData.location= - -# Re-encryptor properties -encryption.reencryptor.chunkSize=100 -encryption.reencryptor.numThreads=2 - -# SOLR connection details (e.g. for JMX) -solr.host=localhost -solr.port=8983 -solr.port.ssl=8984 -solr.solrUser=solr -solr.solrPassword=solr -# none, https -solr.secureComms=https -solr.sharedSecret= -solr.sharedSecret.header=X-Alfresco-Search-Secret -solr.cmis.alternativeDictionary=DEFAULT_DICTIONARY - -solr.max.total.connections=40 -solr.max.host.connections=40 - -# Solr connection timeouts -# solr connect timeout in ms -solr.solrConnectTimeout=5000 - -# cron expression defining how often the Solr Admin client (used by JMX) pings Solr if it goes away -solr.solrPingCronExpression=0 0/5 * * * ? * - - -#Default SOLR store mappings mappings -solr.store.mappings=solrMappingAlfresco,solrMappingArchive -solr.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory -solr.store.mappings.value.solrMappingAlfresco.baseUrl=/solr/alfresco -solr.store.mappings.value.solrMappingAlfresco.protocol=workspace -solr.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore -solr.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory -solr.store.mappings.value.solrMappingArchive.baseUrl=/solr/archive -solr.store.mappings.value.solrMappingArchive.protocol=archive -solr.store.mappings.value.solrMappingArchive.identifier=SpacesStore - -#Default SOLR 4 store mappings mappings -solr4.store.mappings=solrMappingAlfresco,solrMappingArchive -solr4.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory -solr4.store.mappings.value.solrMappingAlfresco.baseUrl=/solr4/alfresco -solr4.store.mappings.value.solrMappingAlfresco.protocol=workspace -solr4.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore -solr4.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory -solr4.store.mappings.value.solrMappingArchive.baseUrl=/solr4/archive -solr4.store.mappings.value.solrMappingArchive.protocol=archive -solr4.store.mappings.value.solrMappingArchive.identifier=SpacesStore - -#Default SOLR 6 store mappings mappings -solr6.store.mappings=solrMappingAlfresco,solrMappingArchive,solrMappingHistory -solr6.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory -solr6.store.mappings.value.solrMappingAlfresco.baseUrl=/solr/alfresco -solr6.store.mappings.value.solrMappingAlfresco.protocol=workspace -solr6.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore -solr6.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory -solr6.store.mappings.value.solrMappingArchive.baseUrl=/solr/archive -solr6.store.mappings.value.solrMappingArchive.protocol=archive -solr6.store.mappings.value.solrMappingArchive.identifier=SpacesStore -solr6.store.mappings.value.solrMappingHistory.httpClientFactory=solrHttpClientFactory -solr6.store.mappings.value.solrMappingHistory.baseUrl=/solr/history -solr6.store.mappings.value.solrMappingHistory.protocol=workspace -solr6.store.mappings.value.solrMappingHistory.identifier=history - -# -# URL Shortening Properties -# -urlshortening.bitly.username=brianalfresco -urlshortening.bitly.api.key=R_ca15c6c89e9b25ccd170bafd209a0d4f -urlshortening.bitly.url.length=20 - -# -# Bulk Filesystem Importer -# - -# The number of threads to employ in a batch import -bulkImport.batch.numThreads=4 - -# The size of a batch in a batch import i.e. the number of files to import in a -# transaction/thread -bulkImport.batch.batchSize=20 - - -# -# Caching Content Store -# -system.content.caching.cacheOnInbound=true -system.content.caching.maxDeleteWatchCount=1 -# Clean up every day at 3 am -system.content.caching.contentCleanup.cronExpression=0 0 3 * * ? -system.content.caching.minFileAgeMillis=60000 -system.content.caching.maxUsageMB=4096 -# maxFileSizeMB - 0 means no max file size. -system.content.caching.maxFileSizeMB=0 -# When the CachingContentStore is about to write a cache file but the disk usage is in excess of panicThresholdPct -# (default 90%) then the cache file is not written and the cleaner is started (if not already running) in a new thread. -system.content.caching.panicThresholdPct=90 -# When a cache file has been written that results in cleanThresholdPct (default 80%) of maxUsageBytes -# being exceeded then the cached content cleaner is invoked (if not already running) in a new thread. -system.content.caching.cleanThresholdPct=80 -# An aggressive cleaner is run till the targetUsagePct (default 70%) of maxUsageBytes is achieved -system.content.caching.targetUsagePct=70 -# Threshold in seconds indicating a minimal gap between normal cleanup starts -system.content.caching.normalCleanThresholdSec=0 - -mybatis.useLocalCaches=false - -fileFolderService.checkHidden.enabled=true - - -ticket.cleanup.cronExpression=0 0 * * * ? - -# -# Download Service Cleanup -# -download.cleaner.startDelayMilliseconds=3600000 -# 1 hour -download.cleaner.repeatIntervalMilliseconds=3600000 -download.cleaner.maxAgeMins=60 -# -1 or 0 for not using batches -download.cleaner.batchSize=1000 - -# you could set this to false for new installations greater then ACS 6.2 -# see MNT-20212 -download.cleaner.cleanAllSysDownloadFolders=true - -# -# Download Service Limits, in bytes -# -download.maxContentSize=2152852358 - -# Max size of view trashcan files -# -trashcan.MaxSize=1000 - -# -# Use bridge tables for caching authority evaluation. -# -authority.useBridgeTable=true - -# Limit the number of results from findAuthority query -authority.findAuthorityLimit=10000 - -# enable QuickShare - if false then the QuickShare-specific REST APIs will return 403 Forbidden -system.quickshare.enabled=true -system.quickshare.email.from.default=noreply@alfresco.com -# By default the difference between the quick share expiry date and the current time must be at least 1 day (24 hours). -# However, this can be changed to at least 1 hour or 1 minute for testing purposes. For example, -# setting the value to MINUTES, means the service will calculate the difference between NOW and the given expiry date -# in terms of minutes and checks for the difference to be greater than 1 minute. -# DAYS | HOURS | MINUTES -system.quickshare.expiry_date.enforce.minimum.period=DAYS - -# Oubound Mail -mail.service.corePoolSize=8 -mail.service.maximumPoolSize=20 - -nodes.bulkLoad.cachingThreshold=10 - -# Multi-Tenancy - -# if "dir.contentstore.tenants" is set then -# tenants are not co-mingled and all content roots will appear below this container (in sub-folder) -# and when creating a tenant the "contentRootPath" (root content store directory for a given tenant) will be ignored -dir.contentstore.tenants= - -# Gateway Authentication -# gateway authentication is disabled if empty host is specified -alfresco.authentication.gateway.host= -alfresco.authentication.gateway.protocol=https -alfresco.authentication.gateway.port=443 -alfresco.authentication.gateway.outboundHeaders=Authorization,key -alfresco.authentication.gateway.inboundHeaders=X-Alfresco-Authenticator-Key,X-Alfresco-Remote-User -alfresco.authentication.gateway.prefixUrl=/publicapi -alfresco.authentication.gateway.bufferSize=2048 -alfresco.authentication.gateway.connectTimeout=10000 -alfresco.authentication.gateway.readTimeout=120000 -alfresco.authentication.gateway.httpTcpNodelay=true -alfresco.authentication.gateway.httpConnectionStalecheck=true - -# webscripts config -webscripts.encryptTempFiles=false -webscripts.tempDirectoryName=Alfresco-WebScripts -# 4mb -webscripts.memoryThreshold=4194304 -# 4gb -webscripts.setMaxContentSize=5368709120 - -# Property to enable index upgrade for metadata query (MDQ) -# -# The indexes are not added unless this value is changed -# Adding each the supporting indexes may take several hours depending on the size of the database. -# The required indexes may be added in stages. -# See: classpath:alfresco/dbscripts/upgrade/4.2/${db.script.dialect}/metadata-query-indexes.sql -# See: classpath:alfresco/dbscripts/upgrade/5.1/${db.script.dialect}/metadata-query-indexes-2.sql -system.metadata-query-indexes.ignored=true -system.metadata-query-indexes-more.ignored=true - -# -# Do we defer running the shared folder patch? -# -system.patch.sharedFolder.deferred=false -# Default value is run new years day 2030 i.e. not run. -system.patch.sharedFolder.cronExpression=0 0 0 ? 1 1 2030 - -# -# Default values for deferring the running of the addUnmovableAspect patch -# -system.patch.addUnmovableAspect.deferred=false -system.patch.addUnmovableAspect.cronExpression=0 0 0 ? 1 1 2030 - -# Property to enable removal of all JBPM related data from the database -# -# The tables are not removed from the databasen unless explicitly requested by setting this property to false. -# See: classpath:alfresco/dbscripts/upgrade/5.2/${db.script.dialect}/remove-jbpm-tables-from-db.sql -system.remove-jbpm-tables-from-db.ignored=true - -# -# Use a canned query when requested to search for people if " [hint:useCQ]" is provided in search term -# -people.search.honor.hint.useCQ=true - -# Delays cron jobs after bootstrap to allow server to fully come up before jobs start -system.cronJob.startDelayMilliseconds=60000 - -# Schedule for reading mimetype config definitions dynamically. Initially checks every 10 seconds and then switches to -# every hour after the configuration is read successfully. If there is a error later reading the config, the -# checks return to every 10 seconds. -mimetype.config.cronExpression=0 30 0/1 * * ? -mimetype.config.initialAndOnError.cronExpression=0/10 * * * * ? - -# Optional property to specify an external file or directory that will be read for mimetype definitions from YAML -# files (possibly added to a volume via k8 ConfigMaps). -mimetype.config.dir=shared/classes/alfresco/extension/mimetypes - -# Schedule for reading rendition config definitions dynamically. Initially checks every 10 seconds and then switches to -# every hour after the configuration is read successfully. If there is a error later reading the config, the -# checks return to every 10 seconds. -rendition.config.cronExpression=2 30 0/1 * * ? -rendition.config.initialAndOnError.cronExpression=0/10 * * * * ? - -# Optional property to specify an external file or directory that will be read for rendition definitions from YAML -# files (possibly added to a volume via k8 ConfigMaps). -rendition.config.dir=shared/classes/alfresco/extension/transform/renditions - -# Optional property to specify an external file or directory that will be read for transformer json config. -local.transform.pipeline.config.dir=shared/classes/alfresco/extension/transform/pipelines - -# Used to disable transforms locally. -local.transform.service.enabled=true - -# Schedule for reading local transform config, so that T-Engines and local pipeline config is dynamically -# picked up, or reintegrated after an outage. Initially checks every 10 seconds and then switches to every hour -# after the configuration is read successfully. If there is a error later reading the config, the checks return to -# every 10 seconds. -local.transform.service.cronExpression=4 30 0/1 * * ? -local.transform.service.initialAndOnError.cronExpression=0/10 * * * * ? - -# -# Check that the declared mimetype (of the Node) is the same as the derived -# mimetype of the content (via Tika) before a transformation takes place. -# Only files in the repository (not intermediate files in a transformer -# pipeline) are checked. This property provides a trade off between a -# security check and a relatively expensive (Tika) operation. -# -# There are a few issues with the Tika mimetype detection. So that transformations -# still take place where the detected mimetype is not the same as the declared mimetype, -# another property (transformer.strict.mimetype.check.whitelist.mimetypes) contains pairs -# of declared and detected mimetypes that should be allowed. This parameter value is a -# sequence of ; separated pairs. The declared and derived mimetypes are also ; separated. -# -transformer.strict.mimetype.check=true - -# A white list of declared and detected mimetypes, that don't match, but should still be transformed. -transformer.strict.mimetype.check.whitelist.mimetypes=application/eps;application/postscript;application/illustrator;application/pdf;application/x-tar;application/x-gtar;application/acp;application/zip;application/vnd.stardivision.math;application/x-tika-msoffice - -# -# Enable transformation retrying if the file has MIME type differ than file extension. -# Ignored if transformer.strict.mimetype.check is true as these transformations -# will not take place. -# -content.transformer.retryOn.different.mimetype=true - -# Debug and Log buffer sizes -transformer.debug.entries=0 -transformer.log.entries=50 - -# -# Lock timeout configuration -# -system.lockTryTimeout=100 -system.lockTryTimeout.DictionaryDAOImpl=10000 -system.lockTryTimeout.MessageServiceImpl=${system.lockTryTimeout} -system.lockTryTimeout.PolicyComponentImpl=${system.lockTryTimeout} - - -# Scheduled job to clean up unused properties from the alf_prop_xxx tables. -# Default setting of "0 0 3 ? * SAT" is to run every Saturday at 3am. -attributes.propcleaner.cronExpression=0 0 3 ? * SAT - -# Control Alfresco JMX connectivity -alfresco.jmx.connector.enabled=false - -# Dissallow Attribute Service Entries with "Serializable" objects in key Segments -# Please, see MNT-11895 for details. -system.propval.uniquenessCheck.enabled=true - -# Requests for ephemeral (in-memory) locks with expiry times (in seconds) greater -# than this value will result in persistent locks being created instead. By default -# this value is equal to the maximum allowed expiry for ephemeral locks, therefore -# this feature is disabled by default. Setting this to -1 would mean that ALL -# requests for ephemeral locks would result in persistent locks being created. -alfresco.ephemeralLock.expiryThresh=172800 - -# SurfConfigFolder Patch -# -# Do we defer running the surf-config folder patch? -# -system.patch.surfConfigFolder.deferred=false -# Default value. i.e. never run. It can be triggered using JMX -system.patch.surfConfigFolder.cronExpression=* * * * * ? 2099 - -# -# Solr Facets Config Properties -# -solr_facets.root.path=/app:company_home/app:dictionary -solr_facets.root=${solr_facets.root.path}/${spaces.solr_facets.root.childname} -solr_facets.inheritanceHierarchy=default,custom - -models.enforceTenantInNamespace=false - -# Allowed protocols for links -links.protocosl.white.list=http,https,ftp,mailto - -# Fixed ACLs -# Required for fixing MNT-15368 - Time Consumed for Updating Folder Permission -# ADMAccessControlListDAO.setFixedAcls called on a large folder hierarchy will take a long time for its execution. -# For this reason now method can also be called asynchronously if transaction reaches system.fixedACLs.maxTransactionTime. -# In this case setFixedAcls method recursion will be stopped and unfinished nodes will be marked with ASPECT_PENDING_FIX_ACL. -# Pending nodes will be processed by FixedAclUpdater, programmatically called but also configured as a scheduled job. -system.fixedACLs.maxTransactionTime=10000 -# fixedACLsUpdater - lock time to live -system.fixedACLsUpdater.lockTTL=10000 -# fixedACLsUpdater - maximum number of nodes to process per execution -system.fixedACLsUpdater.maxItemBatchSize=100 -# fixedACLsUpdater - the number of threads to use -system.fixedACLsUpdater.numThreads=4 -# fixedACLsUpdater - Force shared ACL to propagate through children even if there is an unexpected ACL -system.fixedACLsUpdater.forceSharedACL=false -# fixedACLsUpdater cron expression - fire at midnight every day -system.fixedACLsUpdater.cronExpression=0 0 0 * * ? - -cmis.disable.hidden.leading.period.files=false - -#Smart Folders Config Properties -smart.folders.enabled=false - -#Smart reference config -smart.reference.classpath.hash=${smart.folders.config.vanilla.processor.classpath}->1,${smart.folders.config.system.templates.classpath}->2 - -#Smart store config - -#Company home relative download associations of smart entries -smart.download.associations.folder=${spaces.dictionary.childname}/${spaces.smartdownloads.childname} - -#Generic virtualization methods config - -#Vanilla JSON templates javascript processor classpath. A java script processor used to -#covert JSON templates to internal smart folder definitions. - -smart.folders.config.vanilla.processor.classpath=/org/alfresco/repo/virtual/node/vanilla.js - -#System virtualization method config - -#System virtualization method aspect. -smart.folders.config.system.aspect=smf:systemConfigSmartFolder -#System virtualization method aspect defined template location property. -smart.folders.config.system.aspect.template.location.property=smf:system-template-location -#Classpath to be explored for *.json entries defining system templates. -smart.folders.config.system.templates.classpath=/org/alfresco/repo/virtual/node -#A company home relative name or qname path location of repository system templates. -smart.folders.config.system.templates.path=${spaces.dictionary.childname}/${spaces.smartfolders.childname} -#Content sub type of repository system templates. -smart.folders.config.system.templates.template.type=smf:smartFolderTemplate - -#Custom virtualization method config - -#Custom virtualization method aspect. -smart.folders.config.custom.aspect=smf:customConfigSmartFolder -#Custom virtualization method aspect template content association. -smart.folders.config.custom.aspect.template.association=smf:custom-template-association - - -#Type virtualization method config - -#A company home relative name or qname path location of the type mapped templates. -smart.folders.config.type.templates.path=${spaces.dictionary.childname}/${spaces.smartfolders.childname} -#Type and aspect qname regular expression filter. -smart.folders.config.type.templates.qname.filter=none - -# Preferred password encoding, md4, sha256, bcrypt10 -system.preferred.password.encoding=md4 - -# Upgrade Password Hash Job -system.upgradePasswordHash.jobBatchSize=100 -system.upgradePasswordHash.jobQueryRange=10000 -system.upgradePasswordHash.jobThreadCount=4 -system.upgradePasswordHash.jobCronExpression=* * * * * ? 2099 - -system.api.discovery.enabled=true - -# Maximum query size for category/tag fetch when not explicitly set by paging parameters -category.queryFetchSize=5000 - -# Brute force protection -authentication.protection.enabled=true -authentication.protection.limit=10 -authentication.protection.periodSeconds=6 - -system.email.sender.default=noreply@alfresco.com -# reset password workflow will expire in an hour -system.reset-password.endTimer=PT1H -system.reset-password.sendEmailAsynchronously=true - -# HeartBeat -heartbeat.target.url= -heartbeat.enabled=true - -# CSRF filter overrides -csrf.filter.enabled=true -csrf.filter.referer= -csrf.filter.referer.always=false -csrf.filter.origin= -csrf.filter.origin.always=false - -# CORS settings -cors.enabled=false -cors.allowed.origins= -cors.allowed.methods=GET,POST,HEAD,OPTIONS,PUT,DELETE -cors.allowed.headers=Authorization,Content-Type,Cache-Control,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-CSRF-Token -cors.exposed.headers=Access-Control-Allow-Origin,Access-Control-Allow-Credentials -cors.support.credentials=true -cors.preflight.maxage=10 - -# Alfresco Rest Api-Explorer -api-explorer.url= - -# Events subsystem -events.subsystem.autoStart=false -# Messaging subsystem -messaging.subsystem.autoStart=true - - -# Raw events -acs.repo.rendition.events.endpoint=jms:acs-repo-rendition-events?jmsMessageType=Text - -# Transform request events -acs.repo.transform.request.endpoint=jms:acs-repo-transform-request?jmsMessageType=Text - -# If enabled doesn't allow to set content properties via NodeService -contentPropertyRestrictions.enabled=true -contentPropertyRestrictions.whitelist= - -# Repo events2 -# Type and aspect filters which should be excluded -# Note: System folders node types are added by default -repo.event2.filter.nodeTypes=sys:*, fm:*, cm:thumbnail, cm:failedThumbnail, cm:rating, rma:rmsite include_subtypes -repo.event2.filter.nodeAspects=sys:* -repo.event2.filter.childAssocTypes=rn:rendition -# Comma separated list of users which should be excluded -# Note: username's case-sensitivity depends on the {user.name.caseSensitive} setting -repo.event2.filter.users= -# Topic name -repo.event2.topic.endpoint=amqp:topic:alfresco.repo.event2 -# Thread pool for async enqueue of repo events -repo.event2.queue.enqueueThreadPool.priority=1 -repo.event2.queue.enqueueThreadPool.coreSize=8 -repo.event2.queue.enqueueThreadPool.maximumSize=10 -# Thread pool for async dequeue and delivery of repo events -repo.event2.queue.dequeueThreadPool.priority=1 -repo.event2.queue.dequeueThreadPool.coreSize=1 -repo.event2.queue.dequeueThreadPool.maximumSize=1 - - -# MNT-21083 -# --DELETE_NOT_EXISTS - default settings -system.delete_not_exists.batchsize=100000 -system.delete_not_exists.delete_batchsize=1000 -system.delete_not_exists.read_only=false -system.delete_not_exists.timeout_seconds=-1 -system.prop_table_cleaner.algorithm=V2 - -# Configure the expiration time of the direct access url. This is the length of time in seconds that the link is valid for. -# Note: It is up to the actual ContentStore implementation if it can fulfil this request or not. -alfresco.content.directAccessUrl.lifetimeInSec=300 - -# Creates additional indexes on alf_node and alf_transaction. Recommended for large repositories. -system.new-node-transaction-indexes.ignored=true - -# Allows the configuration of maximum limits of the temp files to be deleted or the maximum time allowed to run for the job -system.tempFileCleaner.maxFilesToDelete= -system.tempFileCleaner.maxTimeToRun= - -# Property to long running migration to remove alf_server in v7+ patch.db-V7.1.0-remove-alf_server-table -system.remove-alf_server-table-from-db.ignored=true +# Repository configuration + +repository.name=Main Repository + +# Schema number +version.schema=15001 + +# Directory configuration + +dir.root=./alf_data + +dir.contentstore=${dir.root}/contentstore +dir.contentstore.deleted=${dir.root}/contentstore.deleted +dir.contentstore.bucketsPerMinute=0 + +# ContentStore subsystem: default choice +filecontentstore.subsystem.name=unencryptedContentStore + +# The location of cached content +dir.cachedcontent=${dir.root}/cachedcontent + +# The value for the maximum permitted size in bytes of all content. +# No value (or a negative long) will be taken to mean that no limit should be applied. +# See content-services-context.xml +system.content.maximumFileSizeLimit= + +# +# The server mode. Set value in alfresco-global.properties +# UNKNOWN | TEST | BACKUP | PRODUCTION +# +system.serverMode=UNKNOWN + +# The location for lucene index files +dir.indexes=${dir.root}/lucene-indexes + +# The location for index backups +dir.indexes.backup=${dir.root}/backup-lucene-indexes + +# The location for lucene index locks +dir.indexes.lock=${dir.indexes}/locks + +#Directory to find external license +dir.license.external=. +# Spring resource location of external license files +location.license.external=file://${dir.license.external}/*.lic +# Spring resource location of embedded license files +location.license.embedded=/WEB-INF/alfresco/license/*.lic +# Spring resource location of license files on shared classpath +location.license.shared=classpath*:/alfresco/extension/license/*.lic + +# WebDAV initialization properties +system.webdav.servlet.enabled=true +system.webdav.url.path.prefix= +system.webdav.storeName=${protocols.storeName} +system.webdav.rootPath=${protocols.rootPath} +# File name patterns that trigger rename shuffle detection +# pattern is used by move - tested against full path after it has been lower cased. +system.webdav.renameShufflePattern=(.*/\\..*)|(.*[a-f0-9]{8}+$)|(.*\\.tmp$)|(.*atmp[0-9]+$)|(.*\\.wbk$)|(.*\\.bak$)|(.*\\~$)|(.*backup.*\\.do[ct]{1}[x]?[m]?$)|(.*\\.sb\\-\\w{8}\\-\\w{6}$) +system.webdav.activities.enabled=false + + +system.workflow.jbpm.comment.property.max.length=-1 +system.workflow.comment.property.max.length=4000 + +#Determines if Activiti definitions are visible +system.workflow.engine.activiti.definitions.visible=true + + +# Determines if the Activiti engine is enabled +system.workflow.engine.activiti.enabled=true +system.workflow.engine.activiti.idblocksize=100 +system.workflow.engine.activiti.taskvariableslimit=20000 + +# Determines if the workflows that are deployed to the activiti engine should +# be deployed in the tenant-context of the thread IF the tenant-service is enabled +# If set to false, all workflows deployed will be shared among tenants. Recommended +# setting is true unless there is a good reason to not allow deploy tenant-specific +# worklfows when a MT-environment is set up. +system.workflow.deployWorkflowsInTenant=true +#Determines if historic process instance are retained in case of canceling a process instance +system.workflow.engine.activiti.retentionHistoricProcessInstance=false + +# The maximum number of groups to check for pooled tasks. For performance +# reasons, this is limited to 500 by default. +system.workflow.maxAuthoritiesForPooledTasks=500 + +# The maximum number of pooled tasks to return in a query. It may be necessary +# to limit this depending on UI limitations. +system.workflow.maxPooledTasks=-1 + +# The maximum number of reviewers for "Group Review and Approve" workflow. +# Use '0' for unlimited. +system.workflow.maxGroupReviewers=0 + +index.subsystem.name=noindex + +# ######################################### # +# Index Tracking Configuration # +# ######################################### # +# +# Index tracking information of a certain age is cleaned out by a scheduled job. +# Any clustered system that has been offline for longer than this period will need to be seeded +# with a more recent backup of the Lucene indexes or the indexes will have to be fully rebuilt. +# Use -1 to disable purging. This can be switched on at any stage. +index.tracking.minRecordPurgeAgeDays=30 +# Unused transactions will be purged in chunks determined by commit time boundaries. 'index.tracking.purgeSize' specifies the size +# of the chunk (in ms). Default is a couple of hours. +index.tracking.purgeSize=7200000 + +# Change the failure behaviour of the configuration checker +system.bootstrap.config_check.strict=true + + +# +# How long should shutdown wait to complete normally before +# taking stronger action and calling System.exit() +# in ms, 10,000 is 10 seconds +# +shutdown.backstop.timeout=10000 +shutdown.backstop.enabled=false + +# Server Single User Mode +# note: +# only allow named user (note: if blank or not set then will allow all users) +# assuming maxusers is not set to 0 +#server.singleuseronly.name=admin + +# Server Max Users - limit number of users with non-expired tickets +# note: +# -1 allows any number of users, assuming not in single-user mode +# 0 prevents further logins, including the ability to enter single-user mode +server.maxusers=-1 + +# +# Disable all shared caches (mutable and immutable) +# These properties are used for diagnostic purposes +system.cache.disableMutableSharedCaches=false +system.cache.disableImmutableSharedCaches=false + +# The maximum capacity of the parent assocs cache (the number of nodes whose parents can be cached) +system.cache.parentAssocs.maxSize=130000 + +# The average number of parents expected per cache entry. This parameter is multiplied by the above +# value to compute a limit on the total number of cached parents, which will be proportional to the +# cache's memory usage. The cache will be pruned when this limit is exceeded to avoid excessive +# memory usage. +system.cache.parentAssocs.limitFactor=8 + +# +# Properties to limit resources spent on individual searches +# +# The maximum time spent pruning results +system.acl.maxPermissionCheckTimeMillis=10000 +# The maximum number of search results to perform permission checks against +system.acl.maxPermissionChecks=1000 +system.acl.maxPermissionCheckEnabled=false + +# The maximum number of filefolder list results +system.filefolderservice.defaultListMaxResults=5000 +# DEPRECATED: Use 'system.auditableData.preserve' +system.preserve.modificationData=false +# The default to preserve all cm:auditable data on a node when the process is not directly driven by a user action +system.auditableData.preserve=${system.preserve.modificationData} +# Specific control of how the FileFolderService treats cm:auditable data when performing moves +system.auditableData.FileFolderService=${system.auditableData.preserve} +# Specific control of whether ACL changes on a node trigger the cm:auditable aspect +system.auditableData.ACLs=${system.auditableData.preserve} + +# Properties to control read permission evaluation for acegi +system.readpermissions.optimise=true +system.readpermissions.bulkfetchsize=1000 + +# +# Manually control how the system handles maximum string lengths. +# Any zero or negative value is ignored. +# Only change this after consulting support or reading the appropriate Javadocs for +# org.alfresco.repo.domain.schema.SchemaBootstrap for V2.1.2. +# Before database migration, the string value storage may need to be adjusted using the scheduled job +system.maximumStringLength=-1 +system.maximumStringLength.jobCronExpression=* * * * * ? 2099 +system.maximumStringLength.jobQueryRange=10000 +system.maximumStringLength.jobThreadCount=4 + +# +# Limit hibernate session size by trying to amalgamate events for the L2 session invalidation +# - hibernate works as is up to this size +# - after the limit is hit events that can be grouped invalidate the L2 cache by type and not instance +# events may not group if there are post action listener registered (this is not the case with the default distribution) +system.hibernateMaxExecutions=20000 + +# +# Determine if modification timestamp propagation from child to parent nodes is respected or not. +# Even if 'true', the functionality is only supported for child associations that declare the +# 'propagateTimestamps' element in the dictionary definition. +system.enableTimestampPropagation=true + +# +# Enable system model integrity checking. +# WARNING: Changing this is unsupported; bugs may corrupt data +system.integrity.enabled=true +# Do integrity violations fail transactions +# WARNING: Changing this is unsupported; bugs may corrupt data +system.integrity.failOnViolation=true +# The number of errors to report when violations are detected +system.integrity.maxErrorsPerTransaction=5 +# Add call stacks to integrity events so that errors are logged with possible causes +# WARNING: This is expensive and should only be switched on for diagnostic purposes +system.integrity.trace=false + +# +# Decide if content should be removed from the system immediately after being orphaned. +# Do not change this unless you have examined the impact it has on your backup procedures. +system.content.eagerOrphanCleanup=false +# The number of days to keep orphaned content in the content stores. +# This has no effect on the 'deleted' content stores, which are not automatically emptied. +system.content.orphanProtectDays=14 +# The action to take when a store or stores fails to delete orphaned content +# IGNORE: Just log a warning. The binary remains and the record is expunged +# KEEP_URL: Log a warning and create a URL entry with orphan time 0. It won't be processed or removed. +system.content.deletionFailureAction=IGNORE +# The CRON expression to trigger the deletion of resources associated with orphaned content. +system.content.orphanCleanup.cronExpression=0 0 4 * * ? +# The batch size user by the content store cleaner +system.content.cleanerBatchSize=1000 + +# The CRON expression to trigger the cleanup of deleted nodes and dangling transactions that are old enough +system.nodeServiceCleanup.cronExpression=0 0 21 * * ? + +# When transforming archive files (.zip etc) into text representations (such as +# for full text indexing), should the files within the archive be processed too? +# If enabled, transformation takes longer, but searches of the files find more. +transformer.Archive.includeContents=false + +# Database configuration +db.schema.name= +db.schema.stopAfterSchemaBootstrap=false +db.schema.update=true +db.schema.update.lockRetryCount=24 +db.schema.update.lockRetryWaitSeconds=5 +db.driver=org.gjt.mm.mysql.Driver +db.name=alfresco +db.url=jdbc:mysql:///${db.name} +db.username=alfresco +db.password=alfresco +db.pool.initial=10 +db.pool.max=275 +db.txn.isolation=-1 +db.pool.statements.enable=true +db.pool.statements.max=40 +db.pool.min=10 +db.pool.idle=10 +db.pool.wait.max=5000 + +db.pool.validate.query= +db.pool.evict.interval=600000 +db.pool.evict.idle.min=1800000 +# +# note: for 'db.pool.evict.num.tests' see http://commons.apache.org/dbcp/configuration.html (numTestsPerEvictionRun) +# and also following extract from "org.apache.commons.pool.impl.GenericKeyedObjectPool" (1.5.5) +# +# * The number of objects to examine during each run of the idle object evictor thread (if any). +# * When a negative value is supplied, ceil({@link #getNumIdle})/abs({@link #getNumTestsPerEvictionRun}) +# * tests will be run. I.e., when the value is -n, roughly one nth of the +# * idle objects will be tested per run. +# +db.pool.evict.num.tests=-1 + +db.pool.evict.validate=false +db.pool.validate.borrow=true +db.pool.validate.return=false + +db.pool.abandoned.detect=false +db.pool.abandoned.time=300 +# +# db.pool.abandoned.log=true (logAbandoned) adds overhead (http://commons.apache.org/dbcp/configuration.html) +# and also requires db.pool.abandoned.detect=true (removeAbandoned) +# +db.pool.abandoned.log=false + + +# Audit configuration +audit.enabled=true +audit.tagging.enabled=true +audit.alfresco-access.enabled=false +audit.alfresco-access.sub-actions.enabled=false +audit.cmischangelog.enabled=false +audit.dod5015.enabled=false +# Setting this flag to true will force startup failure when invalid audit configurations are detected +audit.config.strict=false +# Audit map filter for AccessAuditor - restricts recorded events to user driven events +audit.filter.alfresco-access.default.enabled=false +audit.filter.alfresco-access.transaction.user=~System;~null;.* +audit.filter.alfresco-access.transaction.type=cm:folder;cm:content;st:site +audit.filter.alfresco-access.transaction.path=~/sys:archivedItem;~/ver:;.* + + +# System Configuration +system.store=system://system +system.descriptor.childname=sys:descriptor +system.descriptor.current.childname=sys:descriptor-current + +# User config +alfresco_user_store.store=user://alfrescoUserStore +alfresco_user_store.system_container.childname=sys:system +alfresco_user_store.user_container.childname=sys:people + +# note: default admin username - should not be changed after installation +alfresco_user_store.adminusername=admin + +# Initial password - editing this will not have any effect once the repository is installed +alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634 + +# note: default guest username - should not be changed after installation +alfresco_user_store.guestusername=guest + +# Used to move home folders to a new location +home_folder_provider_synchronizer.enabled=false +home_folder_provider_synchronizer.override_provider= +home_folder_provider_synchronizer.keep_empty_parents=false + +# Spaces Archive Configuration +spaces.archive.store=archive://SpacesStore + +# Spaces Configuration +spaces.store=workspace://SpacesStore +spaces.company_home.childname=app:company_home +spaces.guest_home.childname=app:guest_home +spaces.dictionary.childname=app:dictionary +spaces.templates.childname=app:space_templates +spaces.imap_attachments.childname=cm:Imap Attachments +spaces.imap_home.childname=cm:Imap Home +spaces.imapConfig.childname=app:imap_configs +spaces.imap_templates.childname=app:imap_templates +spaces.scheduled_actions.childname=cm:Scheduled Actions +spaces.emailActions.childname=app:email_actions +spaces.searchAction.childname=cm:search +spaces.templates.content.childname=app:content_templates +spaces.templates.email.childname=app:email_templates +spaces.templates.email.invite1.childname=app:invite_email_templates +spaces.templates.email.notify.childname=app:notify_email_templates +spaces.templates.email.following.childname=app:following +spaces.templates.rss.childname=app:rss_templates +spaces.savedsearches.childname=app:saved_searches +spaces.scripts.childname=app:scripts +spaces.content_forms.childname=app:forms +spaces.user_homes.childname=app:user_homes +spaces.user_homes.regex.key=userName +spaces.user_homes.regex.pattern= +spaces.user_homes.regex.group_order= +spaces.sites.childname=st:sites +spaces.templates.email.invite.childname=cm:invite +spaces.templates.email.activities.childname=cm:activities +spaces.rendition.rendering_actions.childname=app:rendering_actions +spaces.replication.replication_actions.childname=app:replication_actions +spaces.transfers.childname=app:transfers +spaces.transfer_groups.childname=app:transfer_groups +spaces.transfer_temp.childname=app:temp +spaces.inbound_transfer_records.childname=app:inbound_transfer_records +spaces.webscripts.childname=cm:webscripts +spaces.extension_webscripts.childname=cm:extensionwebscripts +spaces.models.childname=app:models +spaces.workflow.definitions.childname=app:workflow_defs +spaces.templates.email.workflowemailnotification.childname=cm:workflownotification +spaces.nodetemplates.childname=app:node_templates +spaces.shared.childname=app:shared +spaces.solr_facets.root.childname=srft:facets +spaces.smartfolders.childname=app:smart_folders +spaces.smartdownloads.childname=app:smart_downloads +spaces.transfer_summary_report.location=/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.transfers.childname}/${spaces.inbound_transfer_records.childname} +spaces.quickshare.link_expiry_actions.childname=app:quick_share_link_expiry_actions + + +# ADM VersionStore Configuration +version.store.initialVersion=true +version.store.enableAutoVersioning=true +version.store.enableAutoVersionOnUpdateProps=false +version.store.deprecated.lightWeightVersionStore=workspace://lightWeightVersionStore +version.store.version2Store=workspace://version2Store + +# Optional Comparator class name to sort versions. +# Set to: org.alfresco.repo.version.common.VersionLabelComparator +# if upgrading from a version that used unordered sequences in a cluster. +version.store.versionComparatorClass= + +# Folders for storing people +system.system_container.childname=sys:system +system.people_container.childname=sys:people +system.authorities_container.childname=sys:authorities +system.zones_container.childname=sys:zones + +# Folders for storing workflow related info +system.workflow_container.childname=sys:workflow + +# Folder for storing shared remote credentials +system.remote_credentials_container.childname=sys:remote_credentials + +# Folder for storing syncset definitions +system.syncset_definition_container.childname=sys:syncset_definitions + +# Folder for storing download archives +system.downloads_container.childname=sys:downloads + +# Folder for storing IdP's certificate definitions +system.certificate_container.childname=sys:samlcertificate + +# Are user names case sensitive? +user.name.caseSensitive=false +domain.name.caseSensitive=false +domain.separator= + +#Format caption extracted from the XML Schema. +xforms.formatCaption=true + +# ECM content usages/quotas +system.usages.enabled=false +system.usages.clearBatchSize=0 +system.usages.updateBatchSize=50 + +# Repository endpoint - used by Activity Service +repo.remote.endpoint=/service + +# Some authentication mechanisms may need to create people +# in the repository on demand. This enables that feature. +# If disabled an error will be generated for missing +# people. If enabled then a person will be created and +# persisted. +create.missing.people=${server.transaction.allow-writes} + +# Create home folders (unless disabled, see next property) as people are created (true) or create them lazily (false) +home.folder.creation.eager=true +# Disable home folder creation - if true then home folders are not created (neither eagerly nor lazily) +home.folder.creation.disabled=false + +# Should we consider zero byte content to be the same as no content when firing +# content update policies? Prevents 'premature' firing of inbound content rules +# for some clients such as Mac OS X Finder +policy.content.update.ignoreEmpty=true + +# Default value of alfresco.rmi.services.host is 0.0.0.0 which means 'listen on all adapters'. +# This allows connections to JMX both remotely and locally. +# +alfresco.rmi.services.port=50500 +alfresco.rmi.services.external.host=localhost +alfresco.rmi.services.host=0.0.0.0 + +# If the RMI address is in-use, how many retries should be done before aborting +# Default value of alfresco.rmi.services.retries is 0 which means 'Don't retry if the address is in-use' +alfresco.rmi.services.retries=4 +# How long in milliseconds to wait after a failed server socket bind, before retrying +alfresco.rmi.services.retryInterval=250 + +# RMI service ports for the individual services. +# These eight services are available remotely. +# +# Assign individual ports for each service for best performance +# or run several services on the same port, you can even run everything on 50500 if +# running through a firewall. +# +# Specify 0 to use a random unused port. +# +monitor.rmi.service.port=50508 + +# +# enable or disable individual RMI services +# +monitor.rmi.service.enabled=false + + +# Should the Mbean server bind to an existing server. Set to true for most application servers. +# false for WebSphere clusters. +mbean.server.locateExistingServerIfPossible=true + +# Rendition Service 2 +renditionService2.enabled=true + +# Thumbnail Service +system.thumbnail.generate=true + +# when creating doc via CMIS - optionally configure set of renditions names to request async +cmis.create.doc.request.renditions.set= + +# Default thumbnail limits +# When creating thumbnails, only use the first pageLimit pages +system.thumbnail.definition.default.timeoutMs=-1 +system.thumbnail.definition.default.readLimitTimeMs=-1 +system.thumbnail.definition.default.maxSourceSizeKBytes=-1 +system.thumbnail.definition.default.readLimitKBytes=-1 +system.thumbnail.definition.default.pageLimit=-1 +system.thumbnail.definition.default.maxPages=-1 + +# Max mimetype sizes to create thumbnail icons +system.thumbnail.mimetype.maxSourceSizeKBytes.pdf=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.txt=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.docx=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.xlsx=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.pptx=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.odt=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.ods=-1 +system.thumbnail.mimetype.maxSourceSizeKBytes.odp=-1 + +# Configuration for handling of failing thumbnails. +# See NodeEligibleForRethumbnailingEvaluator's javadoc for details. +# +# Retry periods limit the frequency with which the repository will attempt to create Share thumbnails +# for content nodes which have previously failed in their thumbnail attempts. +# These periods are in seconds. +# +# 604800s = 60s * 60m * 24h * 7d = 1 week +system.thumbnail.retryPeriod=60 +system.thumbnail.retryCount=2 +system.thumbnail.quietPeriod=604800 +system.thumbnail.quietPeriodRetriesEnabled=true +system.thumbnail.redeployStaticDefsOnStartup=true + +content.metadata.async.extract.enabled=true +content.metadata.async.embed.enabled=true + +# The default timeout for metadata mapping extracters +content.metadataExtracter.default.timeoutMs=20000 + +# Local transformer urls to T-engines to service transform requests via http. Enabled by default. +localTransform.core-aio.url=http://localhost:8090/ + +# When a local transformer .url is set, this value indicates the amount of time to wait after a connection failure +# before retrying the connection to allow a docker container to (re)start. +localTransform.core-aio.startupRetryPeriodSeconds=60 + +# Property to enable upgrade from 2.1-A +V2.1-A.fixes.to.schema=0 +#V2.1-A.fixes.to.schema=82 + +# The default authentication chain +authentication.chain=alfrescoNtlm1:alfrescoNtlm + +# Do authentication tickets expire or live for ever? +authentication.ticket.ticketsExpire=true + +# If ticketsEpire is true then how they should expire? +# Valid values are: AFTER_INACTIVITY, AFTER_FIXED_TIME, DO_NOT_EXPIRE +# The default is AFTER_FIXED_TIME +authentication.ticket.expiryMode=AFTER_INACTIVITY + +# If authentication.ticket.ticketsExpire is true and +# authentication.ticket.expiryMode is AFTER_FIXED_TIME or AFTER_INACTIVITY, +# this controls the minimum period for which tickets are valid. +# The default is PT1H for one hour. +authentication.ticket.validDuration=PT1H + +# Use one ticket for all user sessions +# For the pre 4.2 behaviour of one ticket per session set this to false. +authentication.ticket.useSingleTicketPerUser=true + +authentication.alwaysAllowBasicAuthForAdminConsole.enabled=true +authentication.getRemoteUserTimeoutMilliseconds=10000 + +# FTP access +ftp.enabled=false + +# Default root path for protocols +protocols.storeName=${spaces.store} +protocols.rootPath=/${spaces.company_home.childname} + +# OpenCMIS +opencmis.connector.default.store=${spaces.store} +opencmis.connector.default.rootPath=/${spaces.company_home.childname} +opencmis.connector.default.typesDefaultMaxItems=500 +opencmis.connector.default.typesDefaultDepth=-1 +opencmis.connector.default.objectsDefaultMaxItems=10000 +opencmis.connector.default.objectsDefaultDepth=100 +opencmis.connector.default.contentChangesDefaultMaxItems=10000 +opencmis.connector.default.openHttpSession=false +opencmis.activities.enabled=true +opencmis.bulkUpdateProperties.maxItemsSize=1000 +opencmis.bulkUpdateProperties.batchSize=20 +opencmis.bulkUpdateProperties.workerThreads=2 +opencmis.maxContentSizeMB=4096 +opencmis.memoryThresholdKB=4096 + +# URL generation overrides + +# if true, the context path of OpenCMIS generated urls will be set to "opencmis.context.value", otherwise it will be taken from the request url +opencmis.context.override=false +opencmis.context.value= +# if true, the servlet path of OpenCMIS generated urls will be set to "opencmis.servletpath.value", otherwise it will be taken from the request url +opencmis.servletpath.override=false +opencmis.servletpath.value= +opencmis.server.override=false +opencmis.server.value= + +# IMAP +imap.server.enabled=false +imap.server.port=143 +imap.server.attachments.extraction.enabled=true + +# Default IMAP mount points +imap.config.home.store=${spaces.store} +imap.config.home.rootPath=/${spaces.company_home.childname} +imap.config.home.folderPath=${spaces.imap_home.childname} +imap.config.server.mountPoints=AlfrescoIMAP +imap.config.server.mountPoints.default.mountPointName=IMAP +imap.config.server.mountPoints.default.modeName=ARCHIVE +imap.config.server.mountPoints.default.store=${spaces.store} +imap.config.server.mountPoints.default.rootPath=${protocols.rootPath} +imap.config.server.mountPoints.value.AlfrescoIMAP.mountPointName=Alfresco IMAP +imap.config.server.mountPoints.value.AlfrescoIMAP.modeName=MIXED + +#Imap extraction settings +#imap.attachments.mode: +# SEPARATE -- All attachments for each email will be extracted to separate folder. +# COMMON -- All attachments for all emails will be extracted to one folder. +# SAME -- Attachments will be extracted to the same folder where email lies. +imap.attachments.mode=SEPARATE +imap.attachments.folder.store=${spaces.store} +imap.attachments.folder.rootPath=/${spaces.company_home.childname} +imap.attachments.folder.folderPath=${spaces.imap_attachments.childname} + +# Activities Feed - refer to subsystem + +# Feed max ID range to limit maximum number of entries +activities.feed.max.idRange=1000000 +# Feed max size (number of entries) +activities.feed.max.size=200 +# Feed max age (eg. 44640 mins => 31 days) +activities.feed.max.ageMins=44640 + +activities.feed.generator.jsonFormatOnly=true +activities.feed.fetchBatchSize=250 +activities.feedNotifier.batchSize=200 +activities.feedNotifier.numThreads=2 + +# Subsystem unit test values. Will not have any effect on production servers +subsystems.test.beanProp.default.longProperty=123456789123456789 +subsystems.test.beanProp.default.anotherStringProperty=Global Default +subsystems.test.beanProp=inst1,inst2,inst3 +subsystems.test.beanProp.value.inst2.boolProperty=true +subsystems.test.beanProp.value.inst3.anotherStringProperty=Global Instance Default +subsystems.test.simpleProp2=true +subsystems.test.simpleProp3=Global Default3 + +# Default Async Action Thread Pool +default.async.action.threadPriority=1 +default.async.action.corePoolSize=8 +default.async.action.maximumPoolSize=20 + +# Deployment Service +deployment.service.numberOfSendingThreads=5 +deployment.service.corePoolSize=2 +deployment.service.maximumPoolSize=3 +deployment.service.threadPriority=5 +# How long to wait in mS before refreshing a target lock - detects shutdown servers +deployment.service.targetLockRefreshTime=60000 +# How long to wait in mS from the last communication before deciding that deployment has failed, possibly +# the destination is no longer available? +deployment.service.targetLockTimeout=3600000 +# Deployment method used to deploy this Alfresco instance (DEFAULT, INSTALLER, DOCKER_COMPOSE, HELM_CHART, ANSIBLE, ZIP, QUICK_START) +deployment.method=DEFAULT + +#Invitation Service +# Should send emails as part of invitation process. +notification.email.siteinvite=true +# Moderated invite Activiti workflow +site.invite.moderated.workflowId=activiti$activitiInvitationModerated +# Add intneral users Activiti workflow (use activiti$activitiInvitationNominated to revert to requiring accept of invite for internal users) +site.invite.nominated.workflowId=activiti$activitiInvitationNominatedAddDirect +# Add external users Activiti workflow +site.invite.nominatedExternal.workflowId=activiti$activitiInvitationNominated + +# Replication Service +replication.enabled=false + +# Transfer Service +transferservice.receiver.enabled=false +transferservice.receiver.stagingDir=${java.io.tmpdir}/alfresco-transfer-staging +# +# How long to wait in mS before refreshing a transfer lock - detects shutdown servers +# Default 1 minute. +transferservice.receiver.lockRefreshTime=60000 +# +# How many times to attempt retry the transfer lock +transferservice.receiver.lockRetryCount=3 +# How long to wait, in mS, before retrying the transfer lock +transferservice.receiver.lockRetryWait=100 +# +# How long to wait, in mS, since the last contact with from the client before +# timing out a transfer. Needs to be long enough to cope with network delays and "thinking +# time" for both source and destination. Default 5 minutes. +transferservice.receiver.lockTimeOut=300000 + +# OrphanReaper +orphanReaper.lockRefreshTime=60000 +orphanReaper.lockTimeOut=3600000 + + +# security +security.anyDenyDenies=true +# Whether to post-process denies. Only applies to solr4+ when anyDenyDenies is true. +security.postProcessDenies=false + +# +# Encryption properties +# +# default keystores location +dir.keystore=classpath:alfresco/keystore + +# general encryption parameters +encryption.keySpec.class=org.alfresco.encryption.DESEDEKeyGenerator +encryption.keyAlgorithm=AES +encryption.cipherAlgorithm=AES/CBC/PKCS5Padding + +# secret key keystore configuration +encryption.keystore.location=${dir.keystore}/keystore +# configuration via metadata is deprecated +encryption.keystore.keyMetaData.location= +encryption.keystore.provider= +encryption.keystore.type=pkcs12 + +# backup secret key keystore configuration +encryption.keystore.backup.location=${dir.keystore}/backup-keystore +# configuration via metadata is deprecated +encryption.keystore.backup.keyMetaData.location= +encryption.keystore.backup.provider= +encryption.keystore.backup.type=pkcs12 + +# Should encryptable properties be re-encrypted with new encryption keys on botstrap? +encryption.bootstrap.reencrypt=false + +# mac/md5 encryption +encryption.mac.messageTimeout=30000 +encryption.mac.algorithm=HmacSHA1 + +# ssl encryption +encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore +encryption.ssl.keystore.provider= +encryption.ssl.keystore.type=JCEKS +# configuration via metadata is deprecated +encryption.ssl.keystore.keyMetaData.location= +encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore +encryption.ssl.truststore.provider= +encryption.ssl.truststore.type=JCEKS +# configuration via metadata is deprecated +encryption.ssl.truststore.keyMetaData.location= + +# Re-encryptor properties +encryption.reencryptor.chunkSize=100 +encryption.reencryptor.numThreads=2 + +# SOLR connection details (e.g. for JMX) +solr.host=localhost +solr.port=8983 +solr.port.ssl=8984 +solr.solrUser=solr +solr.solrPassword=solr +# none, https +solr.secureComms=https +solr.sharedSecret= +solr.sharedSecret.header=X-Alfresco-Search-Secret +solr.cmis.alternativeDictionary=DEFAULT_DICTIONARY + +solr.max.total.connections=40 +solr.max.host.connections=40 + +# Solr connection timeouts +# solr connect timeout in ms +solr.solrConnectTimeout=5000 + +# cron expression defining how often the Solr Admin client (used by JMX) pings Solr if it goes away +solr.solrPingCronExpression=0 0/5 * * * ? * + + +#Default SOLR store mappings mappings +solr.store.mappings=solrMappingAlfresco,solrMappingArchive +solr.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory +solr.store.mappings.value.solrMappingAlfresco.baseUrl=/solr/alfresco +solr.store.mappings.value.solrMappingAlfresco.protocol=workspace +solr.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore +solr.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory +solr.store.mappings.value.solrMappingArchive.baseUrl=/solr/archive +solr.store.mappings.value.solrMappingArchive.protocol=archive +solr.store.mappings.value.solrMappingArchive.identifier=SpacesStore + +#Default SOLR 4 store mappings mappings +solr4.store.mappings=solrMappingAlfresco,solrMappingArchive +solr4.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory +solr4.store.mappings.value.solrMappingAlfresco.baseUrl=/solr4/alfresco +solr4.store.mappings.value.solrMappingAlfresco.protocol=workspace +solr4.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore +solr4.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory +solr4.store.mappings.value.solrMappingArchive.baseUrl=/solr4/archive +solr4.store.mappings.value.solrMappingArchive.protocol=archive +solr4.store.mappings.value.solrMappingArchive.identifier=SpacesStore + +#Default SOLR 6 store mappings mappings +solr6.store.mappings=solrMappingAlfresco,solrMappingArchive,solrMappingHistory +solr6.store.mappings.value.solrMappingAlfresco.httpClientFactory=solrHttpClientFactory +solr6.store.mappings.value.solrMappingAlfresco.baseUrl=/solr/alfresco +solr6.store.mappings.value.solrMappingAlfresco.protocol=workspace +solr6.store.mappings.value.solrMappingAlfresco.identifier=SpacesStore +solr6.store.mappings.value.solrMappingArchive.httpClientFactory=solrHttpClientFactory +solr6.store.mappings.value.solrMappingArchive.baseUrl=/solr/archive +solr6.store.mappings.value.solrMappingArchive.protocol=archive +solr6.store.mappings.value.solrMappingArchive.identifier=SpacesStore +solr6.store.mappings.value.solrMappingHistory.httpClientFactory=solrHttpClientFactory +solr6.store.mappings.value.solrMappingHistory.baseUrl=/solr/history +solr6.store.mappings.value.solrMappingHistory.protocol=workspace +solr6.store.mappings.value.solrMappingHistory.identifier=history + +# +# URL Shortening Properties +# +urlshortening.bitly.username=brianalfresco +urlshortening.bitly.api.key=R_ca15c6c89e9b25ccd170bafd209a0d4f +urlshortening.bitly.url.length=20 + +# +# Bulk Filesystem Importer +# + +# The number of threads to employ in a batch import +bulkImport.batch.numThreads=4 + +# The size of a batch in a batch import i.e. the number of files to import in a +# transaction/thread +bulkImport.batch.batchSize=20 + + +# +# Caching Content Store +# +system.content.caching.cacheOnInbound=true +system.content.caching.maxDeleteWatchCount=1 +# Clean up every day at 3 am +system.content.caching.contentCleanup.cronExpression=0 0 3 * * ? +system.content.caching.minFileAgeMillis=60000 +system.content.caching.maxUsageMB=4096 +# maxFileSizeMB - 0 means no max file size. +system.content.caching.maxFileSizeMB=0 +# When the CachingContentStore is about to write a cache file but the disk usage is in excess of panicThresholdPct +# (default 90%) then the cache file is not written and the cleaner is started (if not already running) in a new thread. +system.content.caching.panicThresholdPct=90 +# When a cache file has been written that results in cleanThresholdPct (default 80%) of maxUsageBytes +# being exceeded then the cached content cleaner is invoked (if not already running) in a new thread. +system.content.caching.cleanThresholdPct=80 +# An aggressive cleaner is run till the targetUsagePct (default 70%) of maxUsageBytes is achieved +system.content.caching.targetUsagePct=70 +# Threshold in seconds indicating a minimal gap between normal cleanup starts +system.content.caching.normalCleanThresholdSec=0 + +mybatis.useLocalCaches=false + +fileFolderService.checkHidden.enabled=true + + +ticket.cleanup.cronExpression=0 0 * * * ? + +# +# Download Service Cleanup +# +download.cleaner.startDelayMilliseconds=3600000 +# 1 hour +download.cleaner.repeatIntervalMilliseconds=3600000 +download.cleaner.maxAgeMins=60 +# -1 or 0 for not using batches +download.cleaner.batchSize=1000 + +# you could set this to false for new installations greater then ACS 6.2 +# see MNT-20212 +download.cleaner.cleanAllSysDownloadFolders=true + +# +# Download Service Limits, in bytes +# +download.maxContentSize=2152852358 + +# Max size of view trashcan files +# +trashcan.MaxSize=1000 + +# +# Use bridge tables for caching authority evaluation. +# +authority.useBridgeTable=true + +# Limit the number of results from findAuthority query +authority.findAuthorityLimit=10000 + +# enable QuickShare - if false then the QuickShare-specific REST APIs will return 403 Forbidden +system.quickshare.enabled=true +system.quickshare.email.from.default=noreply@alfresco.com +# By default the difference between the quick share expiry date and the current time must be at least 1 day (24 hours). +# However, this can be changed to at least 1 hour or 1 minute for testing purposes. For example, +# setting the value to MINUTES, means the service will calculate the difference between NOW and the given expiry date +# in terms of minutes and checks for the difference to be greater than 1 minute. +# DAYS | HOURS | MINUTES +system.quickshare.expiry_date.enforce.minimum.period=DAYS + +# Oubound Mail +mail.service.corePoolSize=8 +mail.service.maximumPoolSize=20 + +nodes.bulkLoad.cachingThreshold=10 + +# Multi-Tenancy + +# if "dir.contentstore.tenants" is set then +# tenants are not co-mingled and all content roots will appear below this container (in sub-folder) +# and when creating a tenant the "contentRootPath" (root content store directory for a given tenant) will be ignored +dir.contentstore.tenants= + +# Gateway Authentication +# gateway authentication is disabled if empty host is specified +alfresco.authentication.gateway.host= +alfresco.authentication.gateway.protocol=https +alfresco.authentication.gateway.port=443 +alfresco.authentication.gateway.outboundHeaders=Authorization,key +alfresco.authentication.gateway.inboundHeaders=X-Alfresco-Authenticator-Key,X-Alfresco-Remote-User +alfresco.authentication.gateway.prefixUrl=/publicapi +alfresco.authentication.gateway.bufferSize=2048 +alfresco.authentication.gateway.connectTimeout=10000 +alfresco.authentication.gateway.readTimeout=120000 +alfresco.authentication.gateway.httpTcpNodelay=true +alfresco.authentication.gateway.httpConnectionStalecheck=true + +# webscripts config +webscripts.encryptTempFiles=false +webscripts.tempDirectoryName=Alfresco-WebScripts +# 4mb +webscripts.memoryThreshold=4194304 +# 4gb +webscripts.setMaxContentSize=5368709120 + +# Property to enable index upgrade for metadata query (MDQ) +# +# The indexes are not added unless this value is changed +# Adding each the supporting indexes may take several hours depending on the size of the database. +# The required indexes may be added in stages. +# See: classpath:alfresco/dbscripts/upgrade/4.2/${db.script.dialect}/metadata-query-indexes.sql +# See: classpath:alfresco/dbscripts/upgrade/5.1/${db.script.dialect}/metadata-query-indexes-2.sql +system.metadata-query-indexes.ignored=true +system.metadata-query-indexes-more.ignored=true + +# +# Do we defer running the shared folder patch? +# +system.patch.sharedFolder.deferred=false +# Default value is run new years day 2030 i.e. not run. +system.patch.sharedFolder.cronExpression=0 0 0 ? 1 1 2030 + +# +# Default values for deferring the running of the addUnmovableAspect patch +# +system.patch.addUnmovableAspect.deferred=false +system.patch.addUnmovableAspect.cronExpression=0 0 0 ? 1 1 2030 + +# Property to enable removal of all JBPM related data from the database +# +# The tables are not removed from the databasen unless explicitly requested by setting this property to false. +# See: classpath:alfresco/dbscripts/upgrade/5.2/${db.script.dialect}/remove-jbpm-tables-from-db.sql +system.remove-jbpm-tables-from-db.ignored=true + +# +# Use a canned query when requested to search for people if " [hint:useCQ]" is provided in search term +# +people.search.honor.hint.useCQ=true + +# Delays cron jobs after bootstrap to allow server to fully come up before jobs start +system.cronJob.startDelayMilliseconds=60000 + +# Schedule for reading mimetype config definitions dynamically. Initially checks every 10 seconds and then switches to +# every hour after the configuration is read successfully. If there is a error later reading the config, the +# checks return to every 10 seconds. +mimetype.config.cronExpression=0 30 0/1 * * ? +mimetype.config.initialAndOnError.cronExpression=0/10 * * * * ? + +# Optional property to specify an external file or directory that will be read for mimetype definitions from YAML +# files (possibly added to a volume via k8 ConfigMaps). +mimetype.config.dir=shared/classes/alfresco/extension/mimetypes + +# Schedule for reading rendition config definitions dynamically. Initially checks every 10 seconds and then switches to +# every hour after the configuration is read successfully. If there is a error later reading the config, the +# checks return to every 10 seconds. +rendition.config.cronExpression=2 30 0/1 * * ? +rendition.config.initialAndOnError.cronExpression=0/10 * * * * ? + +# Optional property to specify an external file or directory that will be read for rendition definitions from YAML +# files (possibly added to a volume via k8 ConfigMaps). +rendition.config.dir=shared/classes/alfresco/extension/transform/renditions + +# Optional property to specify an external file or directory that will be read for transformer json config. +local.transform.pipeline.config.dir=shared/classes/alfresco/extension/transform/pipelines + +# Used to disable transforms locally. +local.transform.service.enabled=true + +# Schedule for reading local transform config, so that T-Engines and local pipeline config is dynamically +# picked up, or reintegrated after an outage. Initially checks every 10 seconds and then switches to every hour +# after the configuration is read successfully. If there is a error later reading the config, the checks return to +# every 10 seconds. +local.transform.service.cronExpression=4 30 0/1 * * ? +local.transform.service.initialAndOnError.cronExpression=0/10 * * * * ? + +# +# Check that the declared mimetype (of the Node) is the same as the derived +# mimetype of the content (via Tika) before a transformation takes place. +# Only files in the repository (not intermediate files in a transformer +# pipeline) are checked. This property provides a trade off between a +# security check and a relatively expensive (Tika) operation. +# +# There are a few issues with the Tika mimetype detection. So that transformations +# still take place where the detected mimetype is not the same as the declared mimetype, +# another property (transformer.strict.mimetype.check.whitelist.mimetypes) contains pairs +# of declared and detected mimetypes that should be allowed. This parameter value is a +# sequence of ; separated pairs. The declared and derived mimetypes are also ; separated. +# +transformer.strict.mimetype.check=true + +# A white list of declared and detected mimetypes, that don't match, but should still be transformed. +transformer.strict.mimetype.check.whitelist.mimetypes=application/eps;application/postscript;application/illustrator;application/pdf;application/x-tar;application/x-gtar;application/acp;application/zip;application/vnd.stardivision.math;application/x-tika-msoffice + +# +# Enable transformation retrying if the file has MIME type differ than file extension. +# Ignored if transformer.strict.mimetype.check is true as these transformations +# will not take place. +# +content.transformer.retryOn.different.mimetype=true + +# Debug and Log buffer sizes +transformer.debug.entries=0 +transformer.log.entries=50 + +# +# Lock timeout configuration +# +system.lockTryTimeout=100 +system.lockTryTimeout.DictionaryDAOImpl=10000 +system.lockTryTimeout.MessageServiceImpl=${system.lockTryTimeout} +system.lockTryTimeout.PolicyComponentImpl=${system.lockTryTimeout} + + +# Scheduled job to clean up unused properties from the alf_prop_xxx tables. +# Default setting of "0 0 3 ? * SAT" is to run every Saturday at 3am. +attributes.propcleaner.cronExpression=0 0 3 ? * SAT + +# Control Alfresco JMX connectivity +alfresco.jmx.connector.enabled=false + +# Dissallow Attribute Service Entries with "Serializable" objects in key Segments +# Please, see MNT-11895 for details. +system.propval.uniquenessCheck.enabled=true + +# Requests for ephemeral (in-memory) locks with expiry times (in seconds) greater +# than this value will result in persistent locks being created instead. By default +# this value is equal to the maximum allowed expiry for ephemeral locks, therefore +# this feature is disabled by default. Setting this to -1 would mean that ALL +# requests for ephemeral locks would result in persistent locks being created. +alfresco.ephemeralLock.expiryThresh=172800 + +# SurfConfigFolder Patch +# +# Do we defer running the surf-config folder patch? +# +system.patch.surfConfigFolder.deferred=false +# Default value. i.e. never run. It can be triggered using JMX +system.patch.surfConfigFolder.cronExpression=* * * * * ? 2099 + +# +# Solr Facets Config Properties +# +solr_facets.root.path=/app:company_home/app:dictionary +solr_facets.root=${solr_facets.root.path}/${spaces.solr_facets.root.childname} +solr_facets.inheritanceHierarchy=default,custom + +models.enforceTenantInNamespace=false + +# Allowed protocols for links +links.protocosl.white.list=http,https,ftp,mailto + +# Fixed ACLs +# Required for fixing MNT-15368 - Time Consumed for Updating Folder Permission +# ADMAccessControlListDAO.setFixedAcls called on a large folder hierarchy will take a long time for its execution. +# For this reason now method can also be called asynchronously if transaction reaches system.fixedACLs.maxTransactionTime. +# In this case setFixedAcls method recursion will be stopped and unfinished nodes will be marked with ASPECT_PENDING_FIX_ACL. +# Pending nodes will be processed by FixedAclUpdater, programmatically called but also configured as a scheduled job. +system.fixedACLs.maxTransactionTime=10000 +# fixedACLsUpdater - lock time to live +system.fixedACLsUpdater.lockTTL=10000 +# fixedACLsUpdater - maximum number of nodes to process per execution +system.fixedACLsUpdater.maxItemBatchSize=100 +# fixedACLsUpdater - the number of threads to use +system.fixedACLsUpdater.numThreads=4 +# fixedACLsUpdater - Force shared ACL to propagate through children even if there is an unexpected ACL +system.fixedACLsUpdater.forceSharedACL=false +# fixedACLsUpdater cron expression - fire at midnight every day +system.fixedACLsUpdater.cronExpression=0 0 0 * * ? + +cmis.disable.hidden.leading.period.files=false + +#Smart Folders Config Properties +smart.folders.enabled=false + +#Smart reference config +smart.reference.classpath.hash=${smart.folders.config.vanilla.processor.classpath}->1,${smart.folders.config.system.templates.classpath}->2 + +#Smart store config + +#Company home relative download associations of smart entries +smart.download.associations.folder=${spaces.dictionary.childname}/${spaces.smartdownloads.childname} + +#Generic virtualization methods config + +#Vanilla JSON templates javascript processor classpath. A java script processor used to +#covert JSON templates to internal smart folder definitions. + +smart.folders.config.vanilla.processor.classpath=/org/alfresco/repo/virtual/node/vanilla.js + +#System virtualization method config + +#System virtualization method aspect. +smart.folders.config.system.aspect=smf:systemConfigSmartFolder +#System virtualization method aspect defined template location property. +smart.folders.config.system.aspect.template.location.property=smf:system-template-location +#Classpath to be explored for *.json entries defining system templates. +smart.folders.config.system.templates.classpath=/org/alfresco/repo/virtual/node +#A company home relative name or qname path location of repository system templates. +smart.folders.config.system.templates.path=${spaces.dictionary.childname}/${spaces.smartfolders.childname} +#Content sub type of repository system templates. +smart.folders.config.system.templates.template.type=smf:smartFolderTemplate + +#Custom virtualization method config + +#Custom virtualization method aspect. +smart.folders.config.custom.aspect=smf:customConfigSmartFolder +#Custom virtualization method aspect template content association. +smart.folders.config.custom.aspect.template.association=smf:custom-template-association + + +#Type virtualization method config + +#A company home relative name or qname path location of the type mapped templates. +smart.folders.config.type.templates.path=${spaces.dictionary.childname}/${spaces.smartfolders.childname} +#Type and aspect qname regular expression filter. +smart.folders.config.type.templates.qname.filter=none + +# Preferred password encoding, md4, sha256, bcrypt10 +system.preferred.password.encoding=md4 + +# Upgrade Password Hash Job +system.upgradePasswordHash.jobBatchSize=100 +system.upgradePasswordHash.jobQueryRange=10000 +system.upgradePasswordHash.jobThreadCount=4 +system.upgradePasswordHash.jobCronExpression=* * * * * ? 2099 + +system.api.discovery.enabled=true + +# Maximum query size for category/tag fetch when not explicitly set by paging parameters +category.queryFetchSize=5000 + +# Brute force protection +authentication.protection.enabled=true +authentication.protection.limit=10 +authentication.protection.periodSeconds=6 + +system.email.sender.default=noreply@alfresco.com +# reset password workflow will expire in an hour +system.reset-password.endTimer=PT1H +system.reset-password.sendEmailAsynchronously=true + +# HeartBeat +heartbeat.target.url= +heartbeat.enabled=true + +# CSRF filter overrides +csrf.filter.enabled=true +csrf.filter.referer= +csrf.filter.referer.always=false +csrf.filter.origin= +csrf.filter.origin.always=false + +# CORS settings +cors.enabled=false +cors.allowed.origins= +cors.allowed.methods=GET,POST,HEAD,OPTIONS,PUT,DELETE +cors.allowed.headers=Authorization,Content-Type,Cache-Control,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-CSRF-Token +cors.exposed.headers=Access-Control-Allow-Origin,Access-Control-Allow-Credentials +cors.support.credentials=true +cors.preflight.maxage=10 + +# Alfresco Rest Api-Explorer +api-explorer.url= + +# Events subsystem +events.subsystem.autoStart=false +# Messaging subsystem +messaging.subsystem.autoStart=true + + +# Raw events +acs.repo.rendition.events.endpoint=jms:acs-repo-rendition-events?jmsMessageType=Text + +# Transform request events +acs.repo.transform.request.endpoint=jms:acs-repo-transform-request?jmsMessageType=Text + +# If enabled doesn't allow to set content properties via NodeService +contentPropertyRestrictions.enabled=true +contentPropertyRestrictions.whitelist= + +# Repo events2 +# Type and aspect filters which should be excluded +# Note: System folders node types are added by default +repo.event2.filter.nodeTypes=sys:*, fm:*, cm:thumbnail, cm:failedThumbnail, cm:rating, rma:rmsite include_subtypes +repo.event2.filter.nodeAspects=sys:* +repo.event2.filter.childAssocTypes=rn:rendition +# Comma separated list of users which should be excluded +# Note: username's case-sensitivity depends on the {user.name.caseSensitive} setting +repo.event2.filter.users= +# Topic name +repo.event2.topic.endpoint=amqp:topic:alfresco.repo.event2 +# Thread pool for async enqueue of repo events +repo.event2.queue.enqueueThreadPool.priority=1 +repo.event2.queue.enqueueThreadPool.coreSize=8 +repo.event2.queue.enqueueThreadPool.maximumSize=10 +# Thread pool for async dequeue and delivery of repo events +repo.event2.queue.dequeueThreadPool.priority=1 +repo.event2.queue.dequeueThreadPool.coreSize=1 +repo.event2.queue.dequeueThreadPool.maximumSize=1 + + +# MNT-21083 +# --DELETE_NOT_EXISTS - default settings +system.delete_not_exists.batchsize=100000 +system.delete_not_exists.delete_batchsize=1000 +system.delete_not_exists.read_only=false +system.delete_not_exists.timeout_seconds=-1 +system.prop_table_cleaner.algorithm=V2 + +# Configure the system-wide (ACS) settings for direct access urls. +# +# For Direct Access URLs to be usable on the service-layer, the feature must be enabled both system-wide and on the +# content-store(s). For the feature to be usable through REST (outside the JVM) the rest-api configuration must also be +# enabled. +# +# The system.directAccessUrl.enabled property is the main switch of the feature. If this is set to false ALL +# Direct Access URLs are disabled. +# +# The next configuration that controls specific Direct Access URLs is the content store one. +# The connector.s3.directAccessUrl.enabled property controls whether Direct Access URLs are enabled for that specific store. +# +# Whether or not a client can request a Direct Access URL by using a REST endpoint is controlled by the +# restApi.directAccessUrl.enabled property. If the REST endpoint is disabled, but the feature is enabled +# system-wide and on the content-store, then the direct access URLs will only be usable by Java clients (only +# service-level requests will be possible). + +# Controls whether this feature is available, system wide. +# For direct access urls to work, the feature needs to be enabled both system-wide and on the individual content-store. +system.directAccessUrl.enabled=false +# Sets the default expiry time for the direct access url across all Content Stores. +# Its value cannot exceed the system-wide max expiry time, it can only be equal or lower (all DAUs disabled otherwise). +# This property is mandatory if direct access urls are enabled system-wide - (all DAUs disabled otherwise). +system.directAccessUrl.defaultExpiryTimeInSec=30 +# Sets the upper limit for the direct access urls expiry time, meaning a Content Store will be able to override this +# value but not exceed it, and the same goes for the clients. +# A service (Java Interface) client will be able to request a direct access url for a custom expiry time but that time +# can’t exceed this value. +# If the requested time exceeds the max value, the expiry time reverts to the default configured one. +# This property is mandatory if direct access urls are enabled system-wide - (all DAUs disabled otherwise). +system.directAccessUrl.maxExpiryTimeInSec=300 + +# Configure the common S3 storage connector content store settings for direct access urls. +# +# Note: When multiple S3 buckets are used for storage in Alfresco, each S3 Content Stores can be configured with either +# the default (common) S3 Connector-specific properties (i.e. connector.s3.directAccessUrl.enabled etc.) OR new separate +# properties could be defined for each and every store (e.g. +# connector.s3store1.directAccessUrl.enabled, +# connector.s3store2.directAccessUrl.enabled etc.). + +# Controls whether DAUs are enabled on this specific content store. +# For direct access urls to work, the feature needs to be enabled both system-wide and on the individual content-store. +connector.s3.directAccessUrl.enabled=false +# Sets the expiry time for the direct access url in this store, by overriding the system-wide config. +# If this value exceeds the content store upper limit or the system-wide default it will fallback to the system-wide +# default configuration. +# Its value cannot exceed the system-wide max expiry time, it can only be equal or lower (DAUs for the specific content +# store disabled otherwise). +# If not set, the default system-wide setting will be used. +connector.s3.directAccessUrl.defaultExpiryTimeInSec=30 +# The maximum expiry time interval that can be requested by clients - content-store specific setting. +# Its value cannot exceed the system-wide configuration, it can only be equal or lower (DAUs for the specific content +# store disabled otherwise). +# If not set, the default system-wide setting will be used. +connector.s3.directAccessUrl.maxExpiryTimeInSec=300 + +# Configure the REST API configuration settings for direct access urls. +# +# Controls whether direct access url requests via the REST API are enabled. +restApi.directAccessUrl.enabled=true +# Sets the expiry time for all the direct access urls requested via a REST call. +# Its value cannot exceed the system-wide max expiry time configuration, it can only be equal or lower (REST API DAUs +# disabled otherwise). +# If not set, the default system-wide setting will be used. +# Direct Access Url REST API calls cannot request an explicit expiry time. +restApi.directAccessUrl.defaultExpiryTimeInSec=30 + +# Creates additional indexes on alf_node and alf_transaction. Recommended for large repositories. +system.new-node-transaction-indexes.ignored=true + +# Allows the configuration of maximum limits of the temp files to be deleted or the maximum time allowed to run for the job +system.tempFileCleaner.maxFilesToDelete= +system.tempFileCleaner.maxTimeToRun= + +# Property to long running migration to remove alf_server in v7+ patch.db-V7.1.0-remove-alf_server-table +system.remove-alf_server-table-from-db.ignored=true diff --git a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java index 75a8e4c9c7..2d8cc48e74 100644 --- a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java +++ b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java @@ -180,6 +180,8 @@ import org.junit.runners.Suite; org.alfresco.repo.audit.AuditableAnnotationTest.class, org.alfresco.repo.audit.PropertyAuditFilterTest.class, org.alfresco.repo.audit.access.NodeChangeTest.class, + org.alfresco.repo.content.directurl.SystemWideDirectUrlConfigUnitTest.class, + org.alfresco.repo.content.directurl.ContentStoreDirectUrlConfigUnitTest.class, org.alfresco.repo.content.LimitedStreamCopierTest.class, org.alfresco.repo.content.filestore.FileIOTest.class, org.alfresco.repo.content.filestore.SpoofedTextContentReaderTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfigUnitTest.java b/repository/src/test/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfigUnitTest.java new file mode 100644 index 0000000000..b32ed63be8 --- /dev/null +++ b/repository/src/test/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfigUnitTest.java @@ -0,0 +1,234 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import org.junit.Before; +import org.junit.Test; + +/** + * Tests for content store direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class ContentStoreDirectUrlConfigUnitTest +{ + private static final Boolean ENABLED = Boolean.TRUE; + private static final Boolean DISABLED = Boolean.FALSE; + + private static final Long DEFAULT_EXPIRY_TIME_IN_SECS = 10L; + private static final Long MAX_EXPIRY_TIME_IN_SECS = 20L; + + private static final Long SYS_DEFAULT_EXPIRY_TIME_IN_SECS = 30L; + private static final Long SYS_MAX_EXPIRY_TIME_IN_SECS = 300L; + + private ContentStoreDirectUrlConfig contentStoreDirectUrlConfig; + + @Before + public void setup() + { + this.contentStoreDirectUrlConfig = new ContentStoreDirectUrlConfig(); + setupSystemWideDirectAccessConfig(); + } + + @Test + public void testValidConfig_RemainsEnabled() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertTrue("Expected REST API direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testValidConfig_RemainsDisabled() + { + setupDirectAccessConfig(DISABLED, DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeMissing_ValidReplacement() + { + Long maxExpiryTimeInSecs = SYS_DEFAULT_EXPIRY_TIME_IN_SECS + 1; + setupDirectAccessConfig(ENABLED, null, maxExpiryTimeInSecs); + + verifyDirectAccessConfig(ENABLED, null, maxExpiryTimeInSecs); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(ENABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, maxExpiryTimeInSecs); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeMissing_ReplacementExceedsMax() + { + setupDirectAccessConfig(ENABLED, null, MAX_EXPIRY_TIME_IN_SECS); + + verifyDirectAccessConfig(ENABLED, null, MAX_EXPIRY_TIME_IN_SECS); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(DISABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeZero() + { + setupDirectAccessConfig(ENABLED, 0L, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeNegative() + { + setupDirectAccessConfig(ENABLED, -1L, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsSystemMax() + { + Long defaultExpiryTimeInSecs = SYS_MAX_EXPIRY_TIME_IN_SECS + 1; + setupDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsStoreMax_ValidReplacement() + { + Long maxExpiryTimeInSecs = SYS_DEFAULT_EXPIRY_TIME_IN_SECS + 1; + Long defaultExpiryTimeInSecs = maxExpiryTimeInSecs + 1; + setupDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, maxExpiryTimeInSecs); + + verifyDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, maxExpiryTimeInSecs); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(ENABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, maxExpiryTimeInSecs); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsStoreMax_ReplacementExceedsStoreMax() + { + Long defaultExpiryTimeInSecs = MAX_EXPIRY_TIME_IN_SECS + 1; + setupDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, MAX_EXPIRY_TIME_IN_SECS); + + verifyDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, MAX_EXPIRY_TIME_IN_SECS); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(DISABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + } + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsSystemDefault_ValidReplacement() + { + Long defaultExpiryTimeInSecs = SYS_DEFAULT_EXPIRY_TIME_IN_SECS + 1; + Long maxExpiryTimeInSecs = SYS_MAX_EXPIRY_TIME_IN_SECS; + setupDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, maxExpiryTimeInSecs); + + verifyDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, maxExpiryTimeInSecs); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(ENABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, maxExpiryTimeInSecs); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsSystemDefault_ReplacementExceedsStoreMax() + { + Long defaultExpiryTimeInSecs = SYS_DEFAULT_EXPIRY_TIME_IN_SECS + 1; + setupDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, MAX_EXPIRY_TIME_IN_SECS); + + verifyDirectAccessConfig(ENABLED, defaultExpiryTimeInSecs, MAX_EXPIRY_TIME_IN_SECS); + contentStoreDirectUrlConfig.validate(); + verifyDirectAccessConfig(DISABLED, SYS_DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeZero() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, 0L); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeNegative() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, -1L); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeExceedsSystemMax() + { + Long maxExpiryTimeInSec = contentStoreDirectUrlConfig.getSysWideMaxExpiryTimeInSec() + 1; + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, maxExpiryTimeInSec); + + assertTrue("Expected content store direct URLs to be enabled", contentStoreDirectUrlConfig.isEnabled()); + contentStoreDirectUrlConfig.validate(); + assertFalse("Expected content store direct URLs to be disabled", contentStoreDirectUrlConfig.isEnabled()); + } + + /* Helper method to set content store direct access url configuration settings */ + private void setupDirectAccessConfig(Boolean isEnabled, Long defaultExpiryTime, Long maxExpiryTime) + { + contentStoreDirectUrlConfig.setEnabled(isEnabled); + contentStoreDirectUrlConfig.setDefaultExpiryTimeInSec(defaultExpiryTime); + contentStoreDirectUrlConfig.setMaxExpiryTimeInSec(maxExpiryTime); + } + + /* Helper method to verify content store direct access url configuration settings */ + private void verifyDirectAccessConfig(Boolean isEnabled, Long defaultExpiryTime, Long maxExpiryTime) + { + assertEquals("Expected content store direct URLs to be enabled = " + isEnabled, isEnabled, contentStoreDirectUrlConfig.isEnabled()); + assertEquals("Expected default expiry time to match " + defaultExpiryTime, defaultExpiryTime, contentStoreDirectUrlConfig.getDefaultExpiryTimeInSec()); + assertEquals("Expected maximum expiry time to match " + maxExpiryTime, maxExpiryTime, contentStoreDirectUrlConfig.getMaxExpiryTimeInSec()); + } + + /* Helper method to set system-wide direct access url configuration settings */ + private void setupSystemWideDirectAccessConfig() + { + SystemWideDirectUrlConfig sysConfig = new SystemWideDirectUrlConfig(); + sysConfig.setEnabled(ENABLED); + sysConfig.setDefaultExpiryTimeInSec(SYS_DEFAULT_EXPIRY_TIME_IN_SECS); + sysConfig.setMaxExpiryTimeInSec(SYS_MAX_EXPIRY_TIME_IN_SECS); + sysConfig.validate(); + contentStoreDirectUrlConfig.setSystemWideDirectUrlConfig(sysConfig); + } +} diff --git a/repository/src/test/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfigUnitTest.java b/repository/src/test/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfigUnitTest.java new file mode 100644 index 0000000000..d498fac30b --- /dev/null +++ b/repository/src/test/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfigUnitTest.java @@ -0,0 +1,153 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import org.junit.Before; +import org.junit.Test; + +/** + * Tests for system-wide direct access URL configuration settings. + * + * @author Sara Aspery + */ +public class SystemWideDirectUrlConfigUnitTest +{ + private static final Boolean ENABLED = Boolean.TRUE; + private static final Boolean DISABLED = Boolean.FALSE; + + private static final Long DEFAULT_EXPIRY_TIME_IN_SECS = 30L; + private static final Long MAX_EXPIRY_TIME_IN_SECS = 300L; + + private SystemWideDirectUrlConfig systemWideDirectUrlConfig; + + @Before + public void setup() + { + this.systemWideDirectUrlConfig = new SystemWideDirectUrlConfig(); + } + + @Test + public void testValidConfig_RemainsEnabled() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testValidConfig_RemainsDisabled() + { + setupDirectAccessConfig(DISABLED, DEFAULT_EXPIRY_TIME_IN_SECS, MAX_EXPIRY_TIME_IN_SECS); + + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeMissing() + { + setupDirectAccessConfig(ENABLED, null, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeZero() + { + setupDirectAccessConfig(ENABLED, 0L, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeNegative() + { + setupDirectAccessConfig(ENABLED, -1L, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeMissing() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, null); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeZero() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, 0L); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_MaxExpiryTimeNegative() + { + setupDirectAccessConfig(ENABLED, DEFAULT_EXPIRY_TIME_IN_SECS, -1L); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + @Test + public void testInvalidConfig_DefaultExpiryTimeExceedsMax() + { + setupDirectAccessConfig(ENABLED, MAX_EXPIRY_TIME_IN_SECS + 1, MAX_EXPIRY_TIME_IN_SECS); + + assertTrue("Expected system-wide direct URLs to be enabled", systemWideDirectUrlConfig.isEnabled()); + systemWideDirectUrlConfig.validate(); + assertFalse("Expected system-wide direct URLs to be disabled", systemWideDirectUrlConfig.isEnabled()); + } + + /* Helper method to set system-wide direct access url configuration settings */ + private void setupDirectAccessConfig(Boolean isEnabled, Long defaultExpiryTime, Long maxExpiryTime) + { + systemWideDirectUrlConfig.setEnabled(isEnabled); + systemWideDirectUrlConfig.setDefaultExpiryTimeInSec(defaultExpiryTime); + systemWideDirectUrlConfig.setMaxExpiryTimeInSec(maxExpiryTime); + } +} + From b639c6ba6223e5f2584cc6badb878aa0650e277c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 3 Aug 2021 14:10:24 +0000 Subject: [PATCH 009/177] [maven-release-plugin][skip ci] prepare release 11.96 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 226858cc6d..1caf710b7a 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.96-SNAPSHOT + 11.96 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index dd56d77f72..9ee6244924 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.96-SNAPSHOT + 11.96 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6bae6f61bf..951ccb9d38 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index eb0f615759..ca70c55c04 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.96-SNAPSHOT + 11.96 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index af0e1328d2..0722755ce5 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.96-SNAPSHOT + 11.96 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 1a553179c9..03ecba4524 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.96-SNAPSHOT + 11.96 diff --git a/amps/pom.xml b/amps/pom.xml index 16bd6e0e8f..85c12dd668 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a40a247114..b52fcbf1e6 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.96-SNAPSHOT + 11.96 diff --git a/core/pom.xml b/core/pom.xml index c91e85b96a..86cdff7cdc 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/data-model/pom.xml b/data-model/pom.xml index 62b36353ff..3f613e6f77 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index edca71e8c6..73ee9dfd80 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 18b046ff2f..4f70e67e2c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/pom.xml b/packaging/pom.xml index 88973b7f56..0ea6534262 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 7c8787eca5..ffedc8ebfb 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index cc8765d881..59bed93cb8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index a171858629..ef52137fd9 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 202fe42ca5..1d46243514 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index b043eb31d9..e375abe9a9 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 426977cd5d..23de1818de 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96-SNAPSHOT + 11.96 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6e0f5ce0c0..c11abb0b90 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96-SNAPSHOT + 11.96 diff --git a/pom.xml b/pom.xml index 7358e06077..715e9a06bd 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.96-SNAPSHOT + 11.96 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.96 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 8d17938fb0..b77c9184ac 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 diff --git a/repository/pom.xml b/repository/pom.xml index 70c3682a14..af65381b20 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96-SNAPSHOT + 11.96 From a1c0344828a791eddac931ad4c75e05bbd3ef2e8 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 3 Aug 2021 14:10:27 +0000 Subject: [PATCH 010/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 1caf710b7a..7d884423b9 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.96 + 11.97-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 9ee6244924..56601e33fd 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.96 + 11.97-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 951ccb9d38..2ab698e902 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ca70c55c04..577e9d7efe 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.96 + 11.97-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0722755ce5..9807738a2c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.96 + 11.97-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 03ecba4524..5dddf75ce6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.96 + 11.97-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 85c12dd668..9b13e2daf9 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index b52fcbf1e6..570a6aebe6 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.96 + 11.97-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 86cdff7cdc..4f483da4de 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 3f613e6f77..357da1e793 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 73ee9dfd80..3088aa5dcb 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 4f70e67e2c..dbd7c6097f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 0ea6534262..ad5f40b353 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ffedc8ebfb..7c3a356d22 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 59bed93cb8..f406342609 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ef52137fd9..c59c00cdc4 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1d46243514..586d73688d 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index e375abe9a9..16c5e8c8e7 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 23de1818de..abb269b265 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.96 + 11.97-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index c11abb0b90..1f12e44d8d 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.96 + 11.97-SNAPSHOT diff --git a/pom.xml b/pom.xml index 715e9a06bd..cbc9a27925 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.96 + 11.97-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.96 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index b77c9184ac..8d8fa2822f 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index af65381b20..fb924d297f 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.96 + 11.97-SNAPSHOT From 3cf1cfd1332b5e85ba33cdc410ed19beeb410f46 Mon Sep 17 00:00:00 2001 From: ramunteanu Date: Tue, 3 Aug 2021 18:05:15 +0300 Subject: [PATCH 011/177] feature/APPS-1004 (#624) * APPS-1004/APPS-1005: Retention steps are not updated when moving from another category with a different retention schedule * APPS-1004/APPS-1005: [AGS] Retention steps are not updated when moving from another category with a different retention schedule - Added test for APPS-1004 and changed fix to solve another isuue RM-7106 * APPS-1004/APPS-1005: [AGS] Retention steps are not updated when moving from another category with a different retention schedule - Added common method to be used by both categoryType and folderType * APPS-1004/APPS-1005: [AGS] Retention steps are not updated when moving from another category with a different retention schedule - Added change to reinitialize folders recursively, for the case where there are multiple subcategories * APPS-1004/APPS-1005: [AGS] Retention steps are not updated when moving from another category with a different retention schedule - Added changes suggested at review --- .../rm-model-context.xml | 2 + .../behaviour/AbstractDisposableItem.java | 59 +++++- .../model/rma/type/RecordCategoryType.java | 69 +++++-- .../model/rma/type/RecordFolderType.java | 49 +---- .../DispositionScheduleInheritanceTest.java | 175 ++++++++++++++++++ .../test/util/CommonRMTestUtils.java | 2 + 6 files changed, 292 insertions(+), 64 deletions(-) diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml index 8218bd49d0..23b950f2ea 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml @@ -102,9 +102,11 @@ + + diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/behaviour/AbstractDisposableItem.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/behaviour/AbstractDisposableItem.java index bd0d9e17dd..a064d97c38 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/behaviour/AbstractDisposableItem.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/behaviour/AbstractDisposableItem.java @@ -30,6 +30,10 @@ package org.alfresco.module.org_alfresco_module_rm.model.behaviour; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionAction; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionService; import org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean; +import org.alfresco.module.org_alfresco_module_rm.record.RecordService; +import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.namespace.QName; @@ -52,7 +56,13 @@ public abstract class AbstractDisposableItem extends BaseBehaviourBean /** disposition service */ protected DispositionService dispositionService; - + + /** record service */ + protected RecordService recordService; + + /** record folder service */ + protected RecordFolderService recordFolderService; + /** * @param dispositionService disposition service */ @@ -60,6 +70,22 @@ public abstract class AbstractDisposableItem extends BaseBehaviourBean { this.dispositionService = dispositionService; } + + /** + * @param recordService record service + */ + public void setRecordService(RecordService recordService) + { + this.recordService = recordService; + } + + /** + * @param recordFolderService record folder service + */ + public void setRecordFolderService(RecordFolderService recordFolderService) + { + this.recordFolderService = recordFolderService; + } /** * Removes unwanted aspects @@ -86,4 +112,35 @@ public abstract class AbstractDisposableItem extends BaseBehaviourBean } } + /** + * Cleans and re-initiates the containing records + * + * @param childAssociationRef + */ + protected void reinitializeRecordFolder(ChildAssociationRef childAssociationRef) + { + + NodeRef newNodeRef = childAssociationRef.getChildRef(); + + AuthenticationUtil.runAs(() -> { + // clean record folder + cleanDisposableItem(nodeService, newNodeRef); + + // re-initialise the record folder + recordFolderService.setupRecordFolder(newNodeRef); + + // sort out the child records + for (NodeRef record : recordService.getRecords(newNodeRef)) + { + // clean record + cleanDisposableItem(nodeService, record); + + // Re-initiate the records in the new folder. + recordService.file(record); + } + + return null; + }, AuthenticationUtil.getSystemUserName()); + } + } diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordCategoryType.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordCategoryType.java index 500aec6f6d..9a09513f15 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordCategoryType.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordCategoryType.java @@ -27,13 +27,14 @@ package org.alfresco.module.org_alfresco_module_rm.model.rma.type; +import static org.alfresco.model.ContentModel.TYPE_CONTENT; + import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.alfresco.model.ContentModel; -import org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean; -import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; +import org.alfresco.module.org_alfresco_module_rm.model.behaviour.AbstractDisposableItem; import org.alfresco.module.org_alfresco_module_rm.security.FilePlanPermissionService; import org.alfresco.module.org_alfresco_module_rm.vital.VitalRecordService; import org.alfresco.repo.copy.CopyBehaviourCallback; @@ -49,6 +50,7 @@ import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.namespace.QName; +import org.alfresco.service.namespace.RegexQNamePattern; /** * rma:recordCategory behaviour bean @@ -60,9 +62,10 @@ import org.alfresco.service.namespace.QName; ( defaultType = "rma:recordCategory" ) -public class RecordCategoryType extends BaseBehaviourBean +public class RecordCategoryType extends AbstractDisposableItem implements NodeServicePolicies.OnCreateChildAssociationPolicy, - NodeServicePolicies.OnCreateNodePolicy + NodeServicePolicies.OnCreateNodePolicy, + NodeServicePolicies.OnMoveNodePolicy { private final static List ACCEPTED_UNIQUE_CHILD_TYPES = new ArrayList<>(); private final static List ACCEPTED_NON_UNIQUE_CHILD_TYPES = Arrays.asList(TYPE_RECORD_CATEGORY, TYPE_RECORD_FOLDER); @@ -73,9 +76,6 @@ public class RecordCategoryType extends BaseBehaviourBean /** file plan permission service */ protected FilePlanPermissionService filePlanPermissionService; - /** record folder service */ - private RecordFolderService recordFolderService; - /** * @param vitalRecordService vital record service */ @@ -92,14 +92,6 @@ public class RecordCategoryType extends BaseBehaviourBean this.filePlanPermissionService = filePlanPermissionService; } - /** - * @param recordFolderService record folder service - */ - public void setRecordFolderService(RecordFolderService recordFolderService) - { - this.recordFolderService = recordFolderService; - } - /** * On every event * @@ -204,6 +196,53 @@ public class RecordCategoryType extends BaseBehaviourBean } + /** + * Record Category move behaviour + * + * @see org.alfresco.repo.node.NodeServicePolicies.OnMoveNodePolicy#onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef, org.alfresco.service.cmr.repository.ChildAssociationRef) + */ + @Override + @Behaviour + ( + kind = BehaviourKind.CLASS, + notificationFrequency = NotificationFrequency.FIRST_EVENT + ) + public void onMoveNode(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef) + { + // clean the child folders and records only if the old parent category has a disposition schedule set + // if it doesn't, then there are no old properties on the child nodes that have to be cleaned in order + // for new ones to be set + if (nodeService.getType(newChildAssocRef.getChildRef()).equals(TYPE_RECORD_CATEGORY) + && dispositionService.getDispositionSchedule(oldChildAssocRef.getParentRef()) != null) + { + reinitializeRecordFolders(newChildAssocRef); + } + } + + /** + * Recursively reinitialize each folder in a structure of categories + * Unwanted aspects will be removed from the child records and the records will be re-filed + * Disposition schedule aspects and properties will be inherited from the new parent category + * + * @param childAssociationRef + */ + private void reinitializeRecordFolders(ChildAssociationRef childAssociationRef) + { + for (ChildAssociationRef newChildRef : nodeService.getChildAssocs(childAssociationRef.getChildRef(), + ContentModel.ASSOC_CONTAINS, + RegexQNamePattern.MATCH_ALL)) + { + if (nodeService.getType(newChildRef.getChildRef()).equals(TYPE_RECORD_CATEGORY)) + { + reinitializeRecordFolders(newChildRef); + } + else if (!nodeService.getType(newChildRef.getChildRef()).equals(TYPE_CONTENT)) + { + reinitializeRecordFolder(newChildRef); + } + } + } + /** * Copy callback for record category */ diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordFolderType.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordFolderType.java index f9eb29dbfb..f6dee11ea2 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordFolderType.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RecordFolderType.java @@ -34,8 +34,6 @@ import org.alfresco.model.ContentModel; import org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierService; import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel; import org.alfresco.module.org_alfresco_module_rm.model.behaviour.AbstractDisposableItem; -import org.alfresco.module.org_alfresco_module_rm.record.RecordService; -import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; import org.alfresco.module.org_alfresco_module_rm.vital.VitalRecordService; import org.alfresco.repo.copy.CopyBehaviourCallback; import org.alfresco.repo.copy.CopyDetails; @@ -68,11 +66,6 @@ public class RecordFolderType extends AbstractDisposableItem implements NodeServicePolicies.OnMoveNodePolicy, NodeServicePolicies.OnCreateChildAssociationPolicy { - /** record service */ - private RecordService recordService; - - /** record folder service */ - private RecordFolderService recordFolderService; /** vital record service */ protected VitalRecordService vitalRecordService; @@ -85,22 +78,6 @@ public class RecordFolderType extends AbstractDisposableItem private static final String MSG_CANNOT_CREATE_CHILDREN_IN_CLOSED_RECORD_FOLDER = "rm.service.add-children-to-closed-record-folder"; - /** - * @param recordService record service - */ - public void setRecordService(RecordService recordService) - { - this.recordService = recordService; - } - - /** - * @param recordFolderService record folder service - */ - public void setRecordFolderService(RecordFolderService recordFolderService) - { - this.recordFolderService = recordFolderService; - } - /** * @param vitalRecordService vital record service */ @@ -131,31 +108,7 @@ public class RecordFolderType extends AbstractDisposableItem { if (!oldChildAssocRef.getParentRef().equals(newChildAssocRef.getParentRef())) { - final NodeRef newNodeRef = newChildAssocRef.getChildRef(); - - AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork() - { - public Object doWork() - { - // clean record folder - cleanDisposableItem(nodeService, newNodeRef); - - // re-initialise the record folder - recordFolderService.setupRecordFolder(newNodeRef); - - // sort out the child records - for (NodeRef record : recordService.getRecords(newNodeRef)) - { - // clean record - cleanDisposableItem(nodeService, record); - - // Re-initiate the records in the new folder. - recordService.file(record); - } - - return null; - } - }, AuthenticationUtil.getSystemUserName()); + reinitializeRecordFolder(newChildAssocRef); } } else diff --git a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/disposition/DispositionScheduleInheritanceTest.java b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/disposition/DispositionScheduleInheritanceTest.java index e55fe0e7b6..2427227972 100644 --- a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/disposition/DispositionScheduleInheritanceTest.java +++ b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/disposition/DispositionScheduleInheritanceTest.java @@ -28,6 +28,8 @@ package org.alfresco.module.org_alfresco_module_rm.test.integration.disposition; import static org.alfresco.module.org_alfresco_module_rm.test.util.CommonRMTestUtils.DEFAULT_DISPOSITION_DESCRIPTION; import static org.alfresco.module.org_alfresco_module_rm.test.util.CommonRMTestUtils.DEFAULT_DISPOSITION_INSTRUCTIONS; +import static org.alfresco.module.org_alfresco_module_rm.test.util.CommonRMTestUtils.DEFAULT_EVENT_NAME; +import static org.alfresco.module.org_alfresco_module_rm.test.util.CommonRMTestUtils.SEPARATION_EVENT_NAME; import static org.alfresco.util.GUID.generate; import java.io.Serializable; @@ -37,6 +39,7 @@ import java.util.List; import java.util.Map; import org.alfresco.module.org_alfresco_module_rm.action.impl.CutOffAction; +import org.alfresco.module.org_alfresco_module_rm.action.impl.DestroyAction; import org.alfresco.module.org_alfresco_module_rm.action.impl.RetainAction; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionAction; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule; @@ -190,6 +193,162 @@ public class DispositionScheduleInheritanceTest extends BaseRMTestCase }); } + /** + * Given a root record category A with a retention schedule set to retain and destroy after 1 day + * and another root record category B with a retention schedule set to cut off and destroy after 1 day containing a + * subcategory + * When moving the subcategory into the first root category + * Then records under the subcategory inherit the retention schedule of the parent record category + * The events list contain the retain event step inherited from the new parent category + *

+ * Please see https://alfresco.atlassian.net/browse/APPS-1004 + */ + public void testRetentionScheduleInheritance_APPS_1004() + { + doBehaviourDrivenTest(new BehaviourDrivenTest() + { + NodeRef category1; + NodeRef subcategory2; + NodeRef record; + Date asOfDateBeforeMove; + + @Override + public void given() + { + // create root category1 + category1 = filePlanService.createRecordCategory(filePlan, generate()); + + // create record level disposition schedule for category1 + createDispositionScheduleRetainAndCutOffOneDay(category1); + + // create root category2 + NodeRef category2 = filePlanService.createRecordCategory(filePlan, generate()); + + // create record level disposition schedule for category2 + createDispositionScheduleCutOffAndDestroyOneDay(category2); + + // create subcategory2 under category2 + subcategory2 = filePlanService.createRecordCategory(category2, generate()); + + // create folder under subcategory2 + folder = recordFolderService.createRecordFolder(subcategory2, generate()); + + // file record in folder and complete it + record = utils.createRecord(folder, generate(), generate()); + utils.completeRecord(record); + + //store the date to check if it was updated + asOfDateBeforeMove = dispositionService.getNextDispositionAction(record).getAsOfDate(); + } + + @Override + public void when() throws Exception + { + // move subcategory2 under category1 + fileFolderService.move(subcategory2, category1, null); + } + + @Override + public void then() throws Exception + { + dispositionService.getDispositionSchedule(record); + // check the next disposition action + DispositionAction dispositionActionAfterMove = dispositionService.getNextDispositionAction(record); + assertNotNull(dispositionActionAfterMove); + assertEquals(RetainAction.NAME, dispositionActionAfterMove.getName()); + assertNotNull(dispositionActionAfterMove.getAsOfDate()); + assertTrue(dispositionActionAfterMove.getAsOfDate().after(asOfDateBeforeMove)); + + // check the search aspect details + assertTrue(nodeService.hasAspect(record, ASPECT_RM_SEARCH)); + assertEquals(RetainAction.NAME, nodeService.getProperty(record, PROP_RS_DISPOSITION_ACTION_NAME)); + assertNotNull(nodeService.getProperty(record, PROP_RS_DISPOSITION_ACTION_AS_OF)); + assertNull((List) nodeService.getProperty(record, PROP_RS_DISPOSITION_EVENTS)); + assertNotNull(nodeService.getProperty(record, PROP_RS_DISPOITION_INSTRUCTIONS)); + assertNotNull(nodeService.getProperty(record, PROP_RS_DISPOITION_AUTHORITY)); + assertTrue((Boolean) nodeService.getProperty(record, PROP_RS_HAS_DISPOITION_SCHEDULE)); + } + }); + } + + /** + * Given a root record category A with a retention schedule set to cut off on event 'case closed' + * and another root record category B with a retention schedule set to cut off on event 'separation' + * When moving the subcategory into the first root category + * Then records under the subcategory inherit the retention schedule of the parent record category + * The events list contain the case closed event step inherited from the new parent category + *

+ * Please see https://alfresco.atlassian.net/browse/APPS-1005 + */ + public void testRetentionScheduleInheritance_APPS_1005() + { + doBehaviourDrivenTest(new BehaviourDrivenTest() + { + NodeRef category1; + NodeRef subcategory2; + NodeRef record; + Date asOfDateBeforeMove; + + @Override + public void given() + { + // create root category1 + category1 = filePlanService.createRecordCategory(filePlan, generate()); + + utils.createDispositionSchedule(category1, DEFAULT_DISPOSITION_INSTRUCTIONS, + DEFAULT_DISPOSITION_DESCRIPTION, true, true, false, DEFAULT_EVENT_NAME); + + // create root category2 + NodeRef category2 = filePlanService.createRecordCategory(filePlan, generate()); + + // create record level disposition schedule for category2 + utils.createDispositionSchedule(category2, DEFAULT_DISPOSITION_INSTRUCTIONS, + DEFAULT_DISPOSITION_DESCRIPTION, true, true, false, SEPARATION_EVENT_NAME); + + // create subcategory2 under category2 + subcategory2 = filePlanService.createRecordCategory(category2, generate()); + + // create folder under subcategory2 + folder = recordFolderService.createRecordFolder(subcategory2, generate()); + + // file record in folder and complete it + record = utils.createRecord(folder, generate(), generate()); + utils.completeRecord(record); + + //store the date to check if it was updated + asOfDateBeforeMove = dispositionService.getNextDispositionAction(record).getAsOfDate(); + } + + @Override + public void when() throws Exception + { + // move subcategory2 under category1 + fileFolderService.move(subcategory2, category1, null); + } + + @Override + public void then() throws Exception + { + // check the next disposition action + DispositionAction dispositionActionAfterMove = dispositionService.getNextDispositionAction(record); + assertNotNull(dispositionActionAfterMove); + assertEquals(CutOffAction.NAME, dispositionActionAfterMove.getName()); + + // check the search aspect details + assertTrue(nodeService.hasAspect(record, ASPECT_RM_SEARCH)); + assertEquals(CutOffAction.NAME, nodeService.getProperty(record, PROP_RS_DISPOSITION_ACTION_NAME)); + assertNotNull((List) nodeService.getProperty(record, PROP_RS_DISPOSITION_EVENTS)); + assertEquals(((List) ((List) nodeService.getProperty(record, + PROP_RS_DISPOSITION_EVENTS))).size(), 1); + assertEquals(DEFAULT_EVENT_NAME, ((List) ((List) nodeService.getProperty(record, + PROP_RS_DISPOSITION_EVENTS))).get(0)); + assertNotNull(nodeService.getProperty(record, PROP_RS_DISPOITION_INSTRUCTIONS)); + assertNotNull(nodeService.getProperty(record, PROP_RS_DISPOITION_AUTHORITY)); + assertTrue((Boolean) nodeService.getProperty(record, PROP_RS_HAS_DISPOITION_SCHEDULE)); + } + }); + } + private void createDispositionScheduleCutOff(NodeRef category, String action, String period) { DispositionSchedule ds = utils.createDispositionSchedule(category, DEFAULT_DISPOSITION_INSTRUCTIONS, DEFAULT_DISPOSITION_DESCRIPTION, true, false, false); @@ -205,6 +364,22 @@ public class DispositionScheduleInheritanceTest extends BaseRMTestCase createDispositionScheduleStep(ds, RetainAction.NAME, CommonRMTestUtils.PERIOD_IMMEDIATELY); } + private void createDispositionScheduleRetainAndCutOffOneDay(NodeRef category) + { + DispositionSchedule ds = utils.createDispositionSchedule(category, DEFAULT_DISPOSITION_INSTRUCTIONS, DEFAULT_DISPOSITION_DESCRIPTION, true, false, false); + + createDispositionScheduleStep(ds, RetainAction.NAME, CommonRMTestUtils.PERIOD_ONE_DAY); + createDispositionScheduleStep(ds, DestroyAction.NAME, CommonRMTestUtils.PERIOD_ONE_DAY); + } + + private void createDispositionScheduleCutOffAndDestroyOneDay(NodeRef category) + { + DispositionSchedule ds = utils.createDispositionSchedule(category, DEFAULT_DISPOSITION_INSTRUCTIONS, DEFAULT_DISPOSITION_DESCRIPTION, true, false, false); + + createDispositionScheduleStep(ds, CutOffAction.NAME, CommonRMTestUtils.PERIOD_ONE_DAY); + createDispositionScheduleStep(ds, DestroyAction.NAME, CommonRMTestUtils.PERIOD_ONE_DAY); + } + private void createDispositionScheduleStep(DispositionSchedule ds, String action, String period) { Map step = new HashMap(3); diff --git a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/util/CommonRMTestUtils.java b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/util/CommonRMTestUtils.java index 2543f63225..7d9dc3d0ae 100644 --- a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/util/CommonRMTestUtils.java +++ b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/util/CommonRMTestUtils.java @@ -82,8 +82,10 @@ public class CommonRMTestUtils implements RecordsManagementModel public static final String DEFAULT_DISPOSITION_INSTRUCTIONS = "disposition instructions"; public static final String DEFAULT_DISPOSITION_DESCRIPTION = "disposition action description"; public static final String DEFAULT_EVENT_NAME = "case_closed"; + public static final String SEPARATION_EVENT_NAME = "separation"; public static final String PERIOD_NONE = "none|0"; public static final String PERIOD_IMMEDIATELY = "immediately|0"; + public static final String PERIOD_ONE_DAY = "day|1"; public static final String PERIOD_FIVE_DAYS = "day|5"; public static final String PERIOD_TEN_DAYS = "day|10"; public static final String PERIOD_ONE_WEEK = "week|1"; From 2deb07b97b743e0724379b4e0f604bb60dc4171e Mon Sep 17 00:00:00 2001 From: Andrea Ligios <11974750+andrea-ligios@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:35:26 +0200 Subject: [PATCH 012/177] ACS-1742 - Marked test as NOT_SUPPORTED_ON_SINGLE_PIPELINE (#641) --- .../src/test/java/org/alfresco/cmis/CancelCheckOutTests.java | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/tests/tas-cmis/src/test/java/org/alfresco/cmis/CancelCheckOutTests.java b/packaging/tests/tas-cmis/src/test/java/org/alfresco/cmis/CancelCheckOutTests.java index 088955f88f..d5eaa2a79b 100644 --- a/packaging/tests/tas-cmis/src/test/java/org/alfresco/cmis/CancelCheckOutTests.java +++ b/packaging/tests/tas-cmis/src/test/java/org/alfresco/cmis/CancelCheckOutTests.java @@ -90,7 +90,7 @@ public class CancelCheckOutTests extends CmisTest .cancelCheckOut(); } - @Test(groups = { TestGroup.REGRESSION, TestGroup.CMIS}) + @Test(groups = { TestGroup.NOT_SUPPORTED_ON_SINGLE_PIPELINE, TestGroup.REGRESSION, TestGroup.CMIS}) @TestRail(section = {"cmis-api"}, executionType= ExecutionType.REGRESSION, description = "Verify that cancel check out on document created with Versioning State CHECKED OUT deletes the document") public void cancelCheckOutOnDocWithVersioningStateCheckedOut() throws Exception diff --git a/pom.xml b/pom.xml index cbc9a27925..86593867bd 100644 --- a/pom.xml +++ b/pom.xml @@ -112,7 +112,7 @@ 8.0.25 8 2.7.2 - 3.0.44 + 3.0.45 3.3.0 1.61 1.30 From d9c00165910863d6d83c491db37f3189abe75a9e Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 4 Aug 2021 20:28:20 +0000 Subject: [PATCH 013/177] [maven-release-plugin][skip ci] prepare release 11.97 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7d884423b9..7af2c37b72 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.97-SNAPSHOT + 11.97 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 56601e33fd..abe66dc380 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.97-SNAPSHOT + 11.97 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 2ab698e902..766e275457 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 577e9d7efe..680e8702b7 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.97-SNAPSHOT + 11.97 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 9807738a2c..84d0eb0f73 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.97-SNAPSHOT + 11.97 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5dddf75ce6..8b46bd7781 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.97-SNAPSHOT + 11.97 diff --git a/amps/pom.xml b/amps/pom.xml index 9b13e2daf9..fc76159378 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 570a6aebe6..8e6c4c6227 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.97-SNAPSHOT + 11.97 diff --git a/core/pom.xml b/core/pom.xml index 4f483da4de..f9dfe69856 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/data-model/pom.xml b/data-model/pom.xml index 357da1e793..185969231a 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 3088aa5dcb..8f1775f249 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index dbd7c6097f..fe40b78d7c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/pom.xml b/packaging/pom.xml index ad5f40b353..3ffd8ea86d 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 7c3a356d22..3dcb6d58a3 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f406342609..a33b89b468 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c59c00cdc4..ebdaade2bf 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 586d73688d..452282a120 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 16c5e8c8e7..9c55164369 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index abb269b265..682d2424f8 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97-SNAPSHOT + 11.97 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1f12e44d8d..5d1ba6a874 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97-SNAPSHOT + 11.97 diff --git a/pom.xml b/pom.xml index 86593867bd..d18aeafeb7 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.97-SNAPSHOT + 11.97 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.97 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 8d8fa2822f..c719e0781f 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 diff --git a/repository/pom.xml b/repository/pom.xml index fb924d297f..97af773a89 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97-SNAPSHOT + 11.97 From 8e973c2b603195f86ba36fd37c70ef0ce934fdc8 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 4 Aug 2021 20:28:23 +0000 Subject: [PATCH 014/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7af2c37b72..6ff2fc6dd8 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.97 + 11.98-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index abe66dc380..cbf231ee19 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.97 + 11.98-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 766e275457..bb557888f3 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 680e8702b7..74a708779a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.97 + 11.98-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 84d0eb0f73..8b3f530da0 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.97 + 11.98-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 8b46bd7781..868f0fb487 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.97 + 11.98-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index fc76159378..9092eb96c3 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 8e6c4c6227..10300b512d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.97 + 11.98-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index f9dfe69856..de1e914c7f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 185969231a..652aeb24bd 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 8f1775f249..07b28246e2 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index fe40b78d7c..c5c2aa864d 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 3ffd8ea86d..319974f5d3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3dcb6d58a3..3cb192727a 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index a33b89b468..90f03c4c84 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ebdaade2bf..0efe9c0c48 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 452282a120..da3016fcb5 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 9c55164369..d7e5043abd 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 682d2424f8..dbdc05972b 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.97 + 11.98-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 5d1ba6a874..be9b1b795f 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.97 + 11.98-SNAPSHOT diff --git a/pom.xml b/pom.xml index d18aeafeb7..5328d0d1f4 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.97 + 11.98-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.97 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index c719e0781f..816f2756f3 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 97af773a89..7c8a408dd5 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.97 + 11.98-SNAPSHOT From 216f60a0ec725a8841bafb1631d2b8fe5e71daea Mon Sep 17 00:00:00 2001 From: CezarLeahu <35226487+CezarLeahu@users.noreply.github.com> Date: Fri, 6 Aug 2021 14:46:06 +0300 Subject: [PATCH 015/177] ACS-1773 APPS-986 Refactor on TempOutputStream, BufferedRequest, BufferedResponse & RepositoryContainer (#584) - remove the `TempOutputStream.deleteTempFileOnClose` capability - separate the `.close()` and the `.destroy()` methods in **TempOutputStream** (only the latter deletes the temp file) - made `BufferedRequest`&`BufferedResponse` **AutoClosable**; their `.close()` methods always calls `.destroy()` on the underlying _TempOutputStream_ object (thus triggering the removal of their temp files) - remove the `.destroy()` call from the `BufferedResponse.writeResponse()` method - use `BufferedRequest`&`BufferedResponse` in try-with-resources blocks (thus calling their `.close()` methods, which calls `.destroy()` on _TempOutputStream_, tiggering the removal of the temp files) - both in **RepositoryContainer** and in **ApiWebScripts** - replace the `TempOutputStreamFactory` class with a simple `Supplier` - remove the `TempByteArrayOutputStream` inner class (replaced with `ByteArrayOutputStream`) - simplified the decision tree in some methods with the help of the IDE - other small improvements and changes --- .../repo/web/scripts/BufferedRequest.java | 22 +- .../repo/web/scripts/BufferedResponse.java | 74 ++- .../repo/web/scripts/RepositoryContainer.java | 562 +++++++++--------- .../repo/web/scripts/TempOutputStream.java | 187 +++--- .../web/scripts/TempOutputStreamFactory.java | 105 ---- .../filefolder/FileFolderLoaderPost.java | 287 +++++---- .../PostSnapshotCommandProcessor.java | 19 +- .../framework/webscripts/ApiWebScript.java | 47 +- .../alfresco/web/scripts/WebScriptUtils.java | 214 +++---- .../rest/api/tests/BufferedResponseTest.java | 42 +- .../rest/api/tests/TempOutputStreamTest.java | 53 +- 11 files changed, 729 insertions(+), 883 deletions(-) delete mode 100644 remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStreamFactory.java diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedRequest.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedRequest.java index a655e2b631..dec5f19b01 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedRequest.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedRequest.java @@ -29,6 +29,7 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.util.function.Supplier; import org.springframework.extensions.surf.util.Content; import org.springframework.extensions.webscripts.Description.FormatStyle; @@ -38,15 +39,15 @@ import org.springframework.extensions.webscripts.WebScriptRequest; import org.springframework.extensions.webscripts.WrappingWebScriptRequest; import org.springframework.util.FileCopyUtils; -public class BufferedRequest implements WrappingWebScriptRequest +public class BufferedRequest implements WrappingWebScriptRequest, AutoCloseable { - private TempOutputStreamFactory streamFactory; - private WebScriptRequest req; + private final Supplier streamFactory; + private final WebScriptRequest req; private TempOutputStream bufferStream; private InputStream contentStream; private BufferedReader contentReader; - public BufferedRequest(WebScriptRequest req, TempOutputStreamFactory streamFactory) + public BufferedRequest(WebScriptRequest req, Supplier streamFactory) { this.req = req; this.streamFactory = streamFactory; @@ -56,7 +57,7 @@ public class BufferedRequest implements WrappingWebScriptRequest { if (bufferStream == null) { - bufferStream = streamFactory.createOutputStream(); + bufferStream = streamFactory.get(); try { @@ -81,7 +82,7 @@ public class BufferedRequest implements WrappingWebScriptRequest } if (contentStream == null) { - contentStream = getBufferedBodyAsTempStream().getInputStream(); + contentStream = getBufferedBodyAsTempStream().toNewInputStream(); } return contentStream; @@ -95,7 +96,7 @@ public class BufferedRequest implements WrappingWebScriptRequest { contentStream.close(); } - catch (Exception e) + catch (Exception ignore) { } contentStream = null; @@ -106,13 +107,14 @@ public class BufferedRequest implements WrappingWebScriptRequest { contentReader.close(); } - catch (Exception e) + catch (Exception ignore) { } contentReader = null; } } - + + @Override public void close() { reset(); @@ -122,7 +124,7 @@ public class BufferedRequest implements WrappingWebScriptRequest { bufferStream.destroy(); } - catch (Exception e) + catch (Exception ignore) { } bufferStream = null; diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedResponse.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedResponse.java index f5811b01ad..4e082052dd 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedResponse.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/BufferedResponse.java @@ -28,6 +28,7 @@ package org.alfresco.repo.web.scripts; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; +import java.util.function.Supplier; import org.alfresco.error.AlfrescoRuntimeException; import org.apache.commons.logging.Log; @@ -42,25 +43,24 @@ import org.springframework.util.FileCopyUtils; /** * Transactional Buffered Response */ -public class BufferedResponse implements WrappingWebScriptResponse +public class BufferedResponse implements WrappingWebScriptResponse, AutoCloseable { // Logger protected static final Log logger = LogFactory.getLog(BufferedResponse.class); - private TempOutputStreamFactory streamFactory; - private WebScriptResponse res; - private int bufferSize; - private TempOutputStream outputStream = null; - private StringBuilderWriter outputWriter = null; - + private final Supplier streamFactory; + private final WebScriptResponse res; + private final int bufferSize; + private TempOutputStream outputStream; + private StringBuilderWriter outputWriter; /** * Construct - * - * @param res WebScriptResponse + * + * @param res WebScriptResponse * @param bufferSize int */ - public BufferedResponse(WebScriptResponse res, int bufferSize, TempOutputStreamFactory streamFactory) + public BufferedResponse(WebScriptResponse res, int bufferSize, Supplier streamFactory) { this.res = res; this.bufferSize = bufferSize; @@ -71,6 +71,7 @@ public class BufferedResponse implements WrappingWebScriptResponse * (non-Javadoc) * @see org.alfresco.web.scripts.WrappingWebScriptResponse#getNext() */ + @Override public WebScriptResponse getNext() { return res; @@ -123,16 +124,18 @@ public class BufferedResponse implements WrappingWebScriptResponse * (non-Javadoc) * @see org.alfresco.web.scripts.WebScriptResponse#getOutputStream() */ + @Override public OutputStream getOutputStream() throws IOException { - if (outputStream == null) + if (outputStream != null) { - if (outputWriter != null) - { - throw new AlfrescoRuntimeException("Already buffering output writer"); - } - outputStream = streamFactory.createOutputStream(); + return outputStream; } + if (outputWriter != null) + { + throw new AlfrescoRuntimeException("Already buffering output writer"); + } + outputStream = streamFactory.get(); return outputStream; } @@ -151,14 +154,15 @@ public class BufferedResponse implements WrappingWebScriptResponse */ public Writer getWriter() throws IOException { - if (outputWriter == null) + if (outputWriter != null) { - if (outputStream != null) - { - throw new AlfrescoRuntimeException("Already buffering output stream"); - } - outputWriter = new StringBuilderWriter(bufferSize); + return outputWriter; } + if (outputStream != null) + { + throw new AlfrescoRuntimeException("Already buffering output stream"); + } + outputWriter = new StringBuilderWriter(bufferSize); return outputWriter; } @@ -262,15 +266,7 @@ public class BufferedResponse implements WrappingWebScriptResponse if (logger.isDebugEnabled()) logger.debug("Writing Transactional response: size=" + outputStream.getLength()); - try - { - outputStream.flush(); - FileCopyUtils.copy(outputStream.getInputStream(), res.getOutputStream()); - } - finally - { - outputStream.destroy(); - } + FileCopyUtils.copy(outputStream.toNewInputStream(), res.getOutputStream()); } } catch (IOException e) @@ -278,4 +274,20 @@ public class BufferedResponse implements WrappingWebScriptResponse throw new AlfrescoRuntimeException("Failed to commit buffered response", e); } } + + @Override + public void close() + { + if (outputStream != null) + { + try + { + outputStream.destroy(); + } + catch (Exception ignore) + { + } + outputStream = null; + } + } } diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java index 7e1728be5c..bbc5f018a9 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java @@ -25,12 +25,12 @@ */ package org.alfresco.repo.web.scripts; -import java.io.File; import java.io.IOException; import java.net.SocketException; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.function.Supplier; import javax.servlet.http.HttpServletResponse; import javax.transaction.Status; @@ -40,7 +40,6 @@ import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.ExceptionStackUtil; import org.alfresco.repo.model.Repository; import org.alfresco.repo.security.authentication.AuthenticationUtil; -import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; import org.alfresco.repo.transaction.AlfrescoTransactionSupport; import org.alfresco.repo.transaction.AlfrescoTransactionSupport.TxnReadState; import org.alfresco.repo.transaction.RetryingTransactionHelper; @@ -95,8 +94,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer private String tempDirectoryName = null; private int memoryThreshold = 4 * 1024 * 1024; // 4mb private long maxContentSize = (long) 4 * 1024 * 1024 * 1024; // 4gb - private TempOutputStreamFactory streamFactory = null; - private TempOutputStreamFactory responseStreamFactory = null; + private Supplier streamFactory = null; private String preserveHeadersPattern = null; private Class[] notPublicExceptions = new Class[] {}; @@ -107,17 +105,16 @@ public class RepositoryContainer extends AbstractRuntimeContainer */ public void setup() { - File tempDirectory = TempFileProvider.getTempDir(tempDirectoryName); - this.streamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, encryptTempFiles, false); - this.responseStreamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, - encryptTempFiles, false); + streamFactory = TempOutputStream.factory( + TempFileProvider.getTempDir(tempDirectoryName), + memoryThreshold, maxContentSize, encryptTempFiles); } public void setEncryptTempFiles(Boolean encryptTempFiles) { if(encryptTempFiles != null) { - this.encryptTempFiles = encryptTempFiles.booleanValue(); + this.encryptTempFiles = encryptTempFiles; } } @@ -130,7 +127,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer { if(memoryThreshold != null) { - this.memoryThreshold = memoryThreshold.intValue(); + this.memoryThreshold = memoryThreshold; } } @@ -138,7 +135,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer { if(maxContentSize != null) { - this.maxContentSize = maxContentSize.longValue(); + this.maxContentSize = maxContentSize; } } @@ -246,8 +243,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer */ public Map getScriptParameters() { - Map params = new HashMap(); - params.putAll(super.getScriptParameters()); + Map params = new HashMap<>(super.getScriptParameters()); addRepoParameters(params); return params; } @@ -259,16 +255,11 @@ public class RepositoryContainer extends AbstractRuntimeContainer public Map getTemplateParameters() { // Ensure we have a transaction - we might be generating the status template after the main transaction failed - return fallbackTransactionHelper.doInTransaction(new RetryingTransactionCallback>() - { - public Map execute() throws Throwable - { - Map params = new HashMap(); - params.putAll(RepositoryContainer.super.getTemplateParameters()); - params.put(TemplateService.KEY_IMAGE_RESOLVER, imageResolver.getImageResolver()); - addRepoParameters(params); - return params; - } + return fallbackTransactionHelper.doInTransaction(() -> { + Map params = new HashMap<>(RepositoryContainer.super.getTemplateParameters()); + params.put(TemplateService.KEY_IMAGE_RESOLVER, imageResolver.getImageResolver()); + addRepoParameters(params); + return params; }, true); } @@ -321,7 +312,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer Throwable displayCause = ExceptionStackUtil.getCause(e, publicExceptions); if (displayCause == null && hideCause != null) { - AlfrescoRuntimeException alf = null; + final AlfrescoRuntimeException alf; if (e instanceof AlfrescoRuntimeException) { alf = (AlfrescoRuntimeException) e; @@ -342,116 +333,110 @@ public class RepositoryContainer extends AbstractRuntimeContainer } } - protected void executeScriptInternal(WebScriptRequest scriptReq, WebScriptResponse scriptRes, final Authenticator auth) + protected void executeScriptInternal(final WebScriptRequest scriptReq, final WebScriptResponse scriptRes, final Authenticator auth) throws IOException { final WebScript script = scriptReq.getServiceMatch().getWebScript(); final Description desc = script.getDescription(); final boolean debug = logger.isDebugEnabled(); - + // Escalate the webscript declared level of authentication to the container required authentication // eg. must be guest if MT is enabled unless credentials are empty - RequiredAuthentication containerRequiredAuthentication = getRequiredAuthentication(); + final RequiredAuthentication containerRequiredAuthentication = getRequiredAuthentication(); final RequiredAuthentication required = (desc.getRequiredAuthentication().compareTo(containerRequiredAuthentication) < 0 && !auth.emptyCredentials() ? containerRequiredAuthentication : desc.getRequiredAuthentication()); final boolean isGuest = scriptReq.isGuest(); - + if (required == RequiredAuthentication.none) { // TODO revisit - cleared here, in-lieu of WebClient clear //AuthenticationUtil.clearCurrentSecurityContext(); - + transactionedExecuteAs(script, scriptReq, scriptRes); + return; } - else if ((required == RequiredAuthentication.user || required == RequiredAuthentication.admin) && isGuest) + + if ((required == RequiredAuthentication.user || required == RequiredAuthentication.admin) && isGuest) { throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access."); } - else + + try { - try + AuthenticationUtil.pushAuthentication(); + + // + // Determine if user already authenticated + // + if (debug) { - AuthenticationUtil.pushAuthentication(); - - // - // Determine if user already authenticated - // - if (debug) - { - String currentUser = AuthenticationUtil.getFullyAuthenticatedUser(); - logger.debug("Current authentication: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); - logger.debug("Authentication required: " + required); - logger.debug("Guest login requested: " + isGuest); - } - - // - // Apply appropriate authentication to Web Script invocation - // - RetryingTransactionCallback authWork = new RetryingTransactionCallback() - { - public Boolean execute() throws Exception - { - if (auth == null || auth.authenticate(required, isGuest)) - { - // The user will now have been authenticated, based on HTTP Auth, Ticket etc - // Check that the user they authenticated as has appropriate access to the script - - // Check to see if they supplied HTTP Auth or Ticket as guest, on a script that needs more - if (required == RequiredAuthentication.user || required == RequiredAuthentication.admin) - { - String authenticatedUser = AuthenticationUtil.getFullyAuthenticatedUser(); - String runAsUser = AuthenticationUtil.getRunAsUser(); - - if ( (authenticatedUser == null) || - (authenticatedUser.equals(runAsUser) && authorityService.hasGuestAuthority()) || - (!authenticatedUser.equals(runAsUser) && authorityService.isGuestAuthority(authenticatedUser)) ) - { - throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access."); - } - } - - // Check to see if they're admin or system on an Admin only script - if (required == RequiredAuthentication.admin && !(authorityService.hasAdminAuthority() || AuthenticationUtil.getFullyAuthenticatedUser().equals(AuthenticationUtil.getSystemUserName()))) - { - throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires admin authentication; however, a non-admin has attempted access."); - } - - if (debug) - { - String currentUser = AuthenticationUtil.getFullyAuthenticatedUser(); - logger.debug("Authentication: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); - } - - return true; - } - return false; - } - }; - - boolean readOnly = transactionService.isReadOnly(); - boolean requiresNew = !readOnly && AlfrescoTransactionSupport.getTransactionReadState() == TxnReadState.TXN_READ_ONLY; - if (transactionService.getRetryingTransactionHelper().doInTransaction(authWork, readOnly, requiresNew)) - { - // Execute Web Script if authentication passed - // The Web Script has its own txn management with potential runAs() user - transactionedExecuteAs(script, scriptReq, scriptRes); - } - else - { - throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed for Web Script " + desc.getId()); - } + String currentUser = AuthenticationUtil.getFullyAuthenticatedUser(); + logger.debug("Current authentication: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); + logger.debug("Authentication required: " + required); + logger.debug("Guest login requested: " + isGuest); } - finally - { - // - // Reset authentication for current thread - // - AuthenticationUtil.popAuthentication(); - + + // + // Apply appropriate authentication to Web Script invocation + // + final RetryingTransactionCallback authWork = () -> { + if (auth != null && !auth.authenticate(required, isGuest)) + { + return false; + } + // The user will now have been authenticated, based on HTTP Auth, Ticket etc + // Check that the user they authenticated as has appropriate access to the script + + // Check to see if they supplied HTTP Auth or Ticket as guest, on a script that needs more + if (required == RequiredAuthentication.user || required == RequiredAuthentication.admin) + { + final String authenticatedUser = AuthenticationUtil.getFullyAuthenticatedUser(); + final String runAsUser = AuthenticationUtil.getRunAsUser(); + + if ( (authenticatedUser == null) || + (authenticatedUser.equals(runAsUser) && authorityService.hasGuestAuthority()) || + (!authenticatedUser.equals(runAsUser) && authorityService.isGuestAuthority(authenticatedUser)) ) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access."); + } + } + + // Check to see if they're admin or system on an Admin only script + if (required == RequiredAuthentication.admin && !(authorityService.hasAdminAuthority() || AuthenticationUtil.getFullyAuthenticatedUser().equals(AuthenticationUtil.getSystemUserName()))) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires admin authentication; however, a non-admin has attempted access."); + } + if (debug) { String currentUser = AuthenticationUtil.getFullyAuthenticatedUser(); - logger.debug("Authentication reset: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); + logger.debug("Authentication: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); } + + return true; + }; + + final boolean readOnly = transactionService.isReadOnly(); + final boolean requiresNew = !readOnly && AlfrescoTransactionSupport.getTransactionReadState() == TxnReadState.TXN_READ_ONLY; + if (!transactionService.getRetryingTransactionHelper().doInTransaction(authWork, readOnly, requiresNew)) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed for Web Script " + desc.getId()); + } + + // Execute Web Script if authentication passed + // The Web Script has its own txn management with potential runAs() user + transactionedExecuteAs(script, scriptReq, scriptRes); + } + finally + { + // + // Reset authentication for current thread + // + AuthenticationUtil.popAuthentication(); + + if (debug) + { + String currentUser = AuthenticationUtil.getFullyAuthenticatedUser(); + logger.debug("Authentication reset: " + (currentUser == null ? "unauthenticated" : "authenticated as " + currentUser)); } } } @@ -467,191 +452,160 @@ public class RepositoryContainer extends AbstractRuntimeContainer protected void transactionedExecute(final WebScript script, final WebScriptRequest scriptReq, final WebScriptResponse scriptRes) throws IOException { + final Description description = script.getDescription(); + try { - final Description description = script.getDescription(); if (description.getRequiredTransaction() == RequiredTransaction.none) { script.execute(scriptReq, scriptRes); + return; } - else + } + catch (IOException e) + { + handleIOException(e); + } + + final RequiredTransactionParameters trxParams = description.getRequiredTransactionParameters(); + + try (final BufferedRequest bufferedReq = newBufferedRequest(trxParams, scriptReq, streamFactory); + final BufferedResponse bufferedRes = newBufferedResponse(trxParams, scriptRes, streamFactory)) + { + boolean readonly = description.getRequiredTransactionParameters().getCapability() == TransactionCapability.readonly; + boolean requiresNew = description.getRequiredTransaction() == RequiredTransaction.requiresnew; + + // log a warning if we detect a GET webscript being run in a readwrite transaction, GET calls should + // NOT have any side effects so this scenario as a warning sign something maybe amiss, see ALF-10179. + if (logger.isDebugEnabled() && !readonly && "GET".equalsIgnoreCase( + description.getMethod())) { - final BufferedRequest bufferedReq; - final BufferedResponse bufferedRes; - RequiredTransactionParameters trxParams = description.getRequiredTransactionParameters(); - if (trxParams.getCapability() == TransactionCapability.readwrite) - { - if (trxParams.getBufferSize() > 0) - { - if (logger.isDebugEnabled()) - logger.debug("Creating Transactional Response for ReadWrite transaction; buffersize=" + trxParams.getBufferSize()); + logger.debug("Webscript with URL '" + scriptReq.getURL() + + "' is a GET request but it's descriptor has declared a readwrite transaction is required"); + } - // create buffered request and response that allow transaction retrying - bufferedReq = new BufferedRequest(scriptReq, streamFactory); - bufferedRes = new BufferedResponse(scriptRes, trxParams.getBufferSize(), responseStreamFactory); - } - else + try + { + final RetryingTransactionHelper transactionHelper = transactionService.getRetryingTransactionHelper(); + if (script instanceof LoginPost) + { + //login script requires read-write transaction because of authorization interceptor + transactionHelper.setForceWritable(true); + } + transactionHelper.doInTransaction(() -> { + try { if (logger.isDebugEnabled()) - logger.debug("Transactional Response bypassed for ReadWrite - buffersize=0"); - bufferedReq = null; - bufferedRes = null; - } - } - else - { - bufferedReq = null; - bufferedRes = null; - } - - // encapsulate script within transaction - RetryingTransactionCallback work = new RetryingTransactionCallback() - { - public Object execute() throws Exception - { - try + logger.debug("Begin retry transaction block: " + description.getRequiredTransaction() + "," + + description.getRequiredTransactionParameters().getCapability()); + + if (bufferedReq == null || bufferedRes == null) { - if (logger.isDebugEnabled()) - logger.debug("Begin retry transaction block: " + description.getRequiredTransaction() + "," - + description.getRequiredTransactionParameters().getCapability()); - - if (bufferedRes == null) - { - script.execute(scriptReq, scriptRes); - } - else - { - // Reset the request and response in case of a transaction retry - bufferedReq.reset(); - // REPO-4388 don't reset specified headers - bufferedRes.reset(preserveHeadersPattern); - script.execute(bufferedReq, bufferedRes); - } + script.execute(scriptReq, scriptRes); } - catch(Exception e) + else { - if (logger.isDebugEnabled()) - { - logger.debug("Transaction exception: " + description.getRequiredTransaction() + ": " + e.getMessage()); - // Note: user transaction shouldn't be null, but just in case inside this exception handler - UserTransaction userTrx = RetryingTransactionHelper.getActiveUserTransaction(); - if (userTrx != null) - { - logger.debug("Transaction status: " + userTrx.getStatus()); - } - } - + // Reset the request and response in case of a transaction retry + bufferedReq.reset(); + // REPO-4388 don't reset specified headers + bufferedRes.reset(preserveHeadersPattern); + script.execute(bufferedReq, bufferedRes); + } + } + catch (Exception e) + { + if (logger.isDebugEnabled()) + { + logger.debug("Transaction exception: " + description.getRequiredTransaction() + ": " + e.getMessage()); + // Note: user transaction shouldn't be null, but just in case inside this exception handler UserTransaction userTrx = RetryingTransactionHelper.getActiveUserTransaction(); if (userTrx != null) { - if (userTrx.getStatus() != Status.STATUS_MARKED_ROLLBACK) + logger.debug("Transaction status: " + userTrx.getStatus()); + } + } + + final UserTransaction userTrx = RetryingTransactionHelper.getActiveUserTransaction(); + if (userTrx != null) + { + if (userTrx.getStatus() != Status.STATUS_MARKED_ROLLBACK) + { + if (logger.isDebugEnabled()) + logger.debug("Marking web script transaction for rollback"); + try + { + userTrx.setRollbackOnly(); + } + catch (Throwable re) { if (logger.isDebugEnabled()) - logger.debug("Marking web script transaction for rollback"); - try - { - userTrx.setRollbackOnly(); - } - catch(Throwable re) - { - if (logger.isDebugEnabled()) - logger.debug("Caught and ignoring exception during marking for rollback: " + re.getMessage()); - } + logger.debug("Caught and ignoring exception during marking for rollback: " + re.getMessage()); } } - - // re-throw original exception for retry - throw e; } - finally - { - if (logger.isDebugEnabled()) - logger.debug("End retry transaction block: " + description.getRequiredTransaction() + "," - + description.getRequiredTransactionParameters().getCapability()); - } - - return null; - } - }; - - boolean readonly = description.getRequiredTransactionParameters().getCapability() == TransactionCapability.readonly; - boolean requiresNew = description.getRequiredTransaction() == RequiredTransaction.requiresnew; - - // log a warning if we detect a GET webscript being run in a readwrite transaction, GET calls should - // NOT have any side effects so this scenario as a warning sign something maybe amiss, see ALF-10179. - if (logger.isDebugEnabled() && !readonly && "GET".equalsIgnoreCase(description.getMethod())) - { - logger.debug("Webscript with URL '" + scriptReq.getURL() + - "' is a GET request but it's descriptor has declared a readwrite transaction is required"); - } - - try - { - RetryingTransactionHelper transactionHelper = transactionService.getRetryingTransactionHelper(); - if(script instanceof LoginPost) - { - //login script requires read-write transaction because of authorization intercepter - transactionHelper.setForceWritable(true); - } - transactionHelper.doInTransaction(work, readonly, requiresNew); - } - catch (TooBusyException e) - { - // Map TooBusyException to a 503 status code - throw new WebScriptException(HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage(), e); - } - finally - { - // Get rid of any temporary files - if (bufferedReq != null) - { - bufferedReq.close(); - } - } - // Ensure a response is always flushed after successful execution - if (bufferedRes != null) - { - bufferedRes.writeResponse(); - } - + // re-throw original exception for retry + throw e; + } + finally + { + if (logger.isDebugEnabled()) + logger.debug("End retry transaction block: " + description.getRequiredTransaction() + "," + + description.getRequiredTransactionParameters().getCapability()); + } + + return null; + }, readonly, requiresNew); } - } - catch (IOException ioe) - { - Throwable socketException = ExceptionStackUtil.getCause(ioe, SocketException.class); - Class clientAbortException = null; - try + catch (TooBusyException e) { - clientAbortException = Class.forName("org.apache.catalina.connector.ClientAbortException"); + // Map TooBusyException to a 503 status code + throw new WebScriptException(HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage(), e); } - catch (ClassNotFoundException e) + + // Ensure a response is always flushed after successful execution + if (bufferedRes != null) { - // do nothing - } - // Note: if you need to look for more exceptions in the stack, then create a static array and pass it in - if ((socketException != null && socketException.getMessage().contains("Broken pipe")) || (clientAbortException != null && ExceptionStackUtil.getCause(ioe, clientAbortException) != null)) - { - if (logger.isDebugEnabled()) - { - logger.warn("Client has cut off communication", ioe); - } - else - { - logger.info("Client has cut off communication"); - } - } - else - { - throw ioe; + bufferedRes.writeResponse(); } } } - + + private static void handleIOException(final IOException ioe) throws IOException + { + Throwable socketException = ExceptionStackUtil.getCause(ioe, SocketException.class); + Class clientAbortException = null; + try + { + clientAbortException = Class.forName("org.apache.catalina.connector.ClientAbortException"); + } + catch (ClassNotFoundException e) + { + // do nothing + } + // Note: if you need to look for more exceptions in the stack, then create a static array and pass it in + if ((socketException != null && socketException.getMessage().contains("Broken pipe")) || + (clientAbortException != null && ExceptionStackUtil.getCause(ioe, clientAbortException) != null)) + { + if (logger.isDebugEnabled()) + { + logger.warn("Client has cut off communication", ioe); + } + else + { + logger.info("Client has cut off communication"); + } + } + else + { + throw ioe; + } + } + /** * Execute script within required level of transaction as required effective user. - * - * @param script WebScript + * + * @param script WebScript * @param scriptReq WebScriptRequest * @param scriptRes WebScriptResponse * @throws IOException @@ -659,22 +613,17 @@ public class RepositoryContainer extends AbstractRuntimeContainer private void transactionedExecuteAs(final WebScript script, final WebScriptRequest scriptReq, final WebScriptResponse scriptRes) throws IOException { - String runAs = script.getDescription().getRunAs(); + final String runAs = script.getDescription().getRunAs(); if (runAs == null) { transactionedExecute(script, scriptReq, scriptRes); } else { - RunAsWork work = new RunAsWork() - { - public Object doWork() throws Exception - { - transactionedExecute(script, scriptReq, scriptRes); - return null; - } - }; - AuthenticationUtil.runAs(work, runAs); + AuthenticationUtil.runAs(() -> { + transactionedExecute(script, scriptReq, scriptRes); + return null; + }, runAs); } } @@ -688,17 +637,12 @@ public class RepositoryContainer extends AbstractRuntimeContainer { ContextRefreshedEvent refreshEvent = (ContextRefreshedEvent)event; ApplicationContext refreshContext = refreshEvent.getApplicationContext(); - if (refreshContext != null && refreshContext.equals(applicationContext)) + if (refreshContext.equals(applicationContext)) { - RunAsWork work = new RunAsWork() - { - public Object doWork() throws Exception - { - reset(); - return null; - } - }; - AuthenticationUtil.runAs(work, AuthenticationUtil.getSystemUserName()); + AuthenticationUtil.runAs(() -> { + reset(); + return null; + }, AuthenticationUtil.getSystemUserName()); } } } @@ -739,18 +683,54 @@ public class RepositoryContainer extends AbstractRuntimeContainer @Override public void reset() { - transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback() - { - public Object execute() throws Exception - { - internalReset(); - return null; - } + transactionService.getRetryingTransactionHelper().doInTransaction(() -> { + internalReset(); + return null; }, true, false); } - + private void internalReset() { super.reset(); } + + private static BufferedRequest newBufferedRequest( + final RequiredTransactionParameters trxParams, + final WebScriptRequest scriptReq, + final Supplier streamFactory) + { + if (trxParams.getCapability() != TransactionCapability.readwrite) + { + return null; + } + if (trxParams.getBufferSize() <= 0) + { + return null; + } + + // create buffered request that allow transaction retrying + return new BufferedRequest(scriptReq, streamFactory); + } + + private static BufferedResponse newBufferedResponse( + final RequiredTransactionParameters trxParams, + final WebScriptResponse scriptRes, + final Supplier streamFactory) + { + if (trxParams.getCapability() != TransactionCapability.readwrite) + { + return null; + } + if (trxParams.getBufferSize() <= 0) + { + if (logger.isDebugEnabled()) + logger.debug("Transactional Response bypassed for ReadWrite - buffersize=0"); + return null; + } + if (logger.isDebugEnabled()) + logger.debug("Creating Transactional Response for ReadWrite transaction; buffersize=" + trxParams.getBufferSize()); + + // create buffered response that allow transaction retrying + return new BufferedResponse(scriptRes, trxParams.getBufferSize(), streamFactory); + } } diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStream.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStream.java index e9f6df704e..8ebef82486 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStream.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStream.java @@ -36,6 +36,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.Key; +import java.util.function.Supplier; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; @@ -88,13 +89,11 @@ public class TempOutputStream extends OutputStream private final File tempDir; private final int memoryThreshold; private final long maxContentSize; - private boolean encrypt; - private boolean deleteTempFileOnClose; + private final boolean encrypt; private long length = 0; private OutputStream outputStream; private File tempFile; - private TempByteArrayOutputStream tempStream; private Key symKey; private byte[] iv; @@ -112,58 +111,49 @@ public class TempOutputStream extends OutputStream * the max content size in B * @param encrypt * true if temp files should be encrypted - * @param deleteTempFileOnClose - * true if temp files should be deleted on output stream close - * (useful if we need to cache the content for further reads). If - * this is false then we need to make sure we call - * {@link TempOutputStream}.destroy to clean up properly. */ - public TempOutputStream(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt, boolean deleteTempFileOnClose) + public TempOutputStream(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt) { this.tempDir = tempDir; this.memoryThreshold = (memoryThreshold < 0) ? DEFAULT_MEMORY_THRESHOLD : memoryThreshold; this.maxContentSize = maxContentSize; this.encrypt = encrypt; - this.deleteTempFileOnClose = deleteTempFileOnClose; - this.tempStream = new TempByteArrayOutputStream(); - this.outputStream = this.tempStream; + this.outputStream = new ByteArrayOutputStream(); } /** * Returns the data as an InputStream */ - public InputStream getInputStream() throws IOException + public InputStream toNewInputStream() throws IOException { - if (tempFile != null) + closeOutputStream(); + + if (tempFile == null) + { + return new ByteArrayInputStream(((ByteArrayOutputStream) outputStream).toByteArray()); + } + if (!encrypt) { - if (encrypt) - { - final Cipher cipher; - try - { - cipher = Cipher.getInstance(TRANSFORMATION); - cipher.init(Cipher.DECRYPT_MODE, symKey, new IvParameterSpec(iv)); - } - catch (Exception e) - { - destroy(); - - if (logger.isErrorEnabled()) - { - logger.error("Cannot initialize decryption cipher", e); - } - - throw new IOException("Cannot initialize decryption cipher", e); - } - - return new BufferedInputStream(new CipherInputStream(new FileInputStream(tempFile), cipher)); - } return new BufferedInputStream(new FileInputStream(tempFile)); } - else + try { - return new ByteArrayInputStream(tempStream.getBuffer(), 0, tempStream.getCount()); + final Cipher cipher = Cipher.getInstance(TRANSFORMATION); + cipher.init(Cipher.DECRYPT_MODE, symKey, new IvParameterSpec(iv)); + + return new BufferedInputStream(new CipherInputStream(new FileInputStream(tempFile), cipher)); + } + catch (Exception e) + { + destroy(); + + if (logger.isErrorEnabled()) + { + logger.error("Cannot initialize decryption cipher", e); + } + + throw new IOException("Cannot initialize decryption cipher", e); } } @@ -190,7 +180,7 @@ public class TempOutputStream extends OutputStream @Override public void close() throws IOException { - close(deleteTempFileOnClose); + closeOutputStream(); } /** @@ -215,7 +205,9 @@ public class TempOutputStream extends OutputStream */ public void destroy() throws IOException { - close(true); + closeOutputStream(); + + deleteTempFile(); } public long getLength() @@ -282,102 +274,95 @@ public class TempOutputStream extends OutputStream } } - private void close(boolean deleteTempFileOnClose) + private BufferedOutputStream createFileOutputStream(final File file) throws IOException { - closeOutputStream(); - - if (deleteTempFileOnClose) + if (!encrypt) { - deleteTempFile(); + return new BufferedOutputStream(new FileOutputStream(file)); } - } - - private BufferedOutputStream createOutputStream(File file) throws IOException - { - BufferedOutputStream fileOutputStream; - if (encrypt) + try { - try + // Generate a symmetric key + final KeyGenerator keyGen = KeyGenerator.getInstance(ALGORITHM); + keyGen.init(KEY_SIZE); + symKey = keyGen.generateKey(); + + Cipher cipher = Cipher.getInstance(TRANSFORMATION); + cipher.init(Cipher.ENCRYPT_MODE, symKey); + + iv = cipher.getIV(); + + return new BufferedOutputStream(new CipherOutputStream(new FileOutputStream(file), cipher)); + } + catch (Exception e) + { + if (logger.isErrorEnabled()) { - // Generate a symmetric key - final KeyGenerator keyGen = KeyGenerator.getInstance(ALGORITHM); - keyGen.init(KEY_SIZE); - symKey = keyGen.generateKey(); - - Cipher cipher = Cipher.getInstance(TRANSFORMATION); - cipher.init(Cipher.ENCRYPT_MODE, symKey); - - iv = cipher.getIV(); - - fileOutputStream = new BufferedOutputStream(new CipherOutputStream(new FileOutputStream(file), cipher)); + logger.error("Cannot initialize encryption cipher", e); } - catch (Exception e) - { - if (logger.isErrorEnabled()) - { - logger.error("Cannot initialize encryption cipher", e); - } - throw new IOException("Cannot initialize encryption cipher", e); - } + throw new IOException("Cannot initialize encryption cipher", e); } - else - { - fileOutputStream = new BufferedOutputStream(new FileOutputStream(file)); - } - - return fileOutputStream; } private void update(int len) throws IOException { - if (maxContentSize > -1 && length + len > maxContentSize) + if (surpassesMaxContentSize(len)) { destroy(); throw new ContentLimitViolationException("Content size violation, limit = " + maxContentSize); } - if (tempFile == null && (tempStream.getCount() + len) > memoryThreshold) + if (surpassesThreshold(len)) { - File file = TempFileProvider.createTempFile(TEMP_FILE_PREFIX, ".bin", tempDir); + tempFile = TempFileProvider.createTempFile(TEMP_FILE_PREFIX, ".bin", tempDir); - BufferedOutputStream fileOutputStream = createOutputStream(file); - fileOutputStream.write(this.tempStream.getBuffer(), 0, this.tempStream.getCount()); + final BufferedOutputStream fileOutputStream = createFileOutputStream(tempFile); + fileOutputStream.write(((ByteArrayOutputStream) outputStream).toByteArray()); fileOutputStream.flush(); try { - tempStream.close(); + outputStream.close(); } - catch (IOException e) + catch (IOException ignore) { // Ignore exception } - tempStream = null; - tempFile = file; outputStream = fileOutputStream; } length += len; } - private static class TempByteArrayOutputStream extends ByteArrayOutputStream + private boolean surpassesMaxContentSize(final int len) { - /** - * @return The internal buffer where data is stored - */ - public byte[] getBuffer() - { - return buf; - } + return maxContentSize >= 0 && length + len > maxContentSize; + } - /** - * @return The number of valid bytes in the buffer. - */ - public int getCount() - { - return count; - } + private boolean surpassesThreshold(final int len) + { + return tempFile == null && length + len > memoryThreshold; + } + + /** + * Creates a {@link TempOutputStream} factory/supplier. + * + * @param tempDir + * the temporary directory, i.e. isDir == true, that + * will be used as * parent directory for creating temp file backed + * streams + * @param memoryThreshold + * the memory threshold in B + * @param maxContentSize + * the max content size in B + * @param encrypt + * true if temp files should be encrypted + */ + public static Supplier factory(final File tempDir, final int memoryThreshold, + final long maxContentSize, final boolean encrypt) + { + return () -> new TempOutputStream(tempDir, memoryThreshold, maxContentSize, encrypt); } } diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStreamFactory.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStreamFactory.java deleted file mode 100644 index 2300bb8b03..0000000000 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/TempOutputStreamFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * #%L - * Alfresco Remote API - * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ -package org.alfresco.repo.web.scripts; - -import java.io.File; - -/** - * Factory for {@link TempOutputStream} - */ -public class TempOutputStreamFactory -{ - /** - * A temporary directory, i.e. isDir == true, that will be used as - * parent directory for creating temp file backed streams. - */ - private final File tempDir; - private int memoryThreshold; - private long maxContentSize; - private boolean encrypt; - private boolean deleteTempFileOnClose; - - /** - * Creates a {@link TempOutputStream} factory. - * - * @param tempDir - * the temporary directory, i.e. isDir == true, that - * will be used as * parent directory for creating temp file backed - * streams - * @param memoryThreshold - * the memory threshold in B - * @param maxContentSize - * the max content size in B - * @param encrypt - * true if temp files should be encrypted - * @param deleteTempFileOnClose - * true if temp files should be deleted on output stream close - * (useful if we need to cache the content for further reads). If - * this is false then we need to make sure we call - * {@link TempOutputStream}.destroy to clean up properly. - */ - public TempOutputStreamFactory(File tempDir, int memoryThreshold, long maxContentSize, boolean encrypt, boolean deleteTempFileOnClose) - { - this.tempDir = tempDir; - this.memoryThreshold = memoryThreshold; - this.maxContentSize = maxContentSize; - this.encrypt = encrypt; - this.deleteTempFileOnClose = deleteTempFileOnClose; - } - - /** - * Creates a new {@link TempOutputStream} object - */ - public TempOutputStream createOutputStream() - { - return new TempOutputStream(tempDir, memoryThreshold, maxContentSize, encrypt, deleteTempFileOnClose); - } - - public File getTempDir() - { - return tempDir; - } - - public int getMemoryThreshold() - { - return memoryThreshold; - } - - public long getMaxContentSize() - { - return maxContentSize; - } - - public boolean isEncrypt() - { - return encrypt; - } - - public boolean isDeleteTempFileOnClose() - { - return deleteTempFileOnClose; - } -} diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/model/filefolder/FileFolderLoaderPost.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/model/filefolder/FileFolderLoaderPost.java index 188353b4c2..afd1e1278e 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/model/filefolder/FileFolderLoaderPost.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/model/filefolder/FileFolderLoaderPost.java @@ -23,149 +23,144 @@ * along with Alfresco. If not, see . * #L% */ -package org.alfresco.repo.web.scripts.model.filefolder; - -import java.io.IOException; -import java.io.OutputStream; - -import org.alfresco.repo.model.filefolder.FileFolderLoader; -import org.alfresco.service.cmr.model.FileNotFoundException; -import org.json.JSONException; -import org.json.JSONObject; -import org.json.JSONTokener; -import org.springframework.beans.BeansException; -import org.springframework.context.ApplicationContext; -import org.springframework.context.ApplicationContextAware; -import org.springframework.extensions.webscripts.AbstractWebScript; -import org.springframework.extensions.webscripts.Status; -import org.springframework.extensions.webscripts.WebScriptException; -import org.springframework.extensions.webscripts.WebScriptRequest; -import org.springframework.extensions.webscripts.WebScriptResponse; - -/** - * Link to {@link FileFolderLoader} - */ -public class FileFolderLoaderPost extends AbstractWebScript implements ApplicationContextAware -{ - public static final String KEY_FOLDER_PATH = "folderPath"; - public static final String KEY_FILE_COUNT = "fileCount"; - public static final String KEY_FILES_PER_TXN = "filesPerTxn"; - public static final String KEY_MIN_FILE_SIZE = "minFileSize"; - public static final String KEY_MAX_FILE_SIZE = "maxFileSize"; - public static final String KEY_MAX_UNIQUE_DOCUMENTS = "maxUniqueDocuments"; - public static final String KEY_FORCE_BINARY_STORAGE = "forceBinaryStorage"; - public static final String KEY_DESCRIPTION_COUNT = "descriptionCount"; - public static final String KEY_DESCRIPTION_SIZE = "descriptionSize"; - public static final String KEY_COUNT = "count"; - - public static final int DEFAULT_FILE_COUNT = 100; - public static final int DEFAULT_FILES_PER_TXN = 100; - public static final long DEFAULT_MIN_FILE_SIZE = 80*1024L; - public static final long DEFAULT_MAX_FILE_SIZE = 120*1024L; - public static final long DEFAULT_MAX_UNIQUE_DOCUMENTS = Long.MAX_VALUE; - public static final int DEFAULT_DESCRIPTION_COUNT = 1; - public static final long DEFAULT_DESCRIPTION_SIZE = 128L; - public static final boolean DEFAULT_FORCE_BINARY_STORAGE = false; - - private ApplicationContext applicationContext; - - @Override - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException - { - this.applicationContext = applicationContext; - } - - public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException - { - FileFolderLoader loader = (FileFolderLoader) applicationContext.getBean("fileFolderLoader"); - - int count = 0; - String folderPath = ""; - try - { - JSONObject json = new JSONObject(new JSONTokener(req.getContent().getContent())); - folderPath = json.getString(KEY_FOLDER_PATH); - if (folderPath == null) - { - throw new WebScriptException(Status.STATUS_BAD_REQUEST, KEY_FOLDER_PATH + " not supplied."); - } - int fileCount = 100; - if (json.has(KEY_FILE_COUNT)) - { - fileCount = json.getInt(KEY_FILE_COUNT); - } - int filesPerTxn = DEFAULT_FILES_PER_TXN; - if (json.has(KEY_FILES_PER_TXN)) - { - filesPerTxn = json.getInt(KEY_FILES_PER_TXN); - } - long minFileSize = DEFAULT_MIN_FILE_SIZE; - if (json.has(KEY_MIN_FILE_SIZE)) - { - minFileSize = json.getInt(KEY_MIN_FILE_SIZE); - } - long maxFileSize = DEFAULT_MAX_FILE_SIZE; - if (json.has(KEY_MAX_FILE_SIZE)) - { - maxFileSize = json.getInt(KEY_MAX_FILE_SIZE); - } - long maxUniqueDocuments = DEFAULT_MAX_UNIQUE_DOCUMENTS; - if (json.has(KEY_MAX_UNIQUE_DOCUMENTS)) - { - maxUniqueDocuments = json.getInt(KEY_MAX_UNIQUE_DOCUMENTS); - } - boolean forceBinaryStorage = DEFAULT_FORCE_BINARY_STORAGE; - if (json.has(KEY_FORCE_BINARY_STORAGE)) - { - forceBinaryStorage = json.getBoolean(KEY_FORCE_BINARY_STORAGE); - } - int descriptionCount = DEFAULT_DESCRIPTION_COUNT; - if (json.has(KEY_DESCRIPTION_COUNT)) - { - descriptionCount = json.getInt(KEY_DESCRIPTION_COUNT); - } - long descriptionSize = DEFAULT_DESCRIPTION_SIZE; - if (json.has(KEY_DESCRIPTION_SIZE)) - { - descriptionSize = json.getLong(KEY_DESCRIPTION_SIZE); - } - - // Perform the load - count = loader.createFiles( - folderPath, - fileCount, filesPerTxn, - minFileSize, maxFileSize, - maxUniqueDocuments, - forceBinaryStorage, - descriptionCount, descriptionSize); - } - catch (FileNotFoundException e) - { - throw new WebScriptException(Status.STATUS_NOT_FOUND, "Folder not found: ", folderPath); - } - catch (IOException iox) - { - throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not read content from req.", iox); - } - catch (JSONException je) - { - throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not parse JSON from req.", je); - } - // Write the response - OutputStream os = res.getOutputStream(); - try - { - JSONObject json = new JSONObject(); - json.put(KEY_COUNT, count); - os.write(json.toString().getBytes("UTF-8")); - } - catch (JSONException e) - { - throw new WebScriptException(Status.STATUS_INTERNAL_SERVER_ERROR, "Failed to write JSON", e); - } - finally - { - os.close(); - } - } -} +package org.alfresco.repo.web.scripts.model.filefolder; + +import java.io.IOException; +import java.io.OutputStream; + +import org.alfresco.repo.model.filefolder.FileFolderLoader; +import org.alfresco.service.cmr.model.FileNotFoundException; +import org.json.JSONException; +import org.json.JSONObject; +import org.json.JSONTokener; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.extensions.webscripts.AbstractWebScript; +import org.springframework.extensions.webscripts.Status; +import org.springframework.extensions.webscripts.WebScriptException; +import org.springframework.extensions.webscripts.WebScriptRequest; +import org.springframework.extensions.webscripts.WebScriptResponse; + +/** + * Link to {@link FileFolderLoader} + */ +public class FileFolderLoaderPost extends AbstractWebScript implements ApplicationContextAware +{ + public static final String KEY_FOLDER_PATH = "folderPath"; + public static final String KEY_FILE_COUNT = "fileCount"; + public static final String KEY_FILES_PER_TXN = "filesPerTxn"; + public static final String KEY_MIN_FILE_SIZE = "minFileSize"; + public static final String KEY_MAX_FILE_SIZE = "maxFileSize"; + public static final String KEY_MAX_UNIQUE_DOCUMENTS = "maxUniqueDocuments"; + public static final String KEY_FORCE_BINARY_STORAGE = "forceBinaryStorage"; + public static final String KEY_DESCRIPTION_COUNT = "descriptionCount"; + public static final String KEY_DESCRIPTION_SIZE = "descriptionSize"; + public static final String KEY_COUNT = "count"; + + public static final int DEFAULT_FILE_COUNT = 100; + public static final int DEFAULT_FILES_PER_TXN = 100; + public static final long DEFAULT_MIN_FILE_SIZE = 80*1024L; + public static final long DEFAULT_MAX_FILE_SIZE = 120*1024L; + public static final long DEFAULT_MAX_UNIQUE_DOCUMENTS = Long.MAX_VALUE; + public static final int DEFAULT_DESCRIPTION_COUNT = 1; + public static final long DEFAULT_DESCRIPTION_SIZE = 128L; + public static final boolean DEFAULT_FORCE_BINARY_STORAGE = false; + + private ApplicationContext applicationContext; + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + { + this.applicationContext = applicationContext; + } + + public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException + { + FileFolderLoader loader = (FileFolderLoader) applicationContext.getBean("fileFolderLoader"); + + int count = 0; + String folderPath = ""; + try + { + JSONObject json = new JSONObject(new JSONTokener(req.getContent().getContent())); + folderPath = json.getString(KEY_FOLDER_PATH); + if (folderPath == null) + { + throw new WebScriptException(Status.STATUS_BAD_REQUEST, KEY_FOLDER_PATH + " not supplied."); + } + int fileCount = 100; + if (json.has(KEY_FILE_COUNT)) + { + fileCount = json.getInt(KEY_FILE_COUNT); + } + int filesPerTxn = DEFAULT_FILES_PER_TXN; + if (json.has(KEY_FILES_PER_TXN)) + { + filesPerTxn = json.getInt(KEY_FILES_PER_TXN); + } + long minFileSize = DEFAULT_MIN_FILE_SIZE; + if (json.has(KEY_MIN_FILE_SIZE)) + { + minFileSize = json.getInt(KEY_MIN_FILE_SIZE); + } + long maxFileSize = DEFAULT_MAX_FILE_SIZE; + if (json.has(KEY_MAX_FILE_SIZE)) + { + maxFileSize = json.getInt(KEY_MAX_FILE_SIZE); + } + long maxUniqueDocuments = DEFAULT_MAX_UNIQUE_DOCUMENTS; + if (json.has(KEY_MAX_UNIQUE_DOCUMENTS)) + { + maxUniqueDocuments = json.getInt(KEY_MAX_UNIQUE_DOCUMENTS); + } + boolean forceBinaryStorage = DEFAULT_FORCE_BINARY_STORAGE; + if (json.has(KEY_FORCE_BINARY_STORAGE)) + { + forceBinaryStorage = json.getBoolean(KEY_FORCE_BINARY_STORAGE); + } + int descriptionCount = DEFAULT_DESCRIPTION_COUNT; + if (json.has(KEY_DESCRIPTION_COUNT)) + { + descriptionCount = json.getInt(KEY_DESCRIPTION_COUNT); + } + long descriptionSize = DEFAULT_DESCRIPTION_SIZE; + if (json.has(KEY_DESCRIPTION_SIZE)) + { + descriptionSize = json.getLong(KEY_DESCRIPTION_SIZE); + } + + // Perform the load + count = loader.createFiles( + folderPath, + fileCount, filesPerTxn, + minFileSize, maxFileSize, + maxUniqueDocuments, + forceBinaryStorage, + descriptionCount, descriptionSize); + } + catch (FileNotFoundException e) + { + throw new WebScriptException(Status.STATUS_NOT_FOUND, "Folder not found: ", folderPath); + } + catch (IOException iox) + { + throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not read content from req.", iox); + } + catch (JSONException je) + { + throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not parse JSON from req.", je); + } + // Write the response + try (OutputStream os = res.getOutputStream()) + { + JSONObject json = new JSONObject(); + json.put(KEY_COUNT, count); + os.write(json.toString().getBytes("UTF-8")); + } + catch (JSONException e) + { + throw new WebScriptException(Status.STATUS_INTERNAL_SERVER_ERROR, "Failed to write JSON", e); + } + } +} diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/transfer/PostSnapshotCommandProcessor.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/transfer/PostSnapshotCommandProcessor.java index afe7a29b94..4b756df5d3 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/transfer/PostSnapshotCommandProcessor.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/transfer/PostSnapshotCommandProcessor.java @@ -125,16 +125,15 @@ public class PostSnapshotCommandProcessor implements CommandProcessor logger.debug("success"); resp.setStatus(Status.STATUS_OK); - - OutputStream out = resp.getOutputStream(); - resp.setContentType("text/xml"); - resp.setContentEncoding("utf-8"); - - receiver.generateRequsite(transferId, out); - - out.close(); - - } + + try (OutputStream out = resp.getOutputStream()) + { + resp.setContentType("text/xml"); + resp.setContentEncoding("utf-8"); + + receiver.generateRequsite(transferId, out); + } + } catch (Exception ex) { logger.debug("exception caught", ex); diff --git a/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ApiWebScript.java b/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ApiWebScript.java index c848eb05e7..606cf3cf07 100644 --- a/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ApiWebScript.java +++ b/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ApiWebScript.java @@ -28,10 +28,11 @@ package org.alfresco.rest.framework.webscripts; import java.io.File; import java.io.IOException; import java.util.Map; +import java.util.function.Supplier; import org.alfresco.repo.web.scripts.BufferedRequest; import org.alfresco.repo.web.scripts.BufferedResponse; -import org.alfresco.repo.web.scripts.TempOutputStreamFactory; +import org.alfresco.repo.web.scripts.TempOutputStream; import org.alfresco.rest.framework.Api; import org.alfresco.rest.framework.tools.ApiAssistant; import org.alfresco.service.transaction.TransactionService; @@ -56,7 +57,7 @@ public abstract class ApiWebScript extends AbstractWebScript protected String tempDirectoryName = null; protected int memoryThreshold = 4 * 1024 * 1024; // 4mb protected long maxContentSize = (long) 4 * 1024 * 1024 * 1024; // 4gb - protected TempOutputStreamFactory streamFactory = null; + protected Supplier streamFactory = null; protected TransactionService transactionService; public void setTransactionService(TransactionService transactionService) @@ -88,7 +89,7 @@ public abstract class ApiWebScript extends AbstractWebScript this.maxContentSize = maxContentSize; } - public void setStreamFactory(TempOutputStreamFactory streamFactory) + public void setStreamFactory(Supplier streamFactory) { this.streamFactory = streamFactory; } @@ -96,50 +97,38 @@ public abstract class ApiWebScript extends AbstractWebScript public void init() { File tempDirectory = TempFileProvider.getTempDir(tempDirectoryName); - this.streamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, false, false); + streamFactory = TempOutputStream.factory(tempDirectory, memoryThreshold, maxContentSize, false); } @Override public void execute(final WebScriptRequest req, final WebScriptResponse res) throws IOException { - Map templateVars = req.getServiceMatch().getTemplateVars(); - Api api = assistant.determineApi(templateVars); - - final BufferedRequest bufferedReq = getRequest(req); - final BufferedResponse bufferedRes = getResponse(res); + final Map templateVars = req.getServiceMatch().getTemplateVars(); + final Api api = ApiAssistant.determineApi(templateVars); - try - { - execute(api, bufferedReq, bufferedRes); - } - finally - { - // Get rid of any temporary files - if (bufferedReq != null) - { - bufferedReq.close(); - } - } - - // Ensure a response is always flushed after successful execution - if (bufferedRes != null) + try (final BufferedRequest bufferedReq = getRequest(req); + final BufferedResponse bufferedRes = getResponse(res)) { - bufferedRes.writeResponse(); + execute(api, bufferedReq, bufferedRes); + + // Ensure a response is always flushed after successful execution + if (bufferedRes != null) + { + bufferedRes.writeResponse(); + } } } protected BufferedRequest getRequest(final WebScriptRequest req) { // create buffered request and response that allow transaction retrying - final BufferedRequest bufferedReq = new BufferedRequest(req, streamFactory); - return bufferedReq; + return new BufferedRequest(req, streamFactory); } protected BufferedResponse getResponse(final WebScriptResponse resp) { // create buffered request and response that allow transaction retrying - final BufferedResponse bufferedRes = new BufferedResponse(resp, memoryThreshold, streamFactory); - return bufferedRes; + return new BufferedResponse(resp, memoryThreshold, streamFactory); } public abstract void execute(final Api api, WebScriptRequest req, WebScriptResponse res) throws IOException; diff --git a/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java b/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java index ee2a7dbe2a..866d7cf704 100644 --- a/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java +++ b/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java @@ -23,110 +23,110 @@ * along with Alfresco. If not, see . * #L% */ -package org.alfresco.web.scripts; - -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import org.alfresco.repo.jscript.ScriptUtils; -import org.alfresco.repo.web.scripts.RepositoryContainer; -import org.alfresco.service.cmr.admin.RepoUsage; -import org.alfresco.service.cmr.repository.StoreRef; -import org.springframework.extensions.webscripts.WebScript; - -/** - * Override of the JavaScript API ScriptUtils bean "utilsScript" to provide additional - * Remote API methods using objects not available to base Repository project. - *

- * See "web-scripts-application-context.xml" for bean definition. - * - * @since 4.2.0 - * @since 5.1 (Moved to Remote API project) - * @author Kevin Roast - */ -public class WebScriptUtils extends ScriptUtils -{ - protected RepositoryContainer repositoryContainer; - - public void setRepositoryContainer(RepositoryContainer repositoryContainer) - { - this.repositoryContainer = repositoryContainer; - } - - /** - * Searches for webscript components with the given family name. - * - * @param family the family - * - * @return An array of webscripts that match the given family name - */ - public Object[] findWebScripts(String family) - { - List values = new ArrayList(); - - for (WebScript webscript : this.repositoryContainer.getRegistry().getWebScripts()) - { - if (family != null) - { - Set familys = webscript.getDescription().getFamilys(); - if (familys != null && familys.contains(family)) - { - values.add(webscript.getDescription()); - } - } - else - { - values.add(webscript.getDescription()); - } - } - - return values.toArray(new Object[values.size()]); - } - - public String getHostAddress() - { - try - { - return InetAddress.getLocalHost().getHostAddress(); - } - catch (UnknownHostException e) - { - return "Unknown"; - } - } - - public String getHostName() - { - try - { - return InetAddress.getLocalHost().getHostName(); - } - catch (UnknownHostException e) - { - return "Unknown"; - } - } - - public RepoUsage getRestrictions() - { - return this.services.getRepoAdminService().getRestrictions(); - } - - public RepoUsage getUsage() - { - return this.services.getRepoAdminService().getUsage(); - } - - /** - * Gets the list of repository stores - * - * @return stores - */ - public List getStores() - { - return this.services.getNodeService().getStores(); - } -} +package org.alfresco.web.scripts; + +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.ArrayList; +import java.util.List; +import java.util.Set; + +import org.alfresco.repo.jscript.ScriptUtils; +import org.alfresco.repo.web.scripts.RepositoryContainer; +import org.alfresco.service.cmr.admin.RepoUsage; +import org.alfresco.service.cmr.repository.StoreRef; +import org.springframework.extensions.webscripts.WebScript; + +/** + * Override of the JavaScript API ScriptUtils bean "utilsScript" to provide additional + * Remote API methods using objects not available to base Repository project. + *

+ * See "web-scripts-application-context.xml" for bean definition. + * + * @since 4.2.0 + * @since 5.1 (Moved to Remote API project) + * @author Kevin Roast + */ +public class WebScriptUtils extends ScriptUtils +{ + protected RepositoryContainer repositoryContainer; + + public void setRepositoryContainer(RepositoryContainer repositoryContainer) + { + this.repositoryContainer = repositoryContainer; + } + + /** + * Searches for webscript components with the given family name. + * + * @param family the family + * + * @return An array of webscripts that match the given family name + */ + public Object[] findWebScripts(String family) + { + List values = new ArrayList(); + + for (WebScript webscript : this.repositoryContainer.getRegistry().getWebScripts()) + { + if (family != null) + { + Set familys = webscript.getDescription().getFamilys(); + if (familys != null && familys.contains(family)) + { + values.add(webscript.getDescription()); + } + } + else + { + values.add(webscript.getDescription()); + } + } + + return values.toArray(new Object[0]); + } + + public String getHostAddress() + { + try + { + return InetAddress.getLocalHost().getHostAddress(); + } + catch (UnknownHostException e) + { + return "Unknown"; + } + } + + public String getHostName() + { + try + { + return InetAddress.getLocalHost().getHostName(); + } + catch (UnknownHostException e) + { + return "Unknown"; + } + } + + public RepoUsage getRestrictions() + { + return this.services.getRepoAdminService().getRestrictions(); + } + + public RepoUsage getUsage() + { + return this.services.getRepoAdminService().getUsage(); + } + + /** + * Gets the list of repository stores + * + * @return stores + */ + public List getStores() + { + return this.services.getNodeService().getStores(); + } +} diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/BufferedResponseTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/BufferedResponseTest.java index 39c86ed916..2eb0f15df9 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/BufferedResponseTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/BufferedResponseTest.java @@ -26,23 +26,23 @@ */ package org.alfresco.rest.api.tests; -import org.alfresco.repo.web.scripts.BufferedResponse; -import org.alfresco.repo.web.scripts.TempOutputStream; -import org.alfresco.repo.web.scripts.TempOutputStreamFactory; -import org.alfresco.util.TempFileProvider; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.RandomAccessFile; import java.nio.file.Files; import java.util.Arrays; +import java.util.function.Supplier; import java.util.stream.Stream; +import org.alfresco.repo.web.scripts.BufferedResponse; +import org.alfresco.repo.web.scripts.TempOutputStream; +import org.alfresco.util.TempFileProvider; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + /** * Test that BufferedResponse uses a temp file instead of buffering the entire output stream in memory * @@ -82,17 +82,25 @@ public class BufferedResponseTest public void testOutputStream() throws IOException { File bufferTempDirectory = TempFileProvider.getTempDir(TEMP_DIRECTORY_NAME); - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false,true); - BufferedResponse response = new BufferedResponse(null, 0, streamFactory); + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, + MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false); - long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX ); - copyFileToOutputStream(response); - long countAfter = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX); - - response.getOutputStream().close(); + final long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX); - Assert.assertEquals(countBefore + 1, countAfter); + try (BufferedResponse response = new BufferedResponse(null, 0, streamFactory)) + { + copyFileToOutputStream(response); + final long countBeforeClose = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX); + response.getOutputStream().close(); + final long countAfterClose = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX); + + Assert.assertEquals(countBefore + 1, countBeforeClose); + Assert.assertEquals(countBefore + 1, countAfterClose); + } + + final long countAfterDestroy = countFilesInDirectoryWithPrefix(bufferTempDirectory, FILE_PREFIX); + Assert.assertEquals(countBefore, countAfterDestroy); } private void copyFileToOutputStream(BufferedResponse response) throws IOException diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/TempOutputStreamTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/TempOutputStreamTest.java index ae7b475f99..653e9256d8 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/TempOutputStreamTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/TempOutputStreamTest.java @@ -33,11 +33,11 @@ import java.io.IOException; import java.io.RandomAccessFile; import java.nio.charset.Charset; import java.util.Arrays; +import java.util.function.Supplier; import java.util.stream.Stream; import org.alfresco.repo.content.ContentLimitViolationException; import org.alfresco.repo.web.scripts.TempOutputStream; -import org.alfresco.repo.web.scripts.TempOutputStreamFactory; import org.alfresco.util.TempFileProvider; import org.junit.Assert; import org.junit.Test; @@ -57,11 +57,12 @@ public class TempOutputStreamTest @Test public void testInMemoryStream() throws IOException { - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false, false); + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, + MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false); File file = createTextFileWithRandomContent(MEMORY_THRESHOLD - 1024L); { - TempOutputStream outputStream = streamFactory.createOutputStream(); + TempOutputStream outputStream = streamFactory.get(); long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); @@ -83,8 +84,8 @@ public class TempOutputStreamTest { // Create stream factory that doesn't delete temp file on stream close - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false, false); - TempOutputStream outputStream = streamFactory.createOutputStream(); + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false); + TempOutputStream outputStream = streamFactory.get(); long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); @@ -107,26 +108,6 @@ public class TempOutputStreamTest Assert.assertEquals(countBefore, countAfter); } - { - // Create stream factory that deletes temp file on stream close - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, false, true); - TempOutputStream outputStream = streamFactory.createOutputStream(); - - long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); - - StreamUtils.copy(new BufferedInputStream(new FileInputStream(file)), outputStream); - - // Check that temp file was created - long countAfter = countFilesInDirectoryWithPrefix(bufferTempDirectory); - Assert.assertEquals(countBefore + 1, countAfter); - - outputStream.close(); - - // Check that file was deleted on close - countAfter = countFilesInDirectoryWithPrefix(bufferTempDirectory); - Assert.assertEquals(countBefore, countAfter); - } - file.delete(); } @@ -140,9 +121,9 @@ public class TempOutputStreamTest File file = createTextFileWithRandomContent(contentSize); - // Create stream factory that deletes temp file on stream close - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, maxContentSize, false, true); - TempOutputStream outputStream = streamFactory.createOutputStream(); + // Create stream factory that deletes the temp file when the max Size is reached + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, MEMORY_THRESHOLD, maxContentSize, false); + TempOutputStream outputStream = streamFactory.get(); long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); @@ -156,7 +137,7 @@ public class TempOutputStreamTest // Expected } - // Check that file was already deleted on close + // Check that file was already deleted on error long countAfter = countFilesInDirectoryWithPrefix(bufferTempDirectory); Assert.assertEquals(countBefore, countAfter); @@ -170,9 +151,9 @@ public class TempOutputStreamTest File file = createTextFileWithRandomContent(contentSize); - // Create stream factory that deletes temp file on stream close - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, maxContentSize, false, true); - TempOutputStream outputStream = streamFactory.createOutputStream(); + // Create stream factory that deletes the temp file when the max Size is reached + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, MEMORY_THRESHOLD, maxContentSize, false); + TempOutputStream outputStream = streamFactory.get(); long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); @@ -186,7 +167,7 @@ public class TempOutputStreamTest // Expected } - // Check that file was already deleted on close + // Check that file was already deleted on error long countAfter = countFilesInDirectoryWithPrefix(bufferTempDirectory); Assert.assertEquals(countBefore, countAfter); @@ -200,9 +181,9 @@ public class TempOutputStreamTest File file = createTextFileWithRandomContent(MEMORY_THRESHOLD + 1024L); // Create stream factory that doesn't delete temp file on stream close - TempOutputStreamFactory streamFactory = new TempOutputStreamFactory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, true, false); + Supplier streamFactory = TempOutputStream.factory(bufferTempDirectory, MEMORY_THRESHOLD, MAX_CONTENT_SIZE, true); - TempOutputStream outputStream = streamFactory.createOutputStream(); + TempOutputStream outputStream = streamFactory.get(); long countBefore = countFilesInDirectoryWithPrefix(bufferTempDirectory); @@ -220,7 +201,7 @@ public class TempOutputStreamTest // Compare content String contentWriten = StreamUtils.copyToString(new BufferedInputStream(new FileInputStream(file)), Charset.defaultCharset()); - String contentRead = StreamUtils.copyToString(outputStream.getInputStream(), Charset.defaultCharset()); + String contentRead = StreamUtils.copyToString(outputStream.toNewInputStream(), Charset.defaultCharset()); Assert.assertEquals(contentWriten, contentRead); outputStream.destroy(); From d726ab80998a848ca0303e3272e95ca9220a2cb3 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 6 Aug 2021 12:27:21 +0000 Subject: [PATCH 016/177] [maven-release-plugin][skip ci] prepare release 11.98 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6ff2fc6dd8..800567c811 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.98-SNAPSHOT + 11.98 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index cbf231ee19..e4f7e00da4 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.98-SNAPSHOT + 11.98 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index bb557888f3..59bd3a22f8 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 74a708779a..64d37f0797 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.98-SNAPSHOT + 11.98 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8b3f530da0..3322152b60 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.98-SNAPSHOT + 11.98 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 868f0fb487..d4fbdf9d8a 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.98-SNAPSHOT + 11.98 diff --git a/amps/pom.xml b/amps/pom.xml index 9092eb96c3..efd582d573 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 10300b512d..3c7d0196a1 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.98-SNAPSHOT + 11.98 diff --git a/core/pom.xml b/core/pom.xml index de1e914c7f..a6d96738fc 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/data-model/pom.xml b/data-model/pom.xml index 652aeb24bd..ab994e4a54 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 07b28246e2..dba20e8ab1 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index c5c2aa864d..d5ef4d7141 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/pom.xml b/packaging/pom.xml index 319974f5d3..b47ab49b39 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3cb192727a..ab4e92b303 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 90f03c4c84..1dff287791 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 0efe9c0c48..45b1b7b275 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index da3016fcb5..556fcca27c 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index d7e5043abd..4c13027aca 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index dbdc05972b..3c58bd2fd4 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98-SNAPSHOT + 11.98 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index be9b1b795f..52cb5b8a20 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98-SNAPSHOT + 11.98 diff --git a/pom.xml b/pom.xml index 5328d0d1f4..6ed14548e4 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.98-SNAPSHOT + 11.98 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.98 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 816f2756f3..b5ab344a32 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 diff --git a/repository/pom.xml b/repository/pom.xml index 7c8a408dd5..17b0e00595 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98-SNAPSHOT + 11.98 From eee7e003105e13ecbea059d3ab603879343a0abd Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 6 Aug 2021 12:27:23 +0000 Subject: [PATCH 017/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 800567c811..752b0cee33 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.98 + 11.99-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index e4f7e00da4..bec45d255e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.98 + 11.99-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 59bd3a22f8..f54f9561dd 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 64d37f0797..ea68254345 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.98 + 11.99-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 3322152b60..3145f45db5 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.98 + 11.99-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index d4fbdf9d8a..f393ca331e 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.98 + 11.99-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index efd582d573..e3f5ed20b5 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3c7d0196a1..a2c0e953f8 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.98 + 11.99-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index a6d96738fc..f21a0c83d6 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index ab994e4a54..2e073d7095 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index dba20e8ab1..131d973348 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d5ef4d7141..4de1e0fe4b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index b47ab49b39..3792345417 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ab4e92b303..645eeee3b1 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 1dff287791..896f6615cb 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 45b1b7b275..12b197704b 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 556fcca27c..47f317e04a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4c13027aca..c8319ab9a5 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 3c58bd2fd4..2169070e4a 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.98 + 11.99-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 52cb5b8a20..6dfebc5522 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.98 + 11.99-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6ed14548e4..90a4c7dbe2 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.98 + 11.99-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.98 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index b5ab344a32..0a5e2e336c 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 17b0e00595..35a60444e0 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.98 + 11.99-SNAPSHOT From 838d758983d5e289d242c974246d4d13e9ac818f Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 9 Aug 2021 15:55:10 +0100 Subject: [PATCH 018/177] Feature/acs 1782 impl request DAU in content service (#645) * Content Service changes both ACS-1781 and 1782 * Ignore test temporarily * ACS-1782 fix test * ACS-1782 Test and service updates * ACS-1781 Tests for Content Service and Store * ACS-1782 disable rest api DAU * ACS-1782 fix mocks in unit test * ACS-1782 Fix integration test --- .../alfresco/repo/content/ContentStore.java | 62 ++++++- .../cmr/repository/DirectAccessUrl.java | 39 ++++- .../repo/content/ContentServiceImpl.java | 147 +++++++++++++--- .../content/caching/CachingContentStore.java | 38 ++++- .../DirectAccessUrlDisabledException.java | 44 +++++ .../replication/AggregatingContentStore.java | 55 ++++-- .../cmr/repository/ContentService.java | 48 +++++- .../alfresco/content-services-context.xml | 3 + .../resources/alfresco/repository.properties | 2 +- .../java/org/alfresco/AllUnitTestsSuite.java | 1 + .../content/ContentServiceImplUnitTest.java | 160 ++++++++++++++++++ .../caching/CachingContentStoreTest.java | 15 +- .../AggregatingContentStoreTest.java | 84 +++++---- .../repo/version/ContentServiceImplTest.java | 46 ++--- 14 files changed, 614 insertions(+), 130 deletions(-) create mode 100644 repository/src/main/java/org/alfresco/repo/content/directurl/DirectAccessUrlDisabledException.java create mode 100644 repository/src/test/java/org/alfresco/repo/content/ContentServiceImplUnitTest.java diff --git a/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java b/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java index ccded57adb..4344a15c87 100644 --- a/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java +++ b/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java @@ -2,7 +2,7 @@ * #%L * Alfresco Data model classes * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,6 +25,8 @@ */ package org.alfresco.repo.content; +import java.util.Date; + import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.cmr.repository.ContentAccessor; import org.alfresco.service.cmr.repository.ContentIOException; @@ -32,8 +34,8 @@ import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentStreamListener; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.NodeRef; -import java.util.Date; /** * Provides low-level retrieval of content @@ -239,6 +241,58 @@ public interface ContentStore */ public boolean delete(String contentUrl); + /** + * Checks if the store supports the retrieving of direct access URLs. + * + * @return {@code true} if direct access URLs retrieving is supported, {@code false} otherwise + */ + default boolean isContentDirectUrlEnabled() + { + return false; + } + + /** + * Checks if the store supports the retrieving of a direct access URL for the given node. + * + * @return {@code true} if direct access URLs retrieving is supported for the node, {@code false} otherwise + */ + default boolean isContentDirectUrlEnabled(NodeRef nodeRef) + { + return false; + } + + /** + * Gets a presigned URL to directly access the content. It is up to the actual store + * implementation if it can fulfil this request with an expiry time or not. + * + * @param contentUrl A content store {@code URL} + * @param attachment {@code true} if an attachment URL is requested, {@code false} for an embedded {@code URL}. + * @param fileName File name of the content + * @return A direct access {@code URL} object for the content + * @throws UnsupportedOperationException if the store is unable to provide the information + */ + default DirectAccessUrl requestContentDirectUrl(String contentUrl, boolean attachment, String fileName) + { + return requestContentDirectUrl(contentUrl, attachment, fileName, null); + } + + /** + * Gets a presigned URL to directly access the content. It is up to the actual store + * implementation if it can fulfil this request with an expiry time or not. + * + * @param contentUrl A content store {@code URL} + * @param attachment {@code true} if an attachment URL is requested, {@code false} for an embedded {@code URL}. + * @param fileName File name of the content + * @param validFor The time at which the direct access {@code URL} will expire. + * @return A direct access {@code URL} object for the content. + * @throws UnsupportedOperationException if the store is unable to provide the information + */ + default DirectAccessUrl requestContentDirectUrl(String contentUrl, boolean attachment, String fileName, Long validFor) + { + throw new UnsupportedOperationException( + "Retrieving direct access URLs is not supported by this content store."); + } + /** * Gets a presigned URL to directly access a binary content. It is up to the actual store * implementation if it can fulfil this request with an expiry time or not. @@ -248,10 +302,11 @@ public interface ContentStore * @return A direct access URL object for a binary content * @throws UnsupportedOperationException if the store is unable to provide the information */ + @Deprecated default DirectAccessUrl getDirectAccessUrl(String contentUrl, Date expiresAt) { throw new UnsupportedOperationException( - "Retrieving direct access URLs is not supported by this content store."); + "Retrieving direct access URLs is not supported by this content store."); } /** @@ -259,6 +314,7 @@ public interface ContentStore * * @return true if direct access URLs retrieving is supported, false otherwise */ + @Deprecated default boolean isDirectAccessSupported() { return false; diff --git a/data-model/src/main/java/org/alfresco/service/cmr/repository/DirectAccessUrl.java b/data-model/src/main/java/org/alfresco/service/cmr/repository/DirectAccessUrl.java index 0df9532f7a..365f441bb2 100644 --- a/data-model/src/main/java/org/alfresco/service/cmr/repository/DirectAccessUrl.java +++ b/data-model/src/main/java/org/alfresco/service/cmr/repository/DirectAccessUrl.java @@ -2,7 +2,7 @@ * #%L * Alfresco Data model classes * %% - * Copyright (C) 2005 - 2020 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -27,6 +27,7 @@ package org.alfresco.service.cmr.repository; import java.io.Serializable; import java.util.Date; +import java.util.Objects; import org.alfresco.api.AlfrescoPublicApi; @@ -36,7 +37,8 @@ public class DirectAccessUrl implements Serializable private static final long serialVersionUID = -881676208224414139L; private String contentUrl; - private Date expiresAt; + private Date expiryTime; + private boolean attachment; public String getContentUrl() { @@ -48,13 +50,38 @@ public class DirectAccessUrl implements Serializable this.contentUrl = contentUrl; } - public Date getExpiresAt() + public Date getExpiryTime() { - return expiresAt; + return expiryTime; } - public void setExpiresAt(Date expiresAt) + public void setExpiryTime(Date expiryTime) { - this.expiresAt = expiresAt; + this.expiryTime = expiryTime; + } + + public boolean isAttachment() + { + return attachment; + } + + public void setAttachment(boolean attachment) + { + this.attachment = attachment; + } + + @Override public boolean equals(Object obj) + { + if (this == obj) return true; + if (obj == null || getClass() != obj.getClass()) return false; + + DirectAccessUrl that = (DirectAccessUrl) obj; + return attachment == that.attachment && Objects.equals(contentUrl, + that.contentUrl) && Objects.equals(expiryTime, that.expiryTime); + } + + @Override public int hashCode() + { + return Objects.hash(contentUrl, expiryTime, attachment); } } diff --git a/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java b/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java index 86e58e6527..158306bed0 100644 --- a/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java +++ b/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,12 +25,21 @@ */ package org.alfresco.repo.content; +import java.io.Serializable; +import java.util.Collection; +import java.util.Date; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.model.ContentModel; import org.alfresco.repo.content.ContentServicePolicies.OnContentPropertyUpdatePolicy; import org.alfresco.repo.content.ContentServicePolicies.OnContentReadPolicy; import org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy; import org.alfresco.repo.content.cleanup.EagerContentStoreCleaner; +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; +import org.alfresco.repo.content.directurl.SystemWideDirectUrlConfig; import org.alfresco.repo.content.filestore.FileContentStore; import org.alfresco.repo.node.NodeServicePolicies; import org.alfresco.repo.policy.ClassPolicyDelegate; @@ -47,6 +56,7 @@ import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.InvalidNodeRefException; import org.alfresco.service.cmr.repository.MimetypeService; import org.alfresco.service.cmr.repository.MimetypeServiceAware; import org.alfresco.service.cmr.repository.NodeRef; @@ -62,13 +72,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.extensions.surf.util.I18NUtil; -import java.io.Serializable; -import java.util.Collection; -import java.util.Date; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - /** * Service implementation acting as a level of indirection between the client * and the underlying content store. @@ -82,7 +85,7 @@ import java.util.Set; */ public class ContentServiceImpl implements ContentService, ApplicationContextAware { - private static Log logger = LogFactory.getLog(ContentServiceImpl.class); + private static final Log logger = LogFactory.getLog(ContentServiceImpl.class); private DictionaryService dictionaryService; private NodeService nodeService; @@ -99,6 +102,8 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa /** Should we consider zero byte content to be the same as no content? */ private boolean ignoreEmptyContent; + private SystemWideDirectUrlConfig systemWideDirectUrlConfig; + /** * The policy component */ @@ -140,7 +145,12 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa { this.store = store; } - + + public void setSystemWideDirectUrlConfig(SystemWideDirectUrlConfig systemWideDirectUrlConfig) + { + this.systemWideDirectUrlConfig = systemWideDirectUrlConfig; + } + public void setPolicyComponent(PolicyComponent policyComponent) { this.policyComponent = policyComponent; @@ -510,23 +520,10 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa return tempStore.getWriter(ContentContext.NULL_CONTEXT); } - @Override + @Deprecated public DirectAccessUrl getDirectAccessUrl(NodeRef nodeRef, Date expiresAt) { - ContentData contentData = getContentData(nodeRef, ContentModel.PROP_CONTENT); - - // check that the URL is available - if (contentData == null || contentData.getContentUrl() == null) - { - throw new IllegalArgumentException("The supplied nodeRef " + nodeRef + " has no content."); - } - - if (store.isDirectAccessSupported()) - { - return store.getDirectAccessUrl(contentData.getContentUrl(), expiresAt); - } - - return null; + return requestContentDirectUrl(nodeRef, true, null); } /** @@ -586,4 +583,104 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa } } } + + /** + * {@inheritDoc} + */ + @Override + public boolean isContentDirectUrlEnabled() + { + return systemWideDirectUrlConfig.isEnabled() && store.isContentDirectUrlEnabled(); + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isContentDirectUrlEnabled(NodeRef nodeRef) + { + boolean contentDirectUrlEnabled = false; + + // TODO: update this + if (systemWideDirectUrlConfig.isEnabled()) + { + ContentData contentData = getContentData(nodeRef, ContentModel.PROP_CONTENT); + + // check that the URL is available + if (contentData == null || contentData.getContentUrl() == null) + { + throw new IllegalArgumentException("The supplied nodeRef " + nodeRef + " has no content."); + } + + contentDirectUrlEnabled = (store.isContentDirectUrlEnabled(nodeRef)); + } + + return contentDirectUrlEnabled; + } + + /** + * {@inheritDoc} + */ + public DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment, Long validFor) + { + if (!systemWideDirectUrlConfig.isEnabled()) + { + throw new DirectAccessUrlDisabledException("Direct access url isn't available."); + } + + String contentUrl = getContentUrl(nodeRef); + String fileName = getFileName(nodeRef); + validFor = adjustValidFor(validFor); + + DirectAccessUrl directAccessUrl = null; + if (store.isContentDirectUrlEnabled()) + { + try + { + directAccessUrl = store.requestContentDirectUrl(contentUrl, attachment, fileName, validFor); + } + catch (UnsupportedOperationException ex) + { + // expected exception + } + } + return directAccessUrl; + } + + protected String getContentUrl(NodeRef nodeRef) + { + ContentData contentData = getContentData(nodeRef, ContentModel.PROP_CONTENT); + + // check that the URL is available + if (contentData == null || contentData.getContentUrl() == null) + { + throw new IllegalArgumentException("The supplied nodeRef " + nodeRef + " has no content."); + } + + return contentData.getContentUrl(); + } + + protected String getFileName(NodeRef nodeRef) + { + String fileName = null; + + try + { + fileName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NAME); + } + catch (InvalidNodeRefException ex) + { + } + + return fileName; + } + + private Long adjustValidFor(Long validFor) + { + if (validFor == null || validFor > systemWideDirectUrlConfig.getDefaultExpiryTimeInSec()) + { + validFor = systemWideDirectUrlConfig.getDefaultExpiryTimeInSec(); + } + return validFor; + } } \ No newline at end of file diff --git a/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java b/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java index 5cad001984..77e7851547 100644 --- a/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java +++ b/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,7 +25,6 @@ */ package org.alfresco.repo.content.caching; -import java.util.Date; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock; import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock; @@ -41,6 +40,7 @@ import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentStreamListener; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.NodeRef; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.BeanNameAware; @@ -103,7 +103,7 @@ public class CachingContentStore implements ContentStore, ApplicationEventPublis { eventPublisher.publishEvent(new CachingContentStoreCreatedEvent(this)); } - + @Override public boolean isContentUrlSupported(String contentUrl) { @@ -137,7 +137,7 @@ public class CachingContentStore implements ContentStore, ApplicationEventPublis /** * {@inheritDoc} *

- * For {@link #SPOOF_PROTOCOL spoofed} URLs, the URL always exists. + * For {@link FileContentStore#SPOOF_PROTOCOL spoofed} URLs, the URL always exists. */ @Override public boolean exists(String contentUrl) @@ -478,13 +478,35 @@ public class CachingContentStore implements ContentStore, ApplicationEventPublis return this.beanName; } - public boolean isDirectAccessSupported() + /** + * {@inheritDoc} + */ + public boolean isContentDirectUrlEnabled() { - return backingStore.isDirectAccessSupported(); + return backingStore.isContentDirectUrlEnabled(); } - public DirectAccessUrl getDirectAccessUrl(String contentUrl, Date expiresAt) + /** + * {@inheritDoc} + */ + public boolean isContentDirectUrlEnabled(NodeRef nodeRef) { - return backingStore.getDirectAccessUrl(contentUrl, expiresAt); + return backingStore.isContentDirectUrlEnabled(nodeRef); + } + + /** + * {@inheritDoc} + */ + public DirectAccessUrl requestContentDirectUrl(String contentUrl, boolean attachment, String fileName) + { + return backingStore.requestContentDirectUrl(contentUrl, attachment, fileName); + } + + /** + * {@inheritDoc} + */ + public DirectAccessUrl requestContentDirectUrl(String contentUrl, boolean attachment, String fileName, Long validFor) + { + return backingStore.requestContentDirectUrl(contentUrl, attachment, fileName, validFor); } } diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/DirectAccessUrlDisabledException.java b/repository/src/main/java/org/alfresco/repo/content/directurl/DirectAccessUrlDisabledException.java new file mode 100644 index 0000000000..d0702b398d --- /dev/null +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/DirectAccessUrlDisabledException.java @@ -0,0 +1,44 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content.directurl; + +import org.alfresco.error.AlfrescoRuntimeException; + +/** + * Runtime exception thrown when direct access URLs are disabled. + * + * @author Sara Aspery + */ +public class DirectAccessUrlDisabledException extends AlfrescoRuntimeException +{ + + private static final long serialVersionUID = -6506082117146782993L; + + public DirectAccessUrlDisabledException(String msg) + { + super(msg); + } +} diff --git a/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java b/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java index 15cc9c5246..6c700e0572 100644 --- a/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java +++ b/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,7 +25,6 @@ */ package org.alfresco.repo.content.replication; -import java.util.Date; import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; @@ -41,6 +40,7 @@ import org.alfresco.service.cmr.repository.ContentIOException; import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.NodeRef; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -65,7 +65,7 @@ import org.apache.commons.logging.LogFactory; */ public class AggregatingContentStore extends AbstractContentStore { - private static Log logger = LogFactory.getLog(AggregatingContentStore.class); + private static final Log logger = LogFactory.getLog(AggregatingContentStore.class); private ContentStore primaryStore; private List secondaryStores; @@ -266,33 +266,58 @@ public class AggregatingContentStore extends AbstractContentStore } /** - * @return Returns true if at least one store supports direct access + * @return Returns {@code true} if at least one store supports direct access URLs */ - public boolean isDirectAccessSupported() + public boolean isContentDirectUrlEnabled() { // Check the primary store - boolean isDirectAccessSupported = primaryStore.isDirectAccessSupported(); + boolean isContentDirectUrlEnabled = primaryStore.isContentDirectUrlEnabled(); - if (!isDirectAccessSupported) + if (!isContentDirectUrlEnabled) { // Direct access is not supported by the primary store so we have to check the // other stores for (ContentStore store : secondaryStores) { + isContentDirectUrlEnabled = store.isContentDirectUrlEnabled(); - isDirectAccessSupported = store.isDirectAccessSupported(); - - if (isDirectAccessSupported) + if (isContentDirectUrlEnabled) { break; } } } - return isDirectAccessSupported; + return isContentDirectUrlEnabled; } - public DirectAccessUrl getDirectAccessUrl(String contentUrl, Date expiresAt) + /** + * @return Returns {@code true} if at least one store supports direct access URL for node + */ + public boolean isContentDirectUrlEnabled(NodeRef nodeRef) + { + // Check the primary store + boolean isContentDirectUrlEnabled = primaryStore.isContentDirectUrlEnabled(nodeRef); + + if (!isContentDirectUrlEnabled) + { + // Direct access is not supported by the primary store so we have to check the + // other stores + for (ContentStore store : secondaryStores) + { + isContentDirectUrlEnabled = store.isContentDirectUrlEnabled(nodeRef); + + if (isContentDirectUrlEnabled) + { + break; + } + } + } + + return isContentDirectUrlEnabled; + } + + public DirectAccessUrl requestContentDirectUrl(String contentUrl, boolean attachment, String fileName, Long validFor) { if (primaryStore == null) { @@ -312,13 +337,13 @@ public class AggregatingContentStore extends AbstractContentStore // Check the primary store try { - directAccessUrl = primaryStore.getDirectAccessUrl(contentUrl, expiresAt); + directAccessUrl = primaryStore.requestContentDirectUrl(contentUrl, attachment, fileName, validFor); } catch (UnsupportedOperationException e) { // The store does not support direct access URL directAccessUrlSupported = false; - } + } catch (UnsupportedContentUrlException e) { // The store can't handle the content URL @@ -335,7 +360,7 @@ public class AggregatingContentStore extends AbstractContentStore { try { - directAccessUrl = store.getDirectAccessUrl(contentUrl, expiresAt); + directAccessUrl = store.requestContentDirectUrl(contentUrl, attachment, fileName, validFor); } catch (UnsupportedOperationException e) { diff --git a/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java b/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java index 81622ff41a..ce73035374 100644 --- a/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java +++ b/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,13 +25,13 @@ */ package org.alfresco.service.cmr.repository; +import java.util.Date; + import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.Auditable; import org.alfresco.service.cmr.dictionary.InvalidTypeException; import org.alfresco.service.namespace.QName; -import java.util.Date; - /** * Provides methods for accessing and transforming content. *

@@ -168,6 +168,48 @@ public interface ContentService * @return A direct access URL object for a binary content or returns null if not supported * @throws IllegalArgumentException if there is no binary content for the node */ + @Deprecated @Auditable(parameters = {"nodeRef", "expiresAt"}) public DirectAccessUrl getDirectAccessUrl(NodeRef nodeRef, Date expiresAt); + + /** + * Checks if the system and at least one store supports the retrieving of direct access URLs. + * + * @return {@code true} if direct access URLs retrieving is supported, {@code false} otherwise + */ + boolean isContentDirectUrlEnabled(); + + /** + * Checks if the system and store supports the retrieving of a direct access {@code URL} for the given node. + * + * @return {@code true} if direct access URLs retrieving is supported for the node, {@code false} otherwise + */ + boolean isContentDirectUrlEnabled(NodeRef nodeRef); + + /** + * Gets a presigned URL to directly access the content. It is up to the actual store + * implementation if it can fulfil this request with an expiry time or not. + * + * @param nodeRef Node ref for which to obtain the direct access {@code URL}. + * @param attachment {@code true} if an attachment URL is requested, {@code false} for an embedded {@code URL}. + * @return A direct access {@code URL} object for the content. + * @throws UnsupportedOperationException if the store is unable to provide the information. + */ + default DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment) + { + return requestContentDirectUrl(nodeRef, attachment, null); + } + + /** + * Gets a presigned URL to directly access the content. It is up to the actual store + * implementation if it can fulfil this request with an expiry time or not. + * + * @param nodeRef Node ref for which to obtain the direct access {@code URL}. + * @param attachment {@code true} if an attachment URL is requested, {@code false} for an embedded {@code URL}. + * @param validFor The time at which the direct access {@code URL} will expire. + * @return A direct access {@code URL} object for the content. + * @throws UnsupportedOperationException if the store is unable to provide the information. + */ + @Auditable(parameters = {"nodeRef", "validFor"}) + DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment, Long validFor); } diff --git a/repository/src/main/resources/alfresco/content-services-context.xml b/repository/src/main/resources/alfresco/content-services-context.xml index ab02159381..a086db2e41 100644 --- a/repository/src/main/resources/alfresco/content-services-context.xml +++ b/repository/src/main/resources/alfresco/content-services-context.xml @@ -161,6 +161,9 @@ ${policy.content.update.ignoreEmpty} + + + diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index 4979b06b90..b95cbf72ae 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -1291,7 +1291,7 @@ connector.s3.directAccessUrl.maxExpiryTimeInSec=300 # Configure the REST API configuration settings for direct access urls. # # Controls whether direct access url requests via the REST API are enabled. -restApi.directAccessUrl.enabled=true +restApi.directAccessUrl.enabled=false # Sets the expiry time for all the direct access urls requested via a REST call. # Its value cannot exceed the system-wide max expiry time configuration, it can only be equal or lower (REST API DAUs # disabled otherwise). diff --git a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java index 2d8cc48e74..7836b7cbec 100644 --- a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java +++ b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java @@ -180,6 +180,7 @@ import org.junit.runners.Suite; org.alfresco.repo.audit.AuditableAnnotationTest.class, org.alfresco.repo.audit.PropertyAuditFilterTest.class, org.alfresco.repo.audit.access.NodeChangeTest.class, + org.alfresco.repo.content.ContentServiceImplUnitTest.class, org.alfresco.repo.content.directurl.SystemWideDirectUrlConfigUnitTest.class, org.alfresco.repo.content.directurl.ContentStoreDirectUrlConfigUnitTest.class, org.alfresco.repo.content.LimitedStreamCopierTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/content/ContentServiceImplUnitTest.java b/repository/src/test/java/org/alfresco/repo/content/ContentServiceImplUnitTest.java new file mode 100644 index 0000000000..63e6530715 --- /dev/null +++ b/repository/src/test/java/org/alfresco/repo/content/ContentServiceImplUnitTest.java @@ -0,0 +1,160 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.content; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.mockito.MockitoAnnotations.openMocks; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; +import org.alfresco.repo.content.directurl.SystemWideDirectUrlConfig; +import org.alfresco.service.cmr.repository.ContentData; +import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.junit.Before; +import org.junit.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; + +/** + * Unit tests for content service implementation. + * + * @author Sara Aspery + */ +public class ContentServiceImplUnitTest +{ + private static final Boolean ENABLED = Boolean.TRUE; + private static final Boolean DISABLED = Boolean.FALSE; + + private static final Long SYS_DEFAULT_EXPIRY_TIME_IN_SECS = 30L; + private static final Long SYS_MAX_EXPIRY_TIME_IN_SECS = 300L; + + private static final NodeRef NODE_REF = new NodeRef("content://Node/Ref"); + + @InjectMocks + private ContentServiceImpl contentService; + + @Mock + private ContentStore mockContentStore; + + @Mock + private NodeService mockNodeService; + + @Mock + private ContentData mockContentData; + + @Before + public void setup() + { + openMocks(this); + when(mockNodeService.getProperty(NODE_REF, ContentModel.PROP_CONTENT)).thenReturn(mockContentData); + when(mockContentData.getContentUrl()).thenReturn("someContentUrl"); + when(mockNodeService.getProperty(NODE_REF, ContentModel.PROP_NAME)).thenReturn("someFilename"); + } + + @Test + public void testIsContentDirectUrlEnabled_SystemWideIsDisabled() + { + setupSystemWideDirectAccessConfig(DISABLED); + assertFalse("Expected contentDirectUrl to be disabled", contentService.isContentDirectUrlEnabled()); + verify(mockContentStore, never()).isContentDirectUrlEnabled(); + } + + @Test + public void testIsContentDirectUrlEnabled_SystemWideIsEnabledButStoreIsDisabled() + { + setupSystemWideDirectAccessConfig(ENABLED); + when(mockContentStore.isContentDirectUrlEnabled()).thenReturn(DISABLED); + assertFalse("Expected contentDirectUrl to be disabled", contentService.isContentDirectUrlEnabled()); + } + + @Test + public void testIsContentDirectUrlEnabled_SystemWideIsEnabledAndStoreIsEnabled() + { + setupSystemWideDirectAccessConfig(ENABLED); + when(mockContentStore.isContentDirectUrlEnabled()).thenReturn(ENABLED); + assertTrue("Expected contentDirectUrl to be enabled", contentService.isContentDirectUrlEnabled()); + } + + @Test + public void testRequestContentDirectUrl_SystemWideIsDisabled() + { + setupSystemWideDirectAccessConfig(DISABLED); + try + { + contentService.requestContentDirectUrl(NODE_REF, true, 20L); + fail("Expected DirectAccessUrlDisabledException"); + } + catch (DirectAccessUrlDisabledException ex) + { + verify(mockContentStore, never()).isContentDirectUrlEnabled(); + } + } + + @Test + public void testRequestContentDirectUrl_SystemWideIsEnabledButStoreIsDisabled() + { + setupSystemWideDirectAccessConfig(ENABLED); + when(mockContentStore.isContentDirectUrlEnabled()).thenReturn(DISABLED); + + DirectAccessUrl directAccessUrl = contentService.requestContentDirectUrl(NODE_REF, true, 20L); + assertNull(directAccessUrl); + verify(mockContentStore, never()).requestContentDirectUrl(anyString(), eq(true), anyString(), anyLong()); + } + + @Test + public void testRequestContentDirectUrl_StoreIsEnabledButNotImplemented() + { + setupSystemWideDirectAccessConfig(ENABLED); + when(mockContentStore.isContentDirectUrlEnabled()).thenReturn(ENABLED); + + DirectAccessUrl directAccessUrl = contentService.requestContentDirectUrl(NODE_REF, true, 20L); + assertNull(directAccessUrl); + verify(mockContentStore, times(1)).requestContentDirectUrl(anyString(), eq(true), anyString(), anyLong()); + } + + /* Helper method to set system-wide direct access url configuration settings */ + private void setupSystemWideDirectAccessConfig(Boolean isEnabled) + { + SystemWideDirectUrlConfig sysConfig = new SystemWideDirectUrlConfig(); + sysConfig.setEnabled(isEnabled); + sysConfig.setDefaultExpiryTimeInSec(SYS_DEFAULT_EXPIRY_TIME_IN_SECS); + sysConfig.setMaxExpiryTimeInSec(SYS_MAX_EXPIRY_TIME_IN_SECS); + sysConfig.validate(); + contentService.setSystemWideDirectUrlConfig(sysConfig); + } +} diff --git a/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java b/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java index ffac9eea8b..f35d0b08d4 100644 --- a/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java +++ b/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java @@ -35,6 +35,7 @@ import static org.junit.Assert.fail; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; @@ -493,10 +494,10 @@ public class CachingContentStoreTest @Test public void isDirectAccessSupported() { - assertFalse(cachingStore.isDirectAccessSupported()); + assertFalse(cachingStore.isContentDirectUrlEnabled()); - when(backingStore.isDirectAccessSupported()).thenReturn(true); - assertTrue(cachingStore.isDirectAccessSupported()); + when(backingStore.isContentDirectUrlEnabled()).thenReturn(true); + assertTrue(cachingStore.isContentDirectUrlEnabled()); } @Test @@ -504,8 +505,8 @@ public class CachingContentStoreTest { try { - when(backingStore.getDirectAccessUrl(anyString(), any())).thenThrow(new UnsupportedOperationException()); - cachingStore.getDirectAccessUrl("url", null); + when(backingStore.requestContentDirectUrl(anyString(), eq(true), anyString(), anyLong())).thenThrow(new UnsupportedOperationException()); + cachingStore.requestContentDirectUrl("url", true,"someFile", 30L); fail(); } catch (UnsupportedOperationException e) @@ -517,7 +518,7 @@ public class CachingContentStoreTest @Test public void getDirectAccessUrl() { - when(backingStore.getDirectAccessUrl(anyString(), any())).thenReturn(new DirectAccessUrl()); - cachingStore.getDirectAccessUrl("url", null); + when(backingStore.requestContentDirectUrl(anyString(), eq(true), anyString(), anyLong())).thenReturn(new DirectAccessUrl()); + cachingStore.requestContentDirectUrl("url", true,"someFile", 30L); } } diff --git a/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java b/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java index ecfaf17823..585843f155 100644 --- a/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java +++ b/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -56,9 +56,7 @@ import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.eq; -import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; /** @@ -191,7 +189,7 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes } @Test - public void testIsDirectAccessSupported() + public void testIsContentDirectUrlEnabled() { // Create the aggregating store AggregatingContentStore aggStore = new AggregatingContentStore(); @@ -199,21 +197,21 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes aggStore.setSecondaryStores(List.of(secondaryStoreMock)); // By default it is unsupported - assertFalse(aggStore.isDirectAccessSupported()); + assertFalse(aggStore.isContentDirectUrlEnabled()); // Supported if at least one store supports direct access { - when(primaryStoreMock.isDirectAccessSupported()).thenReturn(false); - when(secondaryStoreMock.isDirectAccessSupported()).thenReturn(true); - assertTrue(aggStore.isDirectAccessSupported()); + when(primaryStoreMock.isContentDirectUrlEnabled()).thenReturn(false); + when(secondaryStoreMock.isContentDirectUrlEnabled()).thenReturn(true); + assertTrue(aggStore.isContentDirectUrlEnabled()); - when(primaryStoreMock.isDirectAccessSupported()).thenReturn(true); - when(secondaryStoreMock.isDirectAccessSupported()).thenReturn(true); - assertTrue(aggStore.isDirectAccessSupported()); + when(primaryStoreMock.isContentDirectUrlEnabled()).thenReturn(true); + when(secondaryStoreMock.isContentDirectUrlEnabled()).thenReturn(true); + assertTrue(aggStore.isContentDirectUrlEnabled()); - when(primaryStoreMock.isDirectAccessSupported()).thenReturn(true); - when(secondaryStoreMock.isDirectAccessSupported()).thenReturn(false); - assertTrue(aggStore.isDirectAccessSupported()); + when(primaryStoreMock.isContentDirectUrlEnabled()).thenReturn(true); + when(secondaryStoreMock.isContentDirectUrlEnabled()).thenReturn(false); + assertTrue(aggStore.isContentDirectUrlEnabled()); } } @@ -229,15 +227,15 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes UnsupportedContentUrlException unsupportedContentUrlExc = new UnsupportedContentUrlException(aggStore, ""); // By default it is unsupported - DirectAccessUrl directAccessUrl = aggStore.getDirectAccessUrl("url", null); + DirectAccessUrl directAccessUrl = aggStore.requestContentDirectUrl("url", true, "anyfilename", 30L); assertNull(directAccessUrl); // Direct access not supported try { - when(primaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedExc); - aggStore.getDirectAccessUrl("urlDANotSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedExc); + aggStore.requestContentDirectUrl(eq("urlDANotSupported"), true, "anyfilename", 30L); fail(); } catch (UnsupportedOperationException e) @@ -247,9 +245,9 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes try { - when(primaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedContentUrlExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedExc); - aggStore.getDirectAccessUrl("urlDANotSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedExc); + aggStore.requestContentDirectUrl("urlDANotSupported", true, "anyfilename", 30L); fail(); } catch (UnsupportedOperationException e) @@ -259,9 +257,9 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes try { - when(primaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlDANotSupported"), any())).thenThrow(unsupportedContentUrlExc); - aggStore.getDirectAccessUrl("urlDANotSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlDANotSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + aggStore.requestContentDirectUrl("urlDANotSupported", true, "anyfilename", 30L); fail(); } catch (UnsupportedOperationException e) @@ -272,9 +270,9 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes // Content url not supported try { - when(primaryStoreMock.getDirectAccessUrl(eq("urlNotSupported"), any())).thenThrow(unsupportedContentUrlExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlNotSupported"), any())).thenThrow(unsupportedContentUrlExc); - aggStore.getDirectAccessUrl("urlNotSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlNotSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlNotSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + aggStore.requestContentDirectUrl("urlNotSupported", true, "anyfilename", 30L); fail(); } catch (UnsupportedContentUrlException e) @@ -282,31 +280,31 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes // Expected } - when(primaryStoreMock.getDirectAccessUrl(eq("urlPriSupported"), any())).thenReturn(new DirectAccessUrl()); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlPriSupported"), any())).thenThrow(unsupportedExc); - directAccessUrl = aggStore.getDirectAccessUrl("urlPriSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlPriSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlPriSupported"), any(), any(), any())).thenThrow(unsupportedExc); + directAccessUrl = aggStore.requestContentDirectUrl("urlPriSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); - when(primaryStoreMock.getDirectAccessUrl(eq("urlPriSupported"), any())).thenReturn(new DirectAccessUrl()); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlPriSupported"), any())).thenThrow(unsupportedContentUrlExc); - directAccessUrl = aggStore.getDirectAccessUrl("urlPriSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlPriSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlPriSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + directAccessUrl = aggStore.requestContentDirectUrl("urlPriSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); - when(primaryStoreMock.getDirectAccessUrl(eq("urlSecSupported"), any())).thenThrow(unsupportedExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlSecSupported"), any())).thenReturn(new DirectAccessUrl()); - directAccessUrl = aggStore.getDirectAccessUrl("urlSecSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlSecSupported"), any(), any(), any())).thenThrow(unsupportedExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlSecSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + directAccessUrl = aggStore.requestContentDirectUrl("urlSecSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); - when(primaryStoreMock.getDirectAccessUrl(eq("urlSecSupported"), any())).thenThrow(unsupportedContentUrlExc); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlSecSupported"), any())).thenReturn(new DirectAccessUrl()); - directAccessUrl = aggStore.getDirectAccessUrl("urlSecSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlSecSupported"), any(), any(), any())).thenThrow(unsupportedContentUrlExc); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlSecSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + directAccessUrl = aggStore.requestContentDirectUrl("urlSecSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); - when(primaryStoreMock.getDirectAccessUrl(eq("urlPriSupported"), any())).thenReturn(new DirectAccessUrl()); - when(secondaryStoreMock.getDirectAccessUrl(eq("urlSecSupported"), any())).thenReturn(new DirectAccessUrl()); - directAccessUrl = aggStore.getDirectAccessUrl("urlPriSupported", null); + when(primaryStoreMock.requestContentDirectUrl(eq("urlPriSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + when(secondaryStoreMock.requestContentDirectUrl(eq("urlSecSupported"), any(), any(), any())).thenReturn(new DirectAccessUrl()); + directAccessUrl = aggStore.requestContentDirectUrl("urlPriSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); - directAccessUrl = aggStore.getDirectAccessUrl("urlSecSupported", null); + directAccessUrl = aggStore.requestContentDirectUrl("urlSecSupported", true, "anyfilename", 30L); assertNotNull(directAccessUrl); } } diff --git a/repository/src/test/java/org/alfresco/repo/version/ContentServiceImplTest.java b/repository/src/test/java/org/alfresco/repo/version/ContentServiceImplTest.java index 5cebb8acaf..5423fd3077 100644 --- a/repository/src/test/java/org/alfresco/repo/version/ContentServiceImplTest.java +++ b/repository/src/test/java/org/alfresco/repo/version/ContentServiceImplTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,18 +25,16 @@ */ package org.alfresco.repo.version; -import org.alfresco.error.AlfrescoRuntimeException; +import static org.mockito.Mockito.when; +import static org.mockito.MockitoAnnotations.openMocks; + import org.alfresco.model.ContentModel; import org.alfresco.repo.content.ContentStore; -import org.alfresco.repo.content.EmptyContentReader; -import org.alfresco.repo.content.MimetypeMap; -import org.alfresco.repo.content.MimetypeMapTest; +import org.alfresco.repo.content.directurl.SystemWideDirectUrlConfig; import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.repository.ContentWriter; -import org.alfresco.service.cmr.repository.NoTransformerException; import org.alfresco.service.cmr.repository.NodeRef; -import org.alfresco.service.cmr.repository.TransformationOptions; import org.alfresco.service.cmr.version.Version; import org.alfresco.service.namespace.QName; import org.alfresco.test_category.OwnJVMTestsCategory; @@ -44,10 +42,11 @@ import org.junit.Before; import org.junit.Test; import org.junit.experimental.categories.Category; +import org.mockito.InjectMocks; +import org.mockito.Mock; import org.springframework.test.util.ReflectionTestUtils; import org.springframework.transaction.annotation.Transactional; -import java.util.Date; /** * Tests for getting content readers and writers. @@ -57,7 +56,9 @@ import java.util.Date; @Category(OwnJVMTestsCategory.class) @Transactional public class ContentServiceImplTest extends BaseVersionStoreTest -{ +{ + private static final Boolean ENABLED = Boolean.TRUE; + /** * Test content data */ @@ -66,9 +67,14 @@ public class ContentServiceImplTest extends BaseVersionStoreTest /** * The version content store */ + @InjectMocks private ContentService contentService; + private ContentStore contentStore; + @Mock + private SystemWideDirectUrlConfig mockSystemWideDirectUrlConfig; + @Before public void before() throws Exception { @@ -139,15 +145,17 @@ public class ContentServiceImplTest extends BaseVersionStoreTest } @Test - public void testWhenGetDirectAccessUrlIsNotSupported() + public void testWhenRequestContentDirectUrlIsNotSupported() { - assertFalse(contentStore.isDirectAccessSupported()); + openMocks(this); + when(mockSystemWideDirectUrlConfig.isEnabled()).thenReturn(ENABLED); + when(mockSystemWideDirectUrlConfig.getDefaultExpiryTimeInSec()).thenReturn(30L); + when(mockSystemWideDirectUrlConfig.getMaxExpiryTimeInSec()).thenReturn(300L); + + assertFalse(contentStore.isContentDirectUrlEnabled()); // Set the presigned URL to expire after one minute. - Date expiresAt = new Date(); - long expTimeMillis = expiresAt.getTime(); - expTimeMillis += 1000 * 60; - expiresAt.setTime(expTimeMillis); + Long validFor = 60L; try { @@ -155,7 +163,7 @@ public class ContentServiceImplTest extends BaseVersionStoreTest NodeRef nodeRef = this.dbNodeService .createNode(rootNodeRef, ContentModel.ASSOC_CHILDREN, QName.createQName("{test}MyNoContentNode"), TEST_TYPE_QNAME, this.nodeProperties).getChildRef(); - assertEquals(null, contentService.getDirectAccessUrl(nodeRef, expiresAt)); + assertNull(contentService.requestContentDirectUrl(nodeRef, true, validFor)); fail("nodeRef has no content"); } catch (IllegalArgumentException e) @@ -165,7 +173,7 @@ public class ContentServiceImplTest extends BaseVersionStoreTest try { - assertEquals(null, contentService.getDirectAccessUrl(null, null)); + assertNull(contentService.requestContentDirectUrl(null, true, null)); fail("nodeRef is null"); } catch (IllegalArgumentException e) @@ -176,7 +184,7 @@ public class ContentServiceImplTest extends BaseVersionStoreTest // Create a node with content NodeRef nodeRef = createNewVersionableNode(); - assertEquals(null, contentService.getDirectAccessUrl(nodeRef, null)); - assertEquals(null, contentService.getDirectAccessUrl(nodeRef, expiresAt)); + assertNull(contentService.requestContentDirectUrl(nodeRef, true, null)); + assertNull(contentService.requestContentDirectUrl(nodeRef, true, validFor)); } } From 33155c8d9286c66b7f79182446be4b68ba01e4e6 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 9 Aug 2021 15:37:20 +0000 Subject: [PATCH 019/177] [maven-release-plugin][skip ci] prepare release 11.99 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 752b0cee33..99a53b3258 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.99-SNAPSHOT + 11.99 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index bec45d255e..675a599443 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.99-SNAPSHOT + 11.99 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index f54f9561dd..fdec309751 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ea68254345..30b26fb70d 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.99-SNAPSHOT + 11.99 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 3145f45db5..1ffc84319d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.99-SNAPSHOT + 11.99 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f393ca331e..c56a10c33a 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.99-SNAPSHOT + 11.99 diff --git a/amps/pom.xml b/amps/pom.xml index e3f5ed20b5..3d4ec78a50 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a2c0e953f8..4c04a1ed02 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.99-SNAPSHOT + 11.99 diff --git a/core/pom.xml b/core/pom.xml index f21a0c83d6..097a64c2d9 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/data-model/pom.xml b/data-model/pom.xml index 2e073d7095..3bc84f37c3 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 131d973348..77594412d7 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 4de1e0fe4b..5ed9408dc9 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/pom.xml b/packaging/pom.xml index 3792345417..e79b761702 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 645eeee3b1..0965c58d75 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 896f6615cb..012a680d64 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 12b197704b..542f6ead12 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 47f317e04a..bcd49ded2f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index c8319ab9a5..0c2e2e68bc 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 2169070e4a..0790605855 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99-SNAPSHOT + 11.99 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6dfebc5522..acd161f163 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99-SNAPSHOT + 11.99 diff --git a/pom.xml b/pom.xml index 90a4c7dbe2..b1a410a92e 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.99-SNAPSHOT + 11.99 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.99 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 0a5e2e336c..f5722b4f4b 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 diff --git a/repository/pom.xml b/repository/pom.xml index 35a60444e0..c41ce183a4 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99-SNAPSHOT + 11.99 From 4f0b16b881efd8009aee7d9ac4f4a8da8875ed7f Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 9 Aug 2021 15:37:26 +0000 Subject: [PATCH 020/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 99a53b3258..2bc845e197 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.99 + 11.100-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 675a599443..02f1fa49c5 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.99 + 11.100-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index fdec309751..b156903d77 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 30b26fb70d..6bc280fb59 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.99 + 11.100-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 1ffc84319d..d5d0f5cbae 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.99 + 11.100-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index c56a10c33a..8d05305b76 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.99 + 11.100-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 3d4ec78a50..c0ea758d6f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4c04a1ed02..caabfb5723 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.99 + 11.100-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 097a64c2d9..32655303fc 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 3bc84f37c3..a48da39dea 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 77594412d7..ed45d2a561 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 5ed9408dc9..d499b9c3b2 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index e79b761702..8342e7549d 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 0965c58d75..5febda263f 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 012a680d64..6e4dd8e384 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 542f6ead12..e17cb34c5e 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index bcd49ded2f..3c5cb665e4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 0c2e2e68bc..9957291aab 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0790605855..daa891979e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.99 + 11.100-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index acd161f163..b503856a8b 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.99 + 11.100-SNAPSHOT diff --git a/pom.xml b/pom.xml index b1a410a92e..518137d121 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.99 + 11.100-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.99 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f5722b4f4b..721eb37c25 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index c41ce183a4..f570c49591 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.99 + 11.100-SNAPSHOT From 49bc40bdea56fef0e8a980726f04163aa55417c1 Mon Sep 17 00:00:00 2001 From: mikolajbrzezinski <86791239+mikolajbrzezinski@users.noreply.github.com> Date: Wed, 11 Aug 2021 07:03:35 -0400 Subject: [PATCH 021/177] Feature/acs 1789 update discovery api (#652) * Content Service changes both ACS-1781 and 1782 * Ignore test temporarily * ACS-1782 fix test * ACS-1782 Test and service updates * ACS-1781 Tests for Content Service and Store * ACS-1782 disable rest api DAU * Discovery API DAU Unit Tests - Asserts * Discovery API DAU Unit Tests * Discovery API DAU Unit Test Class * Discovery API DAU * ACS-1789 DiscoveryApi DAU * Discovery API DAU Unit Tests Renamed Methods * Integration Test Assert * Unit Test Imports Removal * Copyright Dates Updated * Copyright Dates Updated Co-authored-by: Sara Aspery --- .../api/discovery/DiscoveryApiWebscript.java | 27 +++++- .../rest/api/model/RepositoryInfo.java | 15 +++- .../alfresco/public-rest-context.xml | 9 ++ .../org/alfresco/AppContext02TestSuite.java | 3 +- .../DiscoveryApiWebscriptUnitTest.java | 87 +++++++++++++++++++ .../rest/api/tests/DiscoveryApiTest.java | 3 +- .../public-services-security-context.xml | 1 + 7 files changed, 140 insertions(+), 5 deletions(-) create mode 100644 remote-api/src/test/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscriptUnitTest.java diff --git a/remote-api/src/main/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscript.java b/remote-api/src/main/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscript.java index c163447fd0..b4ee326711 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscript.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscript.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,6 +25,7 @@ */ package org.alfresco.rest.api.discovery; +import org.alfresco.rest.api.impl.directurl.RestApiDirectUrlConfig; import org.alfresco.rest.api.model.DiscoveryDetails; import org.alfresco.rest.api.model.ModulePackage; import org.alfresco.rest.api.model.RepositoryInfo; @@ -41,6 +42,7 @@ import org.alfresco.service.cmr.audit.AuditService; import org.alfresco.service.cmr.module.ModuleDetails; import org.alfresco.service.cmr.module.ModuleService; import org.alfresco.service.cmr.quickshare.QuickShareService; +import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.thumbnail.ThumbnailService; import org.alfresco.service.descriptor.Descriptor; import org.alfresco.service.descriptor.DescriptorService; @@ -67,6 +69,8 @@ public class DiscoveryApiWebscript extends AbstractWebScript implements Recogniz private ModuleService moduleService; private ApiAssistant assistant; private ThumbnailService thumbnailService; + private RestApiDirectUrlConfig restApiDirectUrlConfig; + private ContentService contentService; private boolean enabled = true; private final static String DISABLED = "Not Implemented"; @@ -106,6 +110,16 @@ public class DiscoveryApiWebscript extends AbstractWebScript implements Recogniz this.thumbnailService = thumbnailService; } + public void setRestApiDirectUrlConfig(RestApiDirectUrlConfig restApiDirectUrlConfig) + { + this.restApiDirectUrlConfig = restApiDirectUrlConfig; + } + + public void setContentService(ContentService contentService) + { + this.contentService = contentService; + } + @Override public void afterPropertiesSet() throws Exception { @@ -116,6 +130,8 @@ public class DiscoveryApiWebscript extends AbstractWebScript implements Recogniz PropertyCheck.mandatory(this, "moduleService", moduleService); PropertyCheck.mandatory(this, "assistant", assistant); PropertyCheck.mandatory(this, "thumbnailService", thumbnailService); + PropertyCheck.mandatory(this, "restApiDirectUrlConfig", restApiDirectUrlConfig); + PropertyCheck.mandatory(this, "contentService", contentService); } @Override @@ -154,7 +170,8 @@ public class DiscoveryApiWebscript extends AbstractWebScript implements Recogniz .setReadOnly(repoAdminService.getUsage().isReadOnly()) .setAuditEnabled(auditService.isAuditEnabled()) .setQuickShareEnabled(quickShareService.isQuickShareEnabled()) - .setThumbnailGenerationEnabled(thumbnailService.getThumbnailsEnabled())); + .setThumbnailGenerationEnabled(thumbnailService.getThumbnailsEnabled()) + .setDirectAccessUrlEnabled(isContentDirectUrlEnabled())); } private List getModules() @@ -194,4 +211,10 @@ public class DiscoveryApiWebscript extends AbstractWebScript implements Recogniz throw new DisabledServiceException(DISABLED); } } + + protected boolean isContentDirectUrlEnabled() + { + return (restApiDirectUrlConfig.isEnabled() && contentService.isContentDirectUrlEnabled()); + } + } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/model/RepositoryInfo.java b/remote-api/src/main/java/org/alfresco/rest/api/model/RepositoryInfo.java index f65aa8c5c7..60bbadd32a 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/model/RepositoryInfo.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/model/RepositoryInfo.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -416,6 +416,7 @@ public class RepositoryInfo private boolean isAuditEnabled; private boolean isQuickShareEnabled; private boolean isThumbnailGenerationEnabled; + private boolean isDirectAccessUrlEnabled; public StatusInfo() { @@ -465,6 +466,17 @@ public class RepositoryInfo return this; } + public boolean getIsDirectAccessUrlEnabled() + { + return isDirectAccessUrlEnabled; + } + + public StatusInfo setDirectAccessUrlEnabled(boolean isDirectAccessUrlEnabled) + { + this.isDirectAccessUrlEnabled = isDirectAccessUrlEnabled; + return this; + } + @Override public String toString() { @@ -473,6 +485,7 @@ public class RepositoryInfo .append(", isAuditEnabled=").append(isAuditEnabled) .append(", isQuickShareEnabled=").append(isQuickShareEnabled) .append(", isThumbnailGenerationEnabled=").append(isThumbnailGenerationEnabled) + .append(", isDirectAccessUrlEnabled=").append(isDirectAccessUrlEnabled) .append(']'); return sb.toString(); } diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index 8c965e2a36..9f659bc8b2 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1063,12 +1063,21 @@ + + + + + + + + + diff --git a/remote-api/src/test/java/org/alfresco/AppContext02TestSuite.java b/remote-api/src/test/java/org/alfresco/AppContext02TestSuite.java index 9d18221209..b22987a9f2 100644 --- a/remote-api/src/test/java/org/alfresco/AppContext02TestSuite.java +++ b/remote-api/src/test/java/org/alfresco/AppContext02TestSuite.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2017 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -47,6 +47,7 @@ import org.junit.runners.Suite; org.alfresco.rest.api.tests.ActivitiesPostingTest.class, org.alfresco.rest.api.tests.AuthenticationsTest.class, org.alfresco.rest.api.tests.DiscoveryApiTest.class, + org.alfresco.rest.api.discovery.DiscoveryApiWebscriptUnitTest.class, org.alfresco.rest.api.tests.GroupsTest.class, org.alfresco.rest.api.tests.ModulePackagesApiTest.class, org.alfresco.rest.api.tests.NodeApiTest.class, diff --git a/remote-api/src/test/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscriptUnitTest.java b/remote-api/src/test/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscriptUnitTest.java new file mode 100644 index 0000000000..394c13a8f1 --- /dev/null +++ b/remote-api/src/test/java/org/alfresco/rest/api/discovery/DiscoveryApiWebscriptUnitTest.java @@ -0,0 +1,87 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.api.discovery; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertEquals; + +import org.alfresco.rest.api.impl.directurl.RestApiDirectUrlConfig; +import org.alfresco.service.cmr.repository.ContentService; +import org.junit.Test; + +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +/** + * @author Mikołaj Brzeziński + */ +public class DiscoveryApiWebscriptUnitTest +{ + private static final Boolean ENABLED = Boolean.TRUE; + private static final Boolean DISABLED = Boolean.FALSE; + + private DiscoveryApiWebscript discoveryApiWebscript = mock(DiscoveryApiWebscript.class); + private RestApiDirectUrlConfig restApiDirectUrlConfig = mock(RestApiDirectUrlConfig.class); + private ContentService contentService = mock(ContentService.class); + + public void mockedAsserts(boolean restEnabled, boolean systemwideEnabled) + { + when(contentService.isContentDirectUrlEnabled()).thenReturn(systemwideEnabled); + when(restApiDirectUrlConfig.isEnabled()).thenReturn(restEnabled); + assertEquals(systemwideEnabled, contentService.isContentDirectUrlEnabled()); + assertEquals(restEnabled, restApiDirectUrlConfig.isEnabled()); + when(discoveryApiWebscript.isContentDirectUrlEnabled()).thenReturn(restEnabled && systemwideEnabled); + } + + @Test + public void testEnabledConfig_RestEnabledAndSystemwideEnabled() + { + mockedAsserts(ENABLED,ENABLED); + assertTrue("Direct Acess URLs are enabled",discoveryApiWebscript.isContentDirectUrlEnabled()); + } + + @Test + public void testDisabledConfig_RestEnabledAndSystemwideDisabled() + { + mockedAsserts(ENABLED,DISABLED); + assertFalse("Direct Access URLs are disabled system-wide",discoveryApiWebscript.isContentDirectUrlEnabled()); + } + + @Test + public void testDisabledConfig_RestDisabledAndSystemwideDisabled() + { + mockedAsserts(DISABLED,DISABLED); + assertFalse("REST API Direct Access URLs are disabled and Direct Access URLs are disabled system-wide ",discoveryApiWebscript.isContentDirectUrlEnabled()); + } + + @Test + public void testDisabledConfig_RestDisabledAndSystemwideEnabled() + { + mockedAsserts(DISABLED,ENABLED); + assertFalse("REST API direct access URLs are disabled",discoveryApiWebscript.isContentDirectUrlEnabled()); + } + +} diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/DiscoveryApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/DiscoveryApiTest.java index 6cfbdb9885..f244401350 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/DiscoveryApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/DiscoveryApiTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -185,6 +185,7 @@ public class DiscoveryApiTest extends AbstractSingleNetworkSiteTest assertTrue(statusInfo.getIsAuditEnabled()); assertTrue(statusInfo.getIsQuickShareEnabled()); assertTrue(statusInfo.getIsThumbnailGenerationEnabled()); + assertFalse(statusInfo.getIsDirectAccessUrlEnabled()); // Check modules List modulePackageList = repositoryInfo.getModules(); diff --git a/repository/src/main/resources/alfresco/public-services-security-context.xml b/repository/src/main/resources/alfresco/public-services-security-context.xml index 0129319643..d0506a5e62 100644 --- a/repository/src/main/resources/alfresco/public-services-security-context.xml +++ b/repository/src/main/resources/alfresco/public-services-security-context.xml @@ -496,6 +496,7 @@ org.alfresco.service.cmr.repository.ContentService.getWriter=ACL_NODE.0.sys:base.WriteContent org.alfresco.service.cmr.repository.ContentService.getDirectAccessUrl=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.getTempWriter=ACL_ALLOW + org.alfresco.service.cmr.repository.ContentService.isContentDirectUrlEnabled=ACL_ALLOW org.alfresco.service.cmr.repository.ContentService.*=ACL_DENY From fa696cfec5c64f83ca593e8c58b3470203fb20fe Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 11:58:48 +0000 Subject: [PATCH 022/177] [maven-release-plugin][skip ci] prepare release 11.100 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 2bc845e197..f3a63ca36d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.100-SNAPSHOT + 11.100 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 02f1fa49c5..8c0137d743 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.100-SNAPSHOT + 11.100 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index b156903d77..fd3b5444b0 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 6bc280fb59..c9658b9d4b 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.100-SNAPSHOT + 11.100 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index d5d0f5cbae..0ea02cf911 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.100-SNAPSHOT + 11.100 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 8d05305b76..10abed02b5 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.100-SNAPSHOT + 11.100 diff --git a/amps/pom.xml b/amps/pom.xml index c0ea758d6f..125269e137 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index caabfb5723..af19ff5f6c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.100-SNAPSHOT + 11.100 diff --git a/core/pom.xml b/core/pom.xml index 32655303fc..7c07b9914e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/data-model/pom.xml b/data-model/pom.xml index a48da39dea..a3797c744f 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index ed45d2a561..6a7a246cf0 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d499b9c3b2..a38d08cfe2 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/pom.xml b/packaging/pom.xml index 8342e7549d..4747d55b14 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 5febda263f..a9b0777143 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 6e4dd8e384..c0144a1661 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index e17cb34c5e..247fba1973 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 3c5cb665e4..0f37afa923 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 9957291aab..4831c1a1b3 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index daa891979e..3723088604 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100-SNAPSHOT + 11.100 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index b503856a8b..648f3fc0fc 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100-SNAPSHOT + 11.100 diff --git a/pom.xml b/pom.xml index 518137d121..85a8805a88 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.100-SNAPSHOT + 11.100 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.100 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 721eb37c25..96970a9823 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 diff --git a/repository/pom.xml b/repository/pom.xml index f570c49591..5a4d73d1a9 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100-SNAPSHOT + 11.100 From e0751568db4b578ae534e34cf8ec5cb6ad61602c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 11:58:51 +0000 Subject: [PATCH 023/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index f3a63ca36d..7243ab1142 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.100 + 11.101-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8c0137d743..8a70f8d667 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.100 + 11.101-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index fd3b5444b0..326a56dad6 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index c9658b9d4b..b1ec10db03 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.100 + 11.101-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0ea02cf911..8609804339 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.100 + 11.101-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 10abed02b5..23705e5769 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.100 + 11.101-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 125269e137..a26efec435 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index af19ff5f6c..438fa389e7 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.100 + 11.101-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 7c07b9914e..370c66c14a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index a3797c744f..2f7aa4e541 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 6a7a246cf0..0b58c8f390 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index a38d08cfe2..41176b1509 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 4747d55b14..30fb97d212 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index a9b0777143..2a01b61b80 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index c0144a1661..8f1e96ed26 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 247fba1973..9485263457 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0f37afa923..e69201b702 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4831c1a1b3..877fafa4e3 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 3723088604..adc3e0ab88 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.100 + 11.101-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 648f3fc0fc..40f1032496 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.100 + 11.101-SNAPSHOT diff --git a/pom.xml b/pom.xml index 85a8805a88..d6b98e2196 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.100 + 11.101-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.100 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 96970a9823..cfc78cb241 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 5a4d73d1a9..ee352a49ba 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.100 + 11.101-SNAPSHOT From 254d29d45f5f40d9b8f76b2990ce63733ae460a1 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 11 Aug 2021 14:49:51 +0100 Subject: [PATCH 024/177] Feature/acs 1783 impl rest api for nodes (#653) * ACS-1783 Refactor Rest Api for Nodes * ACS-1783 Fix config default * ACS-1783 Updates for review * ACS-1783 Fix missing properties defaults * ACS-1783 Remove properties defaults * ACS-1783 Omit enabled default --- .../rest/api/DirectAccessUrlHelper.java | 66 +++++++++++++++++++ .../java/org/alfresco/rest/api/Nodes.java | 46 ++++++++++++- .../org/alfresco/rest/api/impl/NodesImpl.java | 17 ++++- .../api/model/DirectAccessUrlRequest.java | 46 +++++++++++++ .../rest/api/nodes/NodesEntityResource.java | 43 ++++++++++-- .../alfresco/public-rest-context.xml | 12 ++++ .../public-services-security-context.xml | 2 +- 7 files changed, 225 insertions(+), 7 deletions(-) create mode 100644 remote-api/src/main/java/org/alfresco/rest/api/DirectAccessUrlHelper.java create mode 100644 remote-api/src/main/java/org/alfresco/rest/api/model/DirectAccessUrlRequest.java diff --git a/remote-api/src/main/java/org/alfresco/rest/api/DirectAccessUrlHelper.java b/remote-api/src/main/java/org/alfresco/rest/api/DirectAccessUrlHelper.java new file mode 100644 index 0000000000..93d49d3c93 --- /dev/null +++ b/remote-api/src/main/java/org/alfresco/rest/api/DirectAccessUrlHelper.java @@ -0,0 +1,66 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.api; + +import org.alfresco.rest.api.impl.directurl.RestApiDirectUrlConfig; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; +import org.apache.commons.lang3.BooleanUtils; + +/** + * Helper class for retrieving direct access URLs options. + * + * @author Sara Aspery + */ +public class DirectAccessUrlHelper +{ + private RestApiDirectUrlConfig restApiDirectUrlConfig; + + public void setRestApiDirectUrlConfig(RestApiDirectUrlConfig restApiDirectUrlConfig) + { + this.restApiDirectUrlConfig = restApiDirectUrlConfig; + } + + public Long getDefaultExpiryTimeInSec() + { + if (restApiDirectUrlConfig ==null || !restApiDirectUrlConfig.isEnabled()) + { + throw new DisabledServiceException("Direct access url isn't available."); + } + + return restApiDirectUrlConfig.getDefaultExpiryTimeInSec(); + } + + public boolean getAttachment(DirectAccessUrlRequest directAccessUrlRequest) + { + boolean attachment = true; + if (directAccessUrlRequest != null ) + { + attachment = BooleanUtils.toBooleanDefaultIfNull(directAccessUrlRequest.isAttachment(), true); + } + return attachment; + } +} diff --git a/remote-api/src/main/java/org/alfresco/rest/api/Nodes.java b/remote-api/src/main/java/org/alfresco/rest/api/Nodes.java index 48f1332d83..6fa9272e3d 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/Nodes.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/Nodes.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2017 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -44,6 +44,7 @@ import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; import org.alfresco.service.cmr.repository.ChildAssociationRef; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.namespace.QName; @@ -266,6 +267,49 @@ public interface Nodes */ Node unlock(String nodeId, Parameters parameters); + /** + * Gets a presigned URL to directly access content. + * @param nodeId The node id for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}. + * @return A direct access {@code URL} object for the content. + */ + default DirectAccessUrl requestContentDirectUrl(String nodeId, boolean attachment) + { + return requestContentDirectUrl(validateNode(nodeId), attachment); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeRef The node reference for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}. + * @return A direct access {@code URL} object for the content. + */ + default DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment) + { + return requestContentDirectUrl(nodeRef, attachment, null); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeId The node id for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}. + * @param validFor The time at which the direct access {@code URL} will expire. + * @return A direct access {@code URL} object for the content. + */ + default DirectAccessUrl requestContentDirectUrl(String nodeId, boolean attachment, Long validFor) + { + return requestContentDirectUrl(validateNode(nodeId), attachment, validFor); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeRef The node reference for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}. + * @param validFor The time at which the direct access {@code URL} will expire. + * @return A direct access {@code URL} object for the content. + */ + DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment, Long validFor); + /** * Convert from node properties (map of QName to Serializable) retrieved from * the respository to a map of String to Object that can be formatted/expressed diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/NodesImpl.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/NodesImpl.java index ed8bb25a44..1f88b43ca7 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/NodesImpl.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/NodesImpl.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -139,6 +139,7 @@ import org.alfresco.service.cmr.repository.ContentData; import org.alfresco.service.cmr.repository.ContentIOException; import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.repository.ContentWriter; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.DuplicateChildNodeNameException; import org.alfresco.service.cmr.repository.InvalidNodeRefException; import org.alfresco.service.cmr.repository.MimetypeService; @@ -3413,6 +3414,20 @@ public class NodesImpl implements Nodes return getFolderOrDocument(nodeId, parameters); } + /** + * {@inheritDoc} + */ + @Override + public DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, boolean attachment, Long validFor) + { + DirectAccessUrl directAccessUrl = contentService.requestContentDirectUrl(nodeRef, attachment, validFor); + if (directAccessUrl == null) + { + throw new DisabledServiceException("Direct access url isn't available."); + } + return directAccessUrl; + } + /** * Checks if same permission is sent more than once * @param locallySetPermissions diff --git a/remote-api/src/main/java/org/alfresco/rest/api/model/DirectAccessUrlRequest.java b/remote-api/src/main/java/org/alfresco/rest/api/model/DirectAccessUrlRequest.java new file mode 100644 index 0000000000..6dde68adb2 --- /dev/null +++ b/remote-api/src/main/java/org/alfresco/rest/api/model/DirectAccessUrlRequest.java @@ -0,0 +1,46 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.api.model; + +/** + * Direct Access URL request. + * + * @author Sara Aspery + */ +public class DirectAccessUrlRequest +{ + private Boolean attachment; + + public Boolean isAttachment() + { + return attachment; + } + + public void setAttachment(Boolean attachment) + { + this.attachment = attachment; + } +} diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodesEntityResource.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodesEntityResource.java index 7d7777aa31..c7cf7bca95 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodesEntityResource.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodesEntityResource.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,11 +25,13 @@ */ package org.alfresco.rest.api.nodes; +import javax.servlet.http.HttpServletResponse; import java.io.InputStream; -import javax.servlet.http.HttpServletResponse; - +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; +import org.alfresco.rest.api.DirectAccessUrlHelper; import org.alfresco.rest.api.Nodes; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.LockInfo; import org.alfresco.rest.api.model.Node; import org.alfresco.rest.api.model.NodeTarget; @@ -37,6 +39,8 @@ import org.alfresco.rest.framework.BinaryProperties; import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; import org.alfresco.rest.framework.WebApiParam; +import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException; import org.alfresco.rest.framework.resource.EntityResource; import org.alfresco.rest.framework.resource.actions.interfaces.BinaryResourceAction; @@ -45,7 +49,10 @@ import org.alfresco.rest.framework.resource.content.BasicContentInfo; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.Parameters; import org.alfresco.rest.framework.webscripts.WithResponse; +import org.alfresco.service.cmr.repository.DirectAccessUrl; +import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.util.ParameterCheck; + import org.springframework.beans.factory.InitializingBean; /** @@ -61,13 +68,19 @@ public class NodesEntityResource implements BinaryResourceAction.Read, BinaryResourceAction.Update, InitializingBean { private Nodes nodes; + private DirectAccessUrlHelper directAccessUrlHelper; public void setNodes(Nodes nodes) { this.nodes = nodes; } - @Override + public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper) + { + this.directAccessUrlHelper = directAccessUrlHelper; + } + + @Override public void afterPropertiesSet() { ParameterCheck.mandatory("nodes", this.nodes); @@ -189,5 +202,27 @@ public class NodesEntityResource implements return nodes.unlock(nodeId, parameters); } + @Operation("requestNodeDirectAccessUrl") + @WebApiParam(name = "requestNodeDirectAccessUrl", title = "Request direct access url", description = "Request direct access url", kind = ResourceParameter.KIND.HTTP_BODY_OBJECT) + @WebApiDescription(title = "Request content url", + description="Generates a direct access URL.", + successStatus = HttpServletResponse.SC_OK) + public DirectAccessUrl requestContentDirectUrl(String nodeId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) + { + boolean attachment = directAccessUrlHelper.getAttachment(directAccessUrlRequest); + Long validFor = directAccessUrlHelper.getDefaultExpiryTimeInSec(); + NodeRef nodeRef = nodes.validateNode(nodeId); + + DirectAccessUrl directAccessUrl; + try + { + directAccessUrl = nodes.requestContentDirectUrl(nodeRef, attachment, validFor); + } + catch (DirectAccessUrlDisabledException ex) + { + throw new DisabledServiceException(ex.getMessage()); + } + return directAccessUrl; + } } diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index 9f659bc8b2..d0b9b18e7b 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -942,8 +942,13 @@ + + + + + @@ -1067,6 +1072,13 @@ + + + + + + + diff --git a/repository/src/main/resources/alfresco/public-services-security-context.xml b/repository/src/main/resources/alfresco/public-services-security-context.xml index d0506a5e62..c3c0aee115 100644 --- a/repository/src/main/resources/alfresco/public-services-security-context.xml +++ b/repository/src/main/resources/alfresco/public-services-security-context.xml @@ -494,7 +494,7 @@ org.alfresco.service.cmr.repository.ContentService.getRawReader=ACL_METHOD.ROLE_ADMINISTRATOR org.alfresco.service.cmr.repository.ContentService.getReader=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.getWriter=ACL_NODE.0.sys:base.WriteContent - org.alfresco.service.cmr.repository.ContentService.getDirectAccessUrl=ACL_NODE.0.sys:base.ReadContent + org.alfresco.service.cmr.repository.ContentService.requestContentDirectUrl=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.getTempWriter=ACL_ALLOW org.alfresco.service.cmr.repository.ContentService.isContentDirectUrlEnabled=ACL_ALLOW org.alfresco.service.cmr.repository.ContentService.*=ACL_DENY From dcf564d3ba7f6469683acbfec2a958f9b2d96961 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 11 Aug 2021 16:24:21 +0100 Subject: [PATCH 025/177] ACS-1783 restore contexts (#655) --- .../src/main/resources/alfresco/public-rest-context.xml | 7 ------- .../alfresco/public-services-security-context.xml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index d0b9b18e7b..ea1e191fdc 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1072,13 +1072,6 @@ - - - - - - - diff --git a/repository/src/main/resources/alfresco/public-services-security-context.xml b/repository/src/main/resources/alfresco/public-services-security-context.xml index c3c0aee115..b6e32f9d37 100644 --- a/repository/src/main/resources/alfresco/public-services-security-context.xml +++ b/repository/src/main/resources/alfresco/public-services-security-context.xml @@ -494,8 +494,8 @@ org.alfresco.service.cmr.repository.ContentService.getRawReader=ACL_METHOD.ROLE_ADMINISTRATOR org.alfresco.service.cmr.repository.ContentService.getReader=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.getWriter=ACL_NODE.0.sys:base.WriteContent - org.alfresco.service.cmr.repository.ContentService.requestContentDirectUrl=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.getTempWriter=ACL_ALLOW + org.alfresco.service.cmr.repository.ContentService.requestContentDirectUrl=ACL_NODE.0.sys:base.ReadContent org.alfresco.service.cmr.repository.ContentService.isContentDirectUrlEnabled=ACL_ALLOW org.alfresco.service.cmr.repository.ContentService.*=ACL_DENY From b066520e0ece2c4d2df0ebb96f0ea9044f8e18aa Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 17:05:26 +0000 Subject: [PATCH 026/177] [maven-release-plugin][skip ci] prepare release 11.101 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7243ab1142..9fd1247487 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.101-SNAPSHOT + 11.101 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8a70f8d667..86368156ee 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.101-SNAPSHOT + 11.101 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 326a56dad6..bf26e99497 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index b1ec10db03..d306098ec1 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.101-SNAPSHOT + 11.101 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8609804339..32f587eeb6 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.101-SNAPSHOT + 11.101 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 23705e5769..ff19e89d0f 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.101-SNAPSHOT + 11.101 diff --git a/amps/pom.xml b/amps/pom.xml index a26efec435..7d050e2ee7 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 438fa389e7..066a3fa7ea 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.101-SNAPSHOT + 11.101 diff --git a/core/pom.xml b/core/pom.xml index 370c66c14a..3a6f8b787c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/data-model/pom.xml b/data-model/pom.xml index 2f7aa4e541..7a7a3e5b76 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 0b58c8f390..b9d46ac18b 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 41176b1509..bff982be7c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/pom.xml b/packaging/pom.xml index 30fb97d212..0610a4789c 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2a01b61b80..4f187d5b5f 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 8f1e96ed26..d34356d01b 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 9485263457..7fc6b9427c 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index e69201b702..b61031401f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 877fafa4e3..0d557e3a0b 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index adc3e0ab88..07d7b8e1e7 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101-SNAPSHOT + 11.101 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 40f1032496..fa974c9713 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101-SNAPSHOT + 11.101 diff --git a/pom.xml b/pom.xml index d6b98e2196..73858aa979 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.101-SNAPSHOT + 11.101 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.101 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index cfc78cb241..9b3686effe 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 diff --git a/repository/pom.xml b/repository/pom.xml index ee352a49ba..a5475f4679 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101-SNAPSHOT + 11.101 From 4be9aad5f6e7f9155c43d134ed9cc09b72b1c528 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 17:05:29 +0000 Subject: [PATCH 027/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 9fd1247487..e71e25d55f 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.101 + 11.102-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 86368156ee..201419fc10 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.101 + 11.102-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index bf26e99497..48cf4a14df 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index d306098ec1..a189bf5db7 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.101 + 11.102-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 32f587eeb6..25c707141e 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.101 + 11.102-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index ff19e89d0f..dc62ca79c5 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.101 + 11.102-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 7d050e2ee7..742c7cee18 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 066a3fa7ea..3fd1d94965 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.101 + 11.102-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 3a6f8b787c..aadb724714 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 7a7a3e5b76..1505fc137d 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index b9d46ac18b..89d171ad5a 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index bff982be7c..a1056c8fd8 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 0610a4789c..322bb610ba 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 4f187d5b5f..9670181f99 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d34356d01b..9e51f7d32e 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 7fc6b9427c..4595ddc568 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index b61031401f..42d6c26db3 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 0d557e3a0b..f481ccf4bd 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 07d7b8e1e7..c97b8ad54d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.101 + 11.102-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index fa974c9713..e25252ce43 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.101 + 11.102-SNAPSHOT diff --git a/pom.xml b/pom.xml index 73858aa979..810f0320f5 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.101 + 11.102-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.101 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 9b3686effe..f696a4e958 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a5475f4679..957883b394 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.101 + 11.102-SNAPSHOT From 597056b1c4709ba0ce0f77a3cbb84c4962aaccdc Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 11 Aug 2021 19:51:11 +0100 Subject: [PATCH 028/177] ACS-1830 - Test requestContentDirectUrl for Nodes REST API endpoint (#650) (#656) * ACS-1830 - Test requestContentDirectUrl for Nodes REST API endpoint -add test for RequestContentDirectUrl -update the license headers to 2021 Co-authored-by: Iulian Aftene --- .../rest/api/tests/AbstractBaseApiTest.java | 10 ++++++- .../alfresco/rest/api/tests/NodeApiTest.java | 30 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java index 4938ecf42e..5ca4b778a2 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2020 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -68,6 +68,7 @@ import org.junit.After; import org.junit.Before; import org.junit.experimental.categories.Category; import org.springframework.util.ResourceUtils; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import java.io.ByteArrayInputStream; import java.io.File; @@ -136,6 +137,8 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi protected static PersonService personService; protected final String RUNID = System.currentTimeMillis()+""; + + private static final String REQUEST_NODE_DIRECT_ACCESS_URL = "requestNodeDirectAccessUrl"; @Override @Before @@ -211,6 +214,11 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi setRequestContext(null); } + protected String getRequestContentDirectUrl(String nodeId) + { + return URL_NODES + "/" + nodeId + "/" + REQUEST_NODE_DIRECT_ACCESS_URL; + } + /** * The api scope. either public or private * diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java index 247a60df9b..a5bdef067f 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -6250,5 +6250,33 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest assertFalse((Boolean) constraintParameters.get("requiresMatch")); } + @Test + public void testRequestContentDirectUrl() throws Exception + { + setRequestContext(user1); + + // Use existing test file + String fileName = "quick-1.txt"; + File file = getResourceFile(fileName); + + MultiPartBuilder multiPartBuilder = MultiPartBuilder.create().setFileData(new MultiPartBuilder.FileData(fileName, file)); + MultiPartBuilder.MultiPartRequest reqBody = multiPartBuilder.build(); + + // Upload text content + HttpResponse response = post(getNodeChildrenUrl(Nodes.PATH_MY), reqBody.getBody(), null, reqBody.getContentType(), 201); + Document document = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + + final String contentNodeId = document.getId(); + + // Check the upload response + assertEquals(fileName, document.getName()); + ContentInfo contentInfo = document.getContent(); + assertNotNull(contentInfo); + assertEquals(MimetypeMap.MIMETYPE_TEXT_PLAIN, contentInfo.getMimeType()); + + + getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); + } + } From ad97dcd6f48b5dba1b747c7233e72327a2487eda Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 20:01:22 +0000 Subject: [PATCH 029/177] [maven-release-plugin][skip ci] prepare release 11.102 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index e71e25d55f..90f2503b2b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.102-SNAPSHOT + 11.102 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 201419fc10..b452231b9e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.102-SNAPSHOT + 11.102 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 48cf4a14df..b27cbc05d6 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a189bf5db7..42db48f43a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.102-SNAPSHOT + 11.102 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 25c707141e..beb6ac7ccb 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.102-SNAPSHOT + 11.102 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index dc62ca79c5..069b746605 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.102-SNAPSHOT + 11.102 diff --git a/amps/pom.xml b/amps/pom.xml index 742c7cee18..6a3134db52 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3fd1d94965..b7b48996b6 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.102-SNAPSHOT + 11.102 diff --git a/core/pom.xml b/core/pom.xml index aadb724714..24565b93ef 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/data-model/pom.xml b/data-model/pom.xml index 1505fc137d..1e18034530 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 89d171ad5a..68165a4e12 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index a1056c8fd8..b107fcf7d0 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/pom.xml b/packaging/pom.xml index 322bb610ba..4735ab35cc 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 9670181f99..1a738264ba 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 9e51f7d32e..f1dc2aa0ad 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4595ddc568..ae262962df 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 42d6c26db3..c700807e44 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f481ccf4bd..7f31b6a468 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index c97b8ad54d..5d76d4d15d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102-SNAPSHOT + 11.102 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index e25252ce43..fd3add3ab1 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102-SNAPSHOT + 11.102 diff --git a/pom.xml b/pom.xml index 810f0320f5..fcd9f71c34 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.102-SNAPSHOT + 11.102 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.102 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f696a4e958..8579db7299 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 diff --git a/repository/pom.xml b/repository/pom.xml index 957883b394..c4f74249ec 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102-SNAPSHOT + 11.102 From 5d3f3f866ec3cdcaed741596afca824c3b83f679 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 11 Aug 2021 20:01:25 +0000 Subject: [PATCH 030/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 90f2503b2b..141d6fbf6e 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.102 + 11.103-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b452231b9e..7fab651c9a 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.102 + 11.103-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index b27cbc05d6..d77fcb320d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 42db48f43a..0edca739ea 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.102 + 11.103-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index beb6ac7ccb..fe1bcd9e11 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.102 + 11.103-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 069b746605..04ac4f3952 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.102 + 11.103-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 6a3134db52..61c7438418 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index b7b48996b6..38a76a387e 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.102 + 11.103-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 24565b93ef..2378344bb4 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 1e18034530..3da856dd2d 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 68165a4e12..0838921ca3 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b107fcf7d0..b85b611091 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 4735ab35cc..703b3177d4 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 1a738264ba..0ede0e1947 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f1dc2aa0ad..33cac1e92c 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ae262962df..b9b5d8e354 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index c700807e44..d7ec244526 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 7f31b6a468..c56ee618f1 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5d76d4d15d..f36c2f43b4 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.102 + 11.103-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index fd3add3ab1..6878f8da93 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.102 + 11.103-SNAPSHOT diff --git a/pom.xml b/pom.xml index fcd9f71c34..2f3ea9314e 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.102 + 11.103-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.102 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 8579db7299..2437297c63 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index c4f74249ec..14f9cbd643 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.102 + 11.103-SNAPSHOT From 6f1e35217b53a1a50052b5da874eb0bd38cde033 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 12 Aug 2021 07:10:59 +0100 Subject: [PATCH 031/177] Feature/acs 1785 impl rest api for versions (#654) * ACS-1783 Refactor Rest Api for Nodes * ACS-1783 Fix config default * ACS-1783 Updates for review * ACS-1785 Impl Rest Api for versions * ACS-1783 Fix missing properties defaults * ACS-1785 Minor code tidy up * ACS-1783 Remove properties defaults * ACS-1783 Omit enabled default * ACS-1785 Fix public-rest-context --- .../rest/api/nodes/NodeVersionsRelation.java | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionsRelation.java index 6b74e4293f..b4bfc20417 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionsRelation.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -26,16 +26,22 @@ package org.alfresco.rest.api.nodes; import org.alfresco.model.ContentModel; +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; import org.alfresco.repo.node.integrity.IntegrityException; import org.alfresco.repo.policy.BehaviourFilter; import org.alfresco.repo.version.Version2Model; import org.alfresco.repo.version.VersionModel; +import org.alfresco.rest.api.DirectAccessUrlHelper; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.Node; import org.alfresco.rest.api.model.UserInfo; import org.alfresco.rest.api.model.VersionOptions; import org.alfresco.rest.framework.BinaryProperties; import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; +import org.alfresco.rest.framework.WebApiParam; +import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException; import org.alfresco.rest.framework.core.exceptions.PermissionDeniedException; import org.alfresco.rest.framework.resource.RelationshipResource; @@ -46,6 +52,7 @@ import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; import org.alfresco.rest.framework.webscripts.WithResponse; import org.alfresco.service.cmr.coci.CheckOutCheckInService; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.security.AccessStatus; import org.alfresco.service.cmr.security.PermissionService; @@ -80,6 +87,12 @@ public class NodeVersionsRelation extends AbstractNodeRelation implements { protected VersionService versionService; protected BehaviourFilter behaviourFilter; + private DirectAccessUrlHelper directAccessUrlHelper; + + public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper) + { + this.directAccessUrlHelper = directAccessUrlHelper; + } @Override public void afterPropertiesSet() @@ -288,4 +301,32 @@ public class NodeVersionsRelation extends AbstractNodeRelation implements } return null; } + + @Operation("requestNodeDirectAccessUrl") + @WebApiParam (name = "requestNodeDirectAccessUrl", title = "Request direct access url", description = "Request direct access url", kind = ResourceParameter.KIND.HTTP_BODY_OBJECT) + @WebApiDescription(title = "Request content url", + description="Generates a direct access URL.", + successStatus = HttpServletResponse.SC_OK) + public DirectAccessUrl requestContentDirectUrl(String nodeId, String versionId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) + { + boolean attachment = directAccessUrlHelper.getAttachment(directAccessUrlRequest); + Long validFor = directAccessUrlHelper.getDefaultExpiryTimeInSec(); + Version version = findVersion(nodeId, versionId); + if (version != null) + { + NodeRef versionNodeRef = version.getFrozenStateNodeRef(); + + DirectAccessUrl directAccessUrl; + try + { + directAccessUrl = nodes.requestContentDirectUrl(versionNodeRef, attachment, validFor); + } + catch (DirectAccessUrlDisabledException ex) + { + throw new DisabledServiceException(ex.getMessage()); + } + return directAccessUrl; + } + throw new EntityNotFoundException(nodeId+"-"+versionId); + } } From 5b539b4248830721e24be3980bcabfed80d08980 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 12 Aug 2021 06:52:54 +0000 Subject: [PATCH 032/177] [maven-release-plugin][skip ci] prepare release 11.103 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 141d6fbf6e..87d223dc95 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.103-SNAPSHOT + 11.103 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 7fab651c9a..1057ff3cfd 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.103-SNAPSHOT + 11.103 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index d77fcb320d..ff6d9b6dde 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 0edca739ea..ccb3a3a2d8 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.103-SNAPSHOT + 11.103 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index fe1bcd9e11..f5e33a37fa 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.103-SNAPSHOT + 11.103 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 04ac4f3952..4c3e8883eb 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.103-SNAPSHOT + 11.103 diff --git a/amps/pom.xml b/amps/pom.xml index 61c7438418..5cf8941b59 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 38a76a387e..4de2dcc4ed 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.103-SNAPSHOT + 11.103 diff --git a/core/pom.xml b/core/pom.xml index 2378344bb4..abcef139bb 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/data-model/pom.xml b/data-model/pom.xml index 3da856dd2d..345c49649c 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 0838921ca3..6ec1b7a923 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b85b611091..b816f98b72 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/pom.xml b/packaging/pom.xml index 703b3177d4..adbcb9e9f3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 0ede0e1947..42fddc31cf 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 33cac1e92c..c5f4c391b2 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index b9b5d8e354..11078b38ad 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index d7ec244526..2fe7463cd9 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index c56ee618f1..4bc64c5888 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index f36c2f43b4..86d4712bfd 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103-SNAPSHOT + 11.103 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6878f8da93..ca7fd59816 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103-SNAPSHOT + 11.103 diff --git a/pom.xml b/pom.xml index 2f3ea9314e..4b22474f00 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.103-SNAPSHOT + 11.103 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.103 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 2437297c63..e57ac36bc6 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 diff --git a/repository/pom.xml b/repository/pom.xml index 14f9cbd643..7b8053d9d1 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103-SNAPSHOT + 11.103 From c4dcbba707db9fe2c5b0d95dfee04088bea28137 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 12 Aug 2021 06:52:56 +0000 Subject: [PATCH 033/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 87d223dc95..5570c995bf 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.103 + 11.104-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 1057ff3cfd..f7d4f6ad49 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.103 + 11.104-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index ff6d9b6dde..1465f0e054 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ccb3a3a2d8..03963385e3 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.103 + 11.104-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index f5e33a37fa..6922b7fde0 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.103 + 11.104-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 4c3e8883eb..8e550fc01f 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.103 + 11.104-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 5cf8941b59..d6a6d80fe0 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4de2dcc4ed..15b23af3ab 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.103 + 11.104-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index abcef139bb..047a0d23df 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 345c49649c..6d3f6fb88d 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 6ec1b7a923..7db1d6ff7f 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b816f98b72..7742a97d6a 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index adbcb9e9f3..dbdffe942f 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 42fddc31cf..132a2b6540 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index c5f4c391b2..99530cda41 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 11078b38ad..a1c9ad3570 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 2fe7463cd9..bd97db81ce 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4bc64c5888..c21f1b9919 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 86d4712bfd..b622834c6f 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.103 + 11.104-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index ca7fd59816..4d851b861b 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.103 + 11.104-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4b22474f00..b75b26573d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.103 + 11.104-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.103 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e57ac36bc6..0555e55f43 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 7b8053d9d1..91ac0630ff 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.103 + 11.104-SNAPSHOT From 3530e3dc3b9ac13c1bfd40360a318e58b4695bfd Mon Sep 17 00:00:00 2001 From: tiagosalvado10 <9038083+tiagosalvado10@users.noreply.github.com> Date: Thu, 12 Aug 2021 14:56:11 +0100 Subject: [PATCH 034/177] [PRODSEC-5254] Bump commons-compress to 1.21 (#658) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b75b26573d..148c0e8d0d 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ 3.4.2.Final 3.7.4 5.16.1 - 1.20 + 1.21 1.2.5 4.1.0 3.38.0 From b77961391089865eb9b9d64853b331792e7dfb9c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 12 Aug 2021 15:40:26 +0000 Subject: [PATCH 035/177] [maven-release-plugin][skip ci] prepare release 11.104 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5570c995bf..01be7411d8 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.104-SNAPSHOT + 11.104 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index f7d4f6ad49..c30f764394 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.104-SNAPSHOT + 11.104 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 1465f0e054..2c17569e6e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 03963385e3..cf6294f375 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.104-SNAPSHOT + 11.104 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 6922b7fde0..c6cd60129d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.104-SNAPSHOT + 11.104 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 8e550fc01f..7b19b7248f 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.104-SNAPSHOT + 11.104 diff --git a/amps/pom.xml b/amps/pom.xml index d6a6d80fe0..64496a96dd 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 15b23af3ab..290d09b847 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.104-SNAPSHOT + 11.104 diff --git a/core/pom.xml b/core/pom.xml index 047a0d23df..45b3c2332a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/data-model/pom.xml b/data-model/pom.xml index 6d3f6fb88d..b291d093ab 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 7db1d6ff7f..28b9ae3b21 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 7742a97d6a..0d0588063d 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/pom.xml b/packaging/pom.xml index dbdffe942f..c2afb43f63 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 132a2b6540..60dac0f335 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 99530cda41..835d97b66a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index a1c9ad3570..b70171d429 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index bd97db81ce..e7a99658c7 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index c21f1b9919..870a491a88 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b622834c6f..5f8e663417 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104-SNAPSHOT + 11.104 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 4d851b861b..f2a4b58f0c 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104-SNAPSHOT + 11.104 diff --git a/pom.xml b/pom.xml index 148c0e8d0d..c68d298297 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.104-SNAPSHOT + 11.104 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.104 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 0555e55f43..c6b384f005 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 diff --git a/repository/pom.xml b/repository/pom.xml index 91ac0630ff..89baf91478 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104-SNAPSHOT + 11.104 From 456e442438ab49374ef489a6b3f991e58e5fcc69 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 12 Aug 2021 15:40:29 +0000 Subject: [PATCH 036/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 01be7411d8..71ccd59529 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.104 + 11.105-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index c30f764394..e87874300c 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.104 + 11.105-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 2c17569e6e..108dcc2b3a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index cf6294f375..9472d3f9de 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.104 + 11.105-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c6cd60129d..c3c636878b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.104 + 11.105-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7b19b7248f..6da2790efe 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.104 + 11.105-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 64496a96dd..19b0a73d46 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 290d09b847..c3e8daf05d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.104 + 11.105-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 45b3c2332a..1c3c05df1c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index b291d093ab..89f06d7bc9 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 28b9ae3b21..054428b6f5 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 0d0588063d..15d69ea770 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index c2afb43f63..c4360347b6 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 60dac0f335..d0a186b887 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 835d97b66a..376cbd9348 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index b70171d429..85f38bbf38 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index e7a99658c7..ffd578b6d8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 870a491a88..aa14179787 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5f8e663417..b10f8ed8d9 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.104 + 11.105-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index f2a4b58f0c..d4391f5b38 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.104 + 11.105-SNAPSHOT diff --git a/pom.xml b/pom.xml index c68d298297..4aac78a06b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.104 + 11.105-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.104 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index c6b384f005..94315056be 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 89baf91478..be2d8e213e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.104 + 11.105-SNAPSHOT From 8b6dfa47b8a2975e19c2393bfdf7e78397892f84 Mon Sep 17 00:00:00 2001 From: brijmohan1 <86603212+brijmohan1@users.noreply.github.com> Date: Sun, 15 Aug 2021 14:30:08 +0530 Subject: [PATCH 037/177] Fix/rm 6941 retention action on frozen nodes (#640) * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 Changes for retention action on frozen nodes [ags] * RM-6941 added slf4j and junit test [ags] * RM-6941 added slf4j and junit test [ags] * RM-6941 added slf4j and junit test [ags] * RM-6941 added slf4j and junit test [ags] * RM-6941 added slf4j and test [ags] * RM-6941 added slf4j and test [ags] * RM-6941 added slf4j and test [ags] * RM-6941 added slf4j and test [ags] * RM-6941 added slf4j and test [ags] * RM-6941 code change for test case [ags] * RM-6941 code change for test case [ags] * RM-6941 code change for test case [ags] * RM-6941 change lombok dependency scope to compile [ags] * Revert "RM-6941 change lombok dependency scope to compile [ags]" This reverts commit 4cee68e8 * RM-6941 change lombok dependency scope to compile [ags] * RM-6941 revert change lombok dependency scope to compile [ags] * RM-6941 revert change lombok dependency scope to compile [ags] --- .../PreventActionsOnFrozenContentTests.java | 6 +- .../messages/action-service.properties | 2 +- .../org_alfresco_module_rm/rm-job-context.xml | 4 +- .../rm-service-context.xml | 10 ++ .../rm-community/rm-community-repo/pom.xml | 5 + .../RecordsManagementActionServiceImpl.java | 59 ++++++--- .../disposition/DispositionServiceImpl.java | 2 - .../freeze/FreezeService.java | 8 ++ .../freeze/FreezeServiceImpl.java | 48 ++++++++ .../job/DispositionLifecycleJobExecuter.java | 114 +++++------------- .../legacy/service/FreezeServiceImplTest.java | 42 ++++++- amps/module-info.java | 5 + pom.xml | 1 + 13 files changed, 185 insertions(+), 121 deletions(-) create mode 100644 amps/module-info.java diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/PreventActionsOnFrozenContentTests.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/PreventActionsOnFrozenContentTests.java index 62926a3930..f36627241e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/PreventActionsOnFrozenContentTests.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/PreventActionsOnFrozenContentTests.java @@ -67,7 +67,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; - +import static org.apache.commons.httpclient.HttpStatus.SC_INTERNAL_SERVER_ERROR; /** * API tests to check actions on frozen content * @@ -309,11 +309,11 @@ public class PreventActionsOnFrozenContentTests extends BaseRMRestTest STEP("Execute the retain action"); rmRolesAndActionsAPI.executeAction(getAdminUser().getUsername(), getAdminUser().getPassword(), record.getName(), - RM_ACTIONS.END_RETENTION); + RM_ACTIONS.END_RETENTION, null, SC_INTERNAL_SERVER_ERROR); STEP("Check the record search disposition properties"); Record recordUpdated = getRestAPIFactory().getRecordsAPI().getRecord(record.getId()); - assertTrue(recordUpdated.getProperties().getRecordSearchDispositionActionName().contains(RM_ACTIONS.DESTROY.getAction())); + assertTrue(recordUpdated.getProperties().getRecordSearchDispositionActionName().contains(RM_ACTIONS.END_RETENTION.getAction())); assertTrue(recordUpdated.getProperties().getRecordSearchDispositionPeriod().contains("immediately")); } diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service.properties index eeac19f2e6..dae1c555e2 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=You can't create items i rm.action.create.transfer.child-error-message=You can't create items in Transfer Folders. rm.action.create.record.folder.child-error-message=You can only create records in record folders and this was a {0}. rm.action.transfer-non-editable=You can't edit transfer folder or container metadata. - +rm.action.node.frozen.error-message=Unable to perform action {0} because the node is frozen or has frozen children. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-job-context.xml b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-job-context.xml index 8dd01c5ac8..2f76bdf22a 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-job-context.xml +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-job-context.xml @@ -80,9 +80,7 @@ - - - + diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-service-context.xml b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-service-context.xml index 95b668b250..ae80740b66 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-service-context.xml +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-service-context.xml @@ -695,6 +695,13 @@ init-method="init" depends-on="org_alfresco_module_rm_resourceBundles"> + + + + retain + + + @@ -899,6 +906,8 @@ + + @@ -944,6 +953,7 @@ org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService.hasFrozenChildren=RM_ALLOW org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService.getFreezeDate=RM_ALLOW org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService.getFreezeInitiator=RM_ALLOW + org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService.isFrozenOrHasFrozenChildren=RM_ALLOW org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService.*=RM_DENY ]]> diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c3c636878b..0f25658ed2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -141,6 +141,11 @@ spring-test test + + org.projectlombok + lombok + provided + diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/action/RecordsManagementActionServiceImpl.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/action/RecordsManagementActionServiceImpl.java index 69ecc6585d..6dbdc424be 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/action/RecordsManagementActionServiceImpl.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/action/RecordsManagementActionServiceImpl.java @@ -35,17 +35,17 @@ import java.util.List; import java.util.Map; import java.util.Set; +import lombok.extern.slf4j.Slf4j; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.module.org_alfresco_module_rm.RecordsManagementPolicies.BeforeRMActionExecution; import org.alfresco.module.org_alfresco_module_rm.RecordsManagementPolicies.OnRMActionExecution; +import org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService; import org.alfresco.module.org_alfresco_module_rm.util.PoliciesUtil; import org.alfresco.repo.policy.ClassPolicyDelegate; import org.alfresco.repo.policy.PolicyComponent; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.namespace.QName; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.springframework.extensions.surf.util.I18NUtil; /** @@ -53,14 +53,13 @@ import org.springframework.extensions.surf.util.I18NUtil; * * @author Roy Wetherall */ +@Slf4j public class RecordsManagementActionServiceImpl implements RecordsManagementActionService { /** I18N */ private static final String MSG_NOT_DEFINED = "rm.action.not-defined"; private static final String MSG_NO_IMPLICIT_NODEREF = "rm.action.no-implicit-noderef"; - - /** Logger */ - private static Log logger = LogFactory.getLog(RecordsManagementActionServiceImpl.class); + private static final String MSG_NODE_FROZEN = "rm.action.node.frozen.error-message"; /** Registered records management actions */ private Map rmActions = new HashMap<>(13); @@ -78,6 +77,16 @@ public class RecordsManagementActionServiceImpl implements RecordsManagementActi private ClassPolicyDelegate beforeRMActionExecutionDelegate; private ClassPolicyDelegate onRMActionExecutionDelegate; + /** + * Freeze Service + */ + private FreezeService freezeService; + + /** + * list of retention actions to automatically execute + */ + private List retentionActions; + /** * @return Policy component */ @@ -94,6 +103,19 @@ public class RecordsManagementActionServiceImpl implements RecordsManagementActi return this.nodeService; } + /** + * @param freezeService freeze service + */ + public void setFreezeService(FreezeService freezeService) + { + this.freezeService = freezeService; + } + + public void setRetentionActions(List retentionActions) + { + this.retentionActions = retentionActions; + } + /** * Set the policy component * @@ -267,21 +289,23 @@ public class RecordsManagementActionServiceImpl implements RecordsManagementActi */ public RecordsManagementActionResult executeRecordsManagementAction(NodeRef nodeRef, String name, Map parameters) { - if (logger.isDebugEnabled()) - { - logger.debug("Executing record management action on " + nodeRef); - logger.debug(" actionName = " + name); - logger.debug(" parameters = " + parameters); - } + log.debug("Executing record management action on " + nodeRef); + log.debug(" actionName = " + name); + log.debug(" parameters = " + parameters); RecordsManagementAction rmAction = this.rmActions.get(name); if (rmAction == null) { String msg = I18NUtil.getMessage(MSG_NOT_DEFINED, name); - if (logger.isWarnEnabled()) - { - logger.warn(msg); - } + log.warn(msg); + throw new AlfrescoRuntimeException(msg); + } + + if (retentionActions.contains(name.toLowerCase()) && freezeService.isFrozenOrHasFrozenChildren(nodeRef)) + { + String msg = I18NUtil.getMessage(MSG_NODE_FROZEN, name); + log.debug(msg); + throw new AlfrescoRuntimeException(msg); } @@ -307,10 +331,7 @@ public class RecordsManagementActionServiceImpl implements RecordsManagementActi if (implicitTargetNode == null) { String msg = I18NUtil.getMessage(MSG_NO_IMPLICIT_NODEREF, name); - if (logger.isWarnEnabled()) - { - logger.warn(msg); - } + log.warn(msg); throw new AlfrescoRuntimeException(msg); } else diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/DispositionServiceImpl.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/DispositionServiceImpl.java index b28ff08326..9c6897139d 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/DispositionServiceImpl.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/DispositionServiceImpl.java @@ -45,7 +45,6 @@ import org.alfresco.module.org_alfresco_module_rm.disposition.property.Dispositi import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEvent; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanComponentKind; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService; -import org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService; import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel; import org.alfresco.module.org_alfresco_module_rm.record.RecordService; import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; @@ -59,7 +58,6 @@ import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; import org.alfresco.repo.transaction.AlfrescoTransactionSupport; import org.alfresco.repo.transaction.AlfrescoTransactionSupport.TxnReadState; -import org.alfresco.repo.transaction.RetryingTransactionHelper; import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback; import org.alfresco.service.cmr.dictionary.DictionaryService; import org.alfresco.service.cmr.repository.ChildAssociationRef; diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeService.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeService.java index eb9f8a1c7a..bbd84ea295 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeService.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeService.java @@ -150,4 +150,12 @@ public interface FreezeService */ @Deprecated Set getHolds(NodeRef filePlan); + + /** + * Check given node or its children are frozen + * The node should be record or record folder for retention schedule + * + * @param nodeRef + */ + boolean isFrozenOrHasFrozenChildren(NodeRef nodeRef); } diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeServiceImpl.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeServiceImpl.java index 9f77ed6121..191f0309ef 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeServiceImpl.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/freeze/FreezeServiceImpl.java @@ -43,6 +43,8 @@ import org.alfresco.model.ContentModel; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService; import org.alfresco.module.org_alfresco_module_rm.hold.HoldService; import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel; +import org.alfresco.module.org_alfresco_module_rm.record.RecordService; +import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; import org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; @@ -75,6 +77,32 @@ public class FreezeServiceImpl extends ServiceBaseImpl /** Hold service */ private HoldService holdService; + /** + * Record Folder Service + */ + private RecordFolderService recordFolderService; + + /** + * Record Service + */ + private RecordService recordService; + + /** + * @param recordFolderService record folder service + */ + public void setRecordFolderService(RecordFolderService recordFolderService) + { + this.recordFolderService = recordFolderService; + } + + /** + * @param recordService record service + */ + public void setRecordService(RecordService recordService) + { + this.recordService = recordService; + } + /** * @return File plan service */ @@ -392,4 +420,24 @@ public class FreezeServiceImpl extends ServiceBaseImpl // create hold return getHoldService().createHold(filePlan, holdName, reason, null); } + + /** + * Helper method to determine if a node is frozen or has frozen children + * + * @param nodeRef Node to be checked + * @return true if the node is frozen or has frozen children, false otherwise + */ + @Override + public boolean isFrozenOrHasFrozenChildren(NodeRef nodeRef) + { + if (recordFolderService.isRecordFolder(nodeRef)) + { + return isFrozen(nodeRef) || hasFrozenChildren(nodeRef); + } + else if (recordService.isRecord(nodeRef)) + { + return isFrozen(nodeRef); + } + return Boolean.FALSE; + } } diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/job/DispositionLifecycleJobExecuter.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/job/DispositionLifecycleJobExecuter.java index f450bb9fb5..4b1081deae 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/job/DispositionLifecycleJobExecuter.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/job/DispositionLifecycleJobExecuter.java @@ -30,15 +30,14 @@ package org.alfresco.module.org_alfresco_module_rm.job; import static org.alfresco.module.org_alfresco_module_rm.action.RMDispositionActionExecuterAbstractBase.PARAM_NO_ERROR_CHECK; import java.io.Serializable; -import java.util.HashMap; import java.util.List; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.module.org_alfresco_module_rm.action.RecordsManagementActionService; + import org.alfresco.module.org_alfresco_module_rm.freeze.FreezeService; -import org.alfresco.module.org_alfresco_module_rm.record.RecordService; -import org.alfresco.module.org_alfresco_module_rm.recordfolder.RecordFolderService; import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback; import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.NodeRef; @@ -48,8 +47,8 @@ import org.alfresco.service.cmr.search.ResultSet; import org.alfresco.service.cmr.search.SearchParameters; import org.alfresco.service.cmr.search.SearchService; import org.alfresco.service.cmr.security.PersonService; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; +import org.springframework.extensions.surf.util.I18NUtil; + /** * The Disposition Lifecycle Job Finds all disposition action nodes which are for disposition actions specified Where @@ -58,14 +57,14 @@ import org.apache.commons.logging.LogFactory; * @author mrogers * @author Roy Wetherall */ +@Slf4j public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecuter { - /** logger */ - private static Log logger = LogFactory.getLog(DispositionLifecycleJobExecuter.class); /** batching properties */ private int batchSize; public static final int DEFAULT_BATCH_SIZE = 500; + private static final String MSG_NODE_FROZEN = "rm.action.node.frozen.error-message"; /** list of disposition actions to automatically execute */ private List dispositionActions; @@ -88,11 +87,13 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute /** freeze service */ private FreezeService freezeService; - /** record service */ - private RecordService recordService; - - /** record folder service */ - private RecordFolderService recordFolderService; + /** + * @param freezeService freeze service + */ + public void setFreezeService(FreezeService freezeService) + { + this.freezeService = freezeService; + } /** * List of disposition actions to automatically execute when eligible. @@ -133,30 +134,6 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute this.searchService = searchService; } - /** - * @param freezeService freeze service - */ - public void setFreezeService(FreezeService freezeService) - { - this.freezeService = freezeService; - } - - /** - * @param recordService record service - */ - public void setRecordService(RecordService recordService) - { - this.recordService = recordService; - } - - /** - * @param recordFolderService record folder service - */ - public void setRecordFolderService(RecordFolderService recordFolderService) - { - this.recordFolderService = recordFolderService; - } - /** * Get the search query string. * @@ -207,11 +184,11 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute { try { - logger.debug("Job Starting"); + log.debug("Job Starting"); if (dispositionActions == null || dispositionActions.isEmpty()) { - logger.debug("Job Finished as disposition action is empty"); + log.debug("Job Finished as disposition action is empty"); return; } @@ -220,16 +197,11 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute if (batchSize < 1) { - if (logger.isDebugEnabled()) - { - logger.debug("Invalid value for batch size: " + batchSize + " default value used instead."); - } + log.debug("Invalid value for batch size: " + batchSize + " default value used instead."); batchSize = DEFAULT_BATCH_SIZE; } - if (logger.isTraceEnabled()) - { - logger.trace("Using batch size of " + batchSize); - } + + log.trace("Using batch size of " + batchSize); while (hasMore) { @@ -247,10 +219,7 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute skipCount += resultNodes.size(); // increase by page size results.close(); - if (logger.isDebugEnabled()) - { - logger.debug("Processing " + resultNodes.size() + " nodes"); - } + log.debug("Processing " + resultNodes.size() + " nodes"); // process search results if (!resultNodes.isEmpty()) @@ -258,14 +227,11 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute executeAction(resultNodes); } } - logger.debug("Job Finished"); + log.debug("Job Finished"); } catch (AlfrescoRuntimeException exception) { - if (logger.isDebugEnabled()) - { - logger.debug(exception); - } + log.debug(exception.getMessage()); } } @@ -299,12 +265,9 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute } Map props = Map.of(PARAM_NO_ERROR_CHECK, false); - if (isFrozenOrHasFrozenChildren(parent.getParentRef())) + if (freezeService.isFrozenOrHasFrozenChildren(parent.getParentRef())) { - if (logger.isDebugEnabled()) { - logger.debug("unable to perform action " + dispAction + - " because node is frozen or has frozen children"); - } + log.debug(I18NUtil.getMessage(MSG_NODE_FROZEN, dispAction)); continue; } @@ -314,17 +277,13 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute recordsManagementActionService .executeRecordsManagementAction(parent.getParentRef(), dispAction, props); - if (logger.isDebugEnabled()) - { - logger.debug("Processed action: " + dispAction + "on" + parent); - } + log.debug("Processed action: " + dispAction + "on" + parent); + } catch (AlfrescoRuntimeException exception) { - if (logger.isDebugEnabled()) - { - logger.debug(exception); - } + log.debug(exception.getMessage()); + } } return Boolean.TRUE; @@ -332,25 +291,6 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute retryingTransactionHelper.doInTransaction(processTranCB, false, true); } - /** - * Helper method to determine if a node is frozen or has frozen children - * - * @param nodeRef Node to be checked - * @return true if the node is frozen or has frozen children, false otherwise - */ - private boolean isFrozenOrHasFrozenChildren(NodeRef nodeRef) - { - if (recordFolderService.isRecordFolder(nodeRef)) - { - return freezeService.isFrozen(nodeRef) || freezeService.hasFrozenChildren(nodeRef); - } - if (recordService.isRecord(nodeRef)) - { - return freezeService.isFrozen(nodeRef); - } - throw new AlfrescoRuntimeException("The nodeRef '" + nodeRef + "' is neither a record nor a record folder."); - } - public PersonService getPersonService() { return personService; diff --git a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/legacy/service/FreezeServiceImplTest.java b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/legacy/service/FreezeServiceImplTest.java index 870cce7038..94e81e8e64 100644 --- a/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/legacy/service/FreezeServiceImplTest.java +++ b/amps/ags/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/legacy/service/FreezeServiceImplTest.java @@ -53,7 +53,7 @@ public class FreezeServiceImplTest extends BaseRMTestCase /** * Test freeze service methods. - * + * * @deprecated as of 2.2 */ public void testFreezeService() throws Exception @@ -219,7 +219,7 @@ public class FreezeServiceImplTest extends BaseRMTestCase // hold is not automatically removed holdAssocs = holdService.getHolds(filePlan); assertEquals(1, holdAssocs.size()); - + // delete hold holdService.deleteHold(holdNodeRef); @@ -265,8 +265,38 @@ public class FreezeServiceImplTest extends BaseRMTestCase assertFalse(freezeService.isFrozen(recordFour)); // assertFalse(freezeService.hasFrozenChildren(rmFolder)); - return null; - } - }); - } + return null; + } + }); + + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + NodeRef hold101 = holdService.createHold(filePlan, "freezename 103", "FreezeReason", null); + // Freeze a record folder + assertNotNull(hold101); + holdService.addToHold(hold101, rmFolder); + assertTrue(recordFolderService.isRecordFolder(rmFolder)); + assertTrue(freezeService.isFrozenOrHasFrozenChildren(rmFolder)); + return null; + } + }); + + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + NodeRef hold101 = holdService.createHold(filePlan, "freezename 104", "FreezeReason", null); + // Freeze a record inside a record folder + assertNotNull(hold101); + holdService.addToHold(hold101, recordThree); + assertTrue(recordService.isRecord(recordThree)); + assertTrue(freezeService.isFrozenOrHasFrozenChildren(rmFolder)); + return null; + } + }); + } } diff --git a/amps/module-info.java b/amps/module-info.java new file mode 100644 index 0000000000..669eda1dd7 --- /dev/null +++ b/amps/module-info.java @@ -0,0 +1,5 @@ +module simple.lombok { + requires static lombok; + requires java.logging; + +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4aac78a06b..7f2ab284b9 100644 --- a/pom.xml +++ b/pom.xml @@ -851,6 +851,7 @@ org.projectlombok lombok 1.18.20 + provided From b996987426563dc86ebc679d174a104385f8c861 Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Mon, 16 Aug 2021 15:22:20 +0300 Subject: [PATCH 038/177] use base image according to the changes added within PR #619 [skip db] [ags] [skip repo] (#665) --- amps/ags/rm-community/rm-community-repo/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amps/ags/rm-community/rm-community-repo/docker-compose.yml b/amps/ags/rm-community/rm-community-repo/docker-compose.yml index bdd8d01456..6cae53e5b7 100644 --- a/amps/ags/rm-community/rm-community-repo/docker-compose.yml +++ b/amps/ags/rm-community/rm-community-repo/docker-compose.yml @@ -5,7 +5,7 @@ version: "3" services: alfresco: # acs repo community image with ags repo community amp applied - image: alfresco/alfresco-governance-repository-community:latest + image: alfresco/alfresco-governance-repository-community-base:latest environment: CATALINA_OPTS : " -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n From 2da894d82bd75eea0e247932df4c04aa77d8a883 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 16 Aug 2021 13:39:50 +0000 Subject: [PATCH 039/177] [maven-release-plugin][skip ci] prepare release 11.105 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 71ccd59529..cd3d959c9c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.105-SNAPSHOT + 11.105 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index e87874300c..d5a7b3e708 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.105-SNAPSHOT + 11.105 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 108dcc2b3a..bdf601f785 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 9472d3f9de..899bb3e496 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.105-SNAPSHOT + 11.105 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0f25658ed2..c58a3e7489 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.105-SNAPSHOT + 11.105 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 6da2790efe..42f8d334f7 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.105-SNAPSHOT + 11.105 diff --git a/amps/pom.xml b/amps/pom.xml index 19b0a73d46..b29c043885 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c3e8daf05d..3a0f4f87f1 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.105-SNAPSHOT + 11.105 diff --git a/core/pom.xml b/core/pom.xml index 1c3c05df1c..9ef2d593bb 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/data-model/pom.xml b/data-model/pom.xml index 89f06d7bc9..4045a9a405 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 054428b6f5..1391f761e3 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 15d69ea770..ba9ae831b9 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/pom.xml b/packaging/pom.xml index c4360347b6..1d3b771f98 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index d0a186b887..54bd396186 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 376cbd9348..a2d5cec944 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 85f38bbf38..ec79ea154e 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index ffd578b6d8..7a627a16ce 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index aa14179787..85e128558e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b10f8ed8d9..3644fe326c 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105-SNAPSHOT + 11.105 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d4391f5b38..d422fd61b9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105-SNAPSHOT + 11.105 diff --git a/pom.xml b/pom.xml index 7f2ab284b9..c092390c4d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.105-SNAPSHOT + 11.105 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.105 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 94315056be..e1b9fabef5 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 diff --git a/repository/pom.xml b/repository/pom.xml index be2d8e213e..dbca53f128 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105-SNAPSHOT + 11.105 From 6eb7538bdeca41c13ee07a9b546c749a1a2a1ff0 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 16 Aug 2021 13:39:52 +0000 Subject: [PATCH 040/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index cd3d959c9c..467f3acc74 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.105 + 11.106-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index d5a7b3e708..a403e4061d 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.105 + 11.106-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index bdf601f785..db1b0a352d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 899bb3e496..10f747ad66 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.105 + 11.106-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c58a3e7489..a5a6f51b82 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.105 + 11.106-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 42f8d334f7..44ed5ee903 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.105 + 11.106-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index b29c043885..239c6c7046 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3a0f4f87f1..48518fad7a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.105 + 11.106-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 9ef2d593bb..7a0d61102f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 4045a9a405..a14885a5a6 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 1391f761e3..a6e429fb5f 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index ba9ae831b9..0ab0b478ff 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 1d3b771f98..4de590fa5f 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 54bd396186..5900af601f 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index a2d5cec944..ae18c83042 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ec79ea154e..65f7b4c690 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 7a627a16ce..4e8ba6ce8c 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 85e128558e..081dbe445b 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 3644fe326c..d7b83f4b75 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.105 + 11.106-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d422fd61b9..300dacdc06 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.105 + 11.106-SNAPSHOT diff --git a/pom.xml b/pom.xml index c092390c4d..0c5cae2eda 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.105 + 11.106-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.105 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e1b9fabef5..df7b5e8050 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index dbca53f128..28fc2d64ed 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.105 + 11.106-SNAPSHOT From 11354630f75f4b6c5d7ef3a921113bfd2b1a6723 Mon Sep 17 00:00:00 2001 From: Iulian Aftene Date: Tue, 17 Aug 2021 09:36:38 +0300 Subject: [PATCH 041/177] ACS-1832 - Test requestContentDirectUrl for Versions REST API endpoint (#661) * ACS-1832 - Test requestContentDirectUrl for Versions REST API endpoint -update test for RequestContentDirectUrl Versions --- .../alfresco/rest/api/tests/NodeApiTest.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java index a5bdef067f..426f41e41d 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java @@ -73,6 +73,7 @@ import org.alfresco.rest.api.tests.client.HttpResponse; import org.alfresco.rest.api.tests.client.PublicApiClient; import org.alfresco.rest.api.tests.client.PublicApiClient.ExpectedPaging; import org.alfresco.rest.api.tests.client.PublicApiClient.Paging; +import org.alfresco.rest.api.tests.client.PublicApiHttpClient; import org.alfresco.rest.api.tests.client.PublicApiHttpClient.BinaryPayload; import org.alfresco.rest.api.tests.client.data.Association; import org.alfresco.rest.api.tests.client.data.ContentInfo; @@ -6278,5 +6279,48 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); } + @Test + public void testRequestVersionsContentDirectUrl() throws Exception + { + setRequestContext(user1); + + String myNodeId = getMyNodeId(); + + Document d1 = new Document(); + d1.setName("d1.txt"); + d1.setNodeType(TYPE_CM_CONTENT); + + // create *empty* text file - as of now, versioning is not enabled by default + HttpResponse response = post(getNodeChildrenUrl(myNodeId), toJsonAsStringNonNull(d1), 201); + Document documentResp = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + + String docId = documentResp.getId(); + assertFalse(documentResp.getAspectNames().contains("cm:versionable")); + assertNull(documentResp.getProperties()); // no properties (ie. no "cm:versionLabel") + + int majorVersion = 1; + int minorVersion = 0; + + String content = "The quick brown fox jumps over the lazy dog "; + + Map params = new HashMap<>(); + params.put("comment", "my version "); + + documentResp = updateTextFile(docId, content, params); + assertTrue(documentResp.getAspectNames().contains("cm:versionable")); + assertNotNull(documentResp.getProperties()); + assertEquals(majorVersion+"."+minorVersion, documentResp.getProperties().get("cm:versionLabel")); + + final String contentNodeId = documentResp.getId(); + + // Check the upload response + assertNotNull(documentResp.getProperties()); + assertTrue(documentResp.getAspectNames().contains("cm:versionable")); + ContentInfo contentInfo = documentResp.getContent(); + assertNotNull(contentInfo); + assertEquals(MimetypeMap.MIMETYPE_TEXT_PLAIN, contentInfo.getMimeType()); + + getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); + } } From 3dcd47fac42174401840896614901802d4af12ad Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 07:19:15 +0000 Subject: [PATCH 042/177] [maven-release-plugin][skip ci] prepare release 11.106 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 467f3acc74..25b8ee3ad5 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.106-SNAPSHOT + 11.106 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index a403e4061d..6b2616e490 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.106-SNAPSHOT + 11.106 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index db1b0a352d..cb12ae1750 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 10f747ad66..8dc22e557a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.106-SNAPSHOT + 11.106 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index a5a6f51b82..964a113f9e 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.106-SNAPSHOT + 11.106 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 44ed5ee903..975c726064 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.106-SNAPSHOT + 11.106 diff --git a/amps/pom.xml b/amps/pom.xml index 239c6c7046..2bd2a8a232 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 48518fad7a..2dd0d398e8 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.106-SNAPSHOT + 11.106 diff --git a/core/pom.xml b/core/pom.xml index 7a0d61102f..e09ce31165 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/data-model/pom.xml b/data-model/pom.xml index a14885a5a6..84d985ef24 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index a6e429fb5f..f2cf17754e 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 0ab0b478ff..4223fc6616 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/pom.xml b/packaging/pom.xml index 4de590fa5f..0bf12816c6 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 5900af601f..2932076eab 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index ae18c83042..39943acf24 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 65f7b4c690..c20f022964 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 4e8ba6ce8c..b3e684e091 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 081dbe445b..a6f4117179 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d7b83f4b75..057dab98ff 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106-SNAPSHOT + 11.106 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 300dacdc06..6345144b07 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106-SNAPSHOT + 11.106 diff --git a/pom.xml b/pom.xml index 0c5cae2eda..00b6da2194 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.106-SNAPSHOT + 11.106 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.106 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index df7b5e8050..2b41579e46 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 diff --git a/repository/pom.xml b/repository/pom.xml index 28fc2d64ed..68fab4d6ca 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106-SNAPSHOT + 11.106 From 68f34c284ad960e22989b5bec04289c5330f7313 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 07:19:18 +0000 Subject: [PATCH 043/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 25b8ee3ad5..0a82b7d39c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.106 + 11.107-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6b2616e490..2aceebbf77 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.106 + 11.107-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index cb12ae1750..6189bae62d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 8dc22e557a..a005a610a0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.106 + 11.107-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 964a113f9e..fe71d1dd14 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.106 + 11.107-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 975c726064..869f5a83c3 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.106 + 11.107-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 2bd2a8a232..ff3df34ab0 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 2dd0d398e8..18d18c1345 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.106 + 11.107-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index e09ce31165..91c7a17bea 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 84d985ef24..b8ccb99c7c 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index f2cf17754e..d58e22c523 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 4223fc6616..eaf51d356f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 0bf12816c6..d3da47c422 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2932076eab..6e5e3de914 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 39943acf24..66f3672ec8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c20f022964..3cebdc6f1c 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index b3e684e091..1c6b704057 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index a6f4117179..4347705e22 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 057dab98ff..8fc89452c7 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.106 + 11.107-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6345144b07..10b26dafdb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.106 + 11.107-SNAPSHOT diff --git a/pom.xml b/pom.xml index 00b6da2194..941742fe16 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.106 + 11.107-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.106 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 2b41579e46..ec29beb953 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 68fab4d6ca..a55622a1cf 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.106 + 11.107-SNAPSHOT From b68e805a3745f7e5844dadd1092b8f73a8785428 Mon Sep 17 00:00:00 2001 From: Jamal Kaabi-Mofrad Date: Tue, 17 Aug 2021 12:43:33 +0100 Subject: [PATCH 044/177] REPO-5659: Added ALFRESCO_SYSTEM_ADMINISTRATORS group authority. (#668) --- .../alfresco/rest/api/tests/GroupsTest.java | 4 +- .../authority/AuthorityServiceImpl.java | 198 ++++++++++-------- .../cmr/security/AuthorityService.java | 67 +++--- .../bootstrap/alfrescoAuthorityStore.xml | 23 +- .../alfrescoAuthorityStoreDefaultMembers.xml | 11 +- .../public-services-security-context.xml | 1 + .../authority/AuthorityServiceTest.java | 50 ++++- 7 files changed, 227 insertions(+), 127 deletions(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/GroupsTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/GroupsTest.java index e84ee463e1..99c57462dd 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/GroupsTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/GroupsTest.java @@ -836,13 +836,13 @@ public class GroupsTest extends AbstractSingleNetworkSiteTest // Get network admin's groups by explicit ID. { ListResponse groups = groupsProxy.getGroupsByPersonId(networkAdmin, null, "Couldn't get user's groups", 200); - assertEquals(6L, (long) groups.getPaging().getTotalItems()); + assertEquals(7L, (long) groups.getPaging().getTotalItems()); } // test -me- alias (as network admin) { ListResponse groups = groupsProxy.getGroupsByPersonId("-me-", null, "Couldn't get user's groups", 200); - assertEquals(6L, (long) groups.getPaging().getCount()); + assertEquals(7L, (long) groups.getPaging().getCount()); Iterator it = groups.getList().iterator(); assertEquals("GROUP_ALFRESCO_ADMINISTRATORS", it.next().getId()); } diff --git a/repository/src/main/java/org/alfresco/repo/security/authority/AuthorityServiceImpl.java b/repository/src/main/java/org/alfresco/repo/security/authority/AuthorityServiceImpl.java index 84bafac0a8..0d4ecf8e2a 100644 --- a/repository/src/main/java/org/alfresco/repo/security/authority/AuthorityServiceImpl.java +++ b/repository/src/main/java/org/alfresco/repo/security/authority/AuthorityServiceImpl.java @@ -1,61 +1,61 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2016 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ package org.alfresco.repo.security.authority; -import java.util.AbstractSet; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.TreeSet; - -import org.alfresco.model.ContentModel; -import org.alfresco.query.PagingRequest; -import org.alfresco.query.PagingResults; -import org.alfresco.repo.policy.ClassPolicyDelegate; -import org.alfresco.repo.policy.PolicyComponent; -import org.alfresco.repo.security.authentication.AuthenticationUtil; -import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnAuthorityAddedToGroup; -import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnAuthorityRemovedFromGroup; -import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnGroupDeleted; -import org.alfresco.repo.security.permissions.PermissionServiceSPI; -import org.alfresco.repo.security.person.UserNameMatcher; -import org.alfresco.repo.tenant.TenantService; -import org.alfresco.service.cmr.repository.NodeRef; -import org.alfresco.service.cmr.security.AuthenticationService; -import org.alfresco.service.cmr.security.AuthorityService; -import org.alfresco.service.cmr.security.AuthorityType; -import org.alfresco.service.cmr.security.PermissionService; -import org.alfresco.service.cmr.security.PersonService; -import org.alfresco.util.Pair; -import org.springframework.beans.factory.InitializingBean; -import org.springframework.extensions.surf.util.ParameterCheck; +import java.util.AbstractSet; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Set; +import java.util.TreeSet; + +import org.alfresco.model.ContentModel; +import org.alfresco.query.PagingRequest; +import org.alfresco.query.PagingResults; +import org.alfresco.repo.policy.ClassPolicyDelegate; +import org.alfresco.repo.policy.PolicyComponent; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnAuthorityAddedToGroup; +import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnAuthorityRemovedFromGroup; +import org.alfresco.repo.security.authority.AuthorityServicePolicies.OnGroupDeleted; +import org.alfresco.repo.security.permissions.PermissionServiceSPI; +import org.alfresco.repo.security.person.UserNameMatcher; +import org.alfresco.repo.tenant.TenantService; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.cmr.security.AuthorityService; +import org.alfresco.service.cmr.security.AuthorityType; +import org.alfresco.service.cmr.security.PermissionService; +import org.alfresco.service.cmr.security.PersonService; +import org.alfresco.util.Pair; +import org.springframework.beans.factory.InitializingBean; +import org.springframework.extensions.surf.util.ParameterCheck; /** * The default implementation of the authority service. @@ -64,6 +64,8 @@ import org.springframework.extensions.surf.util.ParameterCheck; */ public class AuthorityServiceImpl implements AuthorityService, InitializingBean { + public static final String GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY = PermissionService.GROUP_PREFIX + "ALFRESCO_SYSTEM_ADMINISTRATORS"; + private static Set DEFAULT_ZONES = new HashSet(); static @@ -83,11 +85,11 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean private Set guestSet = Collections.singleton(PermissionService.GUEST_AUTHORITY); private Set allSet = Collections.singleton(PermissionService.ALL_AUTHORITIES); private Set adminGroups = Collections.emptySet(); - private Set guestGroups = Collections.emptySet(); - - private ClassPolicyDelegate onAuthorityAddedToGroups; - private ClassPolicyDelegate onAuthorityRemovedFromGroup; - private ClassPolicyDelegate onGroupDeletedDelegate; + private Set guestGroups = Collections.emptySet(); + + private ClassPolicyDelegate onAuthorityAddedToGroups; + private ClassPolicyDelegate onAuthorityRemovedFromGroup; + private ClassPolicyDelegate onGroupDeletedDelegate; private PolicyComponent policyComponent; public AuthorityServiceImpl() @@ -133,18 +135,18 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean public void setGuestGroups(Set guestGroups) { this.guestGroups = guestGroups; - } - - public void setPolicyComponent(PolicyComponent policyComponent) - { - this.policyComponent = policyComponent; - } - - public void init() - { - onAuthorityAddedToGroups = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnAuthorityAddedToGroup.class); - onAuthorityRemovedFromGroup = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnAuthorityRemovedFromGroup.class); - onGroupDeletedDelegate = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnGroupDeleted.class); + } + + public void setPolicyComponent(PolicyComponent policyComponent) + { + this.policyComponent = policyComponent; + } + + public void init() + { + onAuthorityAddedToGroups = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnAuthorityAddedToGroup.class); + onAuthorityRemovedFromGroup = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnAuthorityRemovedFromGroup.class); + onGroupDeletedDelegate = policyComponent.registerClassPolicy(AuthorityServicePolicies.OnGroupDeleted.class); } @Override @@ -482,12 +484,12 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean */ public void addAuthority(Collection parentNames, String childName) { - authorityDAO.addAuthority(parentNames, childName); - - OnAuthorityAddedToGroup policy = onAuthorityAddedToGroups.get(ContentModel.TYPE_AUTHORITY); - for (String parentGroup : parentNames) - { - policy.onAuthorityAddedToGroup(parentGroup, childName); + authorityDAO.addAuthority(parentNames, childName); + + OnAuthorityAddedToGroup policy = onAuthorityAddedToGroups.get(ContentModel.TYPE_AUTHORITY); + for (String parentGroup : parentNames) + { + policy.onAuthorityAddedToGroup(parentGroup, childName); } } @@ -565,18 +567,18 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean } } authorityDAO.deleteAuthority(name); - permissionServiceSPI.deletePermissions(name); - - if (isGroup(type)) - { - OnGroupDeleted onGroupDelete = onGroupDeletedDelegate.get(ContentModel.TYPE_AUTHORITY); - onGroupDelete.onGroupDeleted(name, cascade); + permissionServiceSPI.deletePermissions(name); + + if (isGroup(type)) + { + OnGroupDeleted onGroupDelete = onGroupDeletedDelegate.get(ContentModel.TYPE_AUTHORITY); + onGroupDelete.onGroupDeleted(name, cascade); } - } - - private boolean isGroup(AuthorityType authorityType) - { - return AuthorityType.GROUP == authorityType || AuthorityType.EVERYONE == authorityType; + } + + private boolean isGroup(AuthorityType authorityType) + { + return AuthorityType.GROUP == authorityType || AuthorityType.EVERYONE == authorityType; } /** @@ -622,9 +624,9 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean @Override public void removeAuthority(String parentName, String childName) { - authorityDAO.removeAuthority(parentName, childName); - - OnAuthorityRemovedFromGroup policy = onAuthorityRemovedFromGroup.get(ContentModel.TYPE_AUTHORITY); + authorityDAO.removeAuthority(parentName, childName); + + OnAuthorityRemovedFromGroup policy = onAuthorityRemovedFromGroup.get(ContentModel.TYPE_AUTHORITY); policy.onAuthorityRemovedFromGroup(parentName, childName); } @@ -770,6 +772,16 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean return authorityDAO.getShortName(name); } + @Override + public boolean hasSysAdminAuthority() + { + final String currentUserName = AuthenticationUtil.getRunAsUser(); + if (currentUserName == null) + { + return false; + } + return getAuthoritiesForUser(currentUserName).contains(GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY); + } /** * Lazy load set of authorities. Try not to iterate or ask for the size. Needed for the case where there diff --git a/repository/src/main/java/org/alfresco/service/cmr/security/AuthorityService.java b/repository/src/main/java/org/alfresco/service/cmr/security/AuthorityService.java index 6d6964b62d..5094302539 100644 --- a/repository/src/main/java/org/alfresco/service/cmr/security/AuthorityService.java +++ b/repository/src/main/java/org/alfresco/service/cmr/security/AuthorityService.java @@ -1,28 +1,28 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2016 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ package org.alfresco.service.cmr.security; import java.util.Collection; @@ -511,4 +511,19 @@ public interface AuthorityService */ @Auditable(parameters = {"type"}) public Set findAuthorities(AuthorityType type, String parentAuthority, boolean immediate, String displayNamePattern, String zoneName); -} + + /** + * Check the current user has system administration authority. + * + * @return true if the currently authenticated user has the system administration authority, otherwise false + * @throws UnsupportedOperationException if the implementing class (i.e. external clients) doesn't provide an implementation for the {@code hasSysAdminAuthority} operation + * + * @since 7.1 + */ + @Auditable + // See PRODMAN-493 -> REPO-5659 + default boolean hasSysAdminAuthority() + { + throw new UnsupportedOperationException("hasSysAdminAuthority"); + } +} diff --git a/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStore.xml b/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStore.xml index 0e327634ac..50f259bf56 100644 --- a/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStore.xml +++ b/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStore.xml @@ -63,6 +63,17 @@ GROUP_ALFRESCO_MODEL_ADMINISTRATORS + + + + + + + GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS + GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS + GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS + + @@ -110,6 +121,11 @@ view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_MODEL_ADMINISTRATORS" view:childName="cm:GROUP_ALFRESCO_MODEL_ADMINISTRATORS" /> + + + @@ -146,10 +162,15 @@ view:pathref="${system.authorities_container.childname}/cm:GROUP_ALFRESCO_MODEL_ADMINISTRATORS" view:childName="cm:GROUP_ALFRESCO_MODEL_ADMINISTRATORS" /> + + + - \ No newline at end of file + diff --git a/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStoreDefaultMembers.xml b/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStoreDefaultMembers.xml index 9cdf49e989..b9b2a6cd9e 100644 --- a/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStoreDefaultMembers.xml +++ b/repository/src/main/resources/alfresco/bootstrap/alfrescoAuthorityStoreDefaultMembers.xml @@ -40,6 +40,15 @@ view:childName="cm:${alfresco_user_store.adminusername}" /> + + + + + + + + @@ -66,4 +75,4 @@ - \ No newline at end of file + diff --git a/repository/src/main/resources/alfresco/public-services-security-context.xml b/repository/src/main/resources/alfresco/public-services-security-context.xml index b6e32f9d37..23d4349a9f 100644 --- a/repository/src/main/resources/alfresco/public-services-security-context.xml +++ b/repository/src/main/resources/alfresco/public-services-security-context.xml @@ -792,6 +792,7 @@ org.alfresco.service.cmr.security.AuthorityService.hasAdminAuthority=ACL_ALLOW org.alfresco.service.cmr.security.AuthorityService.hasGuestAuthority=ACL_ALLOW + org.alfresco.service.cmr.security.AuthorityService.hasSysAdminAuthority=ACL_ALLOW org.alfresco.service.cmr.security.AuthorityService.isAdminAuthority=ACL_ALLOW org.alfresco.service.cmr.security.AuthorityService.isGuestAuthority=ACL_ALLOW org.alfresco.service.cmr.security.AuthorityService.countUsers=ACL_ALLOW diff --git a/repository/src/test/java/org/alfresco/repo/security/authority/AuthorityServiceTest.java b/repository/src/test/java/org/alfresco/repo/security/authority/AuthorityServiceTest.java index 568a9dd526..adbaa5f8c1 100644 --- a/repository/src/test/java/org/alfresco/repo/security/authority/AuthorityServiceTest.java +++ b/repository/src/test/java/org/alfresco/repo/security/authority/AuthorityServiceTest.java @@ -25,6 +25,7 @@ */ package org.alfresco.repo.security.authority; +import static org.alfresco.repo.security.authority.AuthorityServiceImpl.GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -117,9 +118,10 @@ public class AuthorityServiceTest extends TestCase private static final int DEFAULT_SITE_GRP_CNT = 5; // default number of groups per site private static final int DEFAULT_SITE_ROOT_GRP_CNT = 1; // default number of root groups per site - private static final int DEFAULT_GRP_CNT = 5; // default (non-site) bootstrap groups - + private static final int DEFAULT_GRP_CNT = 6; // default (non-site) bootstrap groups - // eg. GROUP_ALFRESCO_ADMINISTRATORS, GROUP_EMAIL_CONTRIBUTORS, GROUP_SITE_ADMINISTRATORS, - // GROUP_ALFRESCO_SEARCH_ADMINISTRATORS, GROUP_ALFRESCO_MODEL_ADMINISTRATORS + // GROUP_ALFRESCO_SEARCH_ADMINISTRATORS, GROUP_ALFRESCO_MODEL_ADMINISTRATORS, + // GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS private int SITE_CNT = 0; private int GRP_CNT = 0; @@ -467,8 +469,8 @@ public class AuthorityServiceTest extends TestCase assertTrue(authorityService.hasAdminAuthority()); assertTrue(pubAuthorityService.hasAdminAuthority()); Set authorities = authorityService.getAuthorities(); - // 6 => [GROUP_ALFRESCO_ADMINISTRATORS, GROUP_EMAIL_CONTRIBUTORS, GROUP_EVERYONE, GROUP_SITE_ADMINISTRATORS, ROLE_ADMINISTRATOR, GROUP_ALFRESCO_SEARCH_ADMINISTRATORS, GROUP_ALFRESCO_MODEL_ADMINISTRATORS] - assertEquals("Unexpected result: " + authorities, 7 + (SITE_CNT*2), authorityService.getAuthorities().size()); + // 8 => [GROUP_ALFRESCO_ADMINISTRATORS, GROUP_EMAIL_CONTRIBUTORS, GROUP_EVERYONE, GROUP_SITE_ADMINISTRATORS, ROLE_ADMINISTRATOR, GROUP_ALFRESCO_SEARCH_ADMINISTRATORS, GROUP_ALFRESCO_MODEL_ADMINISTRATORS, GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS] + assertEquals("Unexpected result: " + authorities, 8 + (SITE_CNT*2), authorityService.getAuthorities().size()); } public void testNoUser() @@ -1773,6 +1775,46 @@ public class AuthorityServiceTest extends TestCase personService.deletePerson(username); } + public void testAdminHasSysAdminAuthority() + { + authenticationComponent.setCurrentUser(AuthenticationUtil.getAdminUserName()); + assertTrue(authorityService.hasAdminAuthority()); + assertTrue("By default, Admin should be member of Alfresco_System_Administrators group.", + pubAuthorityService.hasSysAdminAuthority()); + } + + public void testSysAdminGroup() + { + personService.getPerson("andy"); + // Make sure Andy is not part of ALFRESCO_ADMINISTRATORS group + String adminGroup = authorityService.getName(AuthorityType.GROUP, "ALFRESCO_ADMINISTRATORS"); + authorityService.removeAuthority(adminGroup, "andy"); + assertFalse(authorityService.isAdminAuthority("andy")); + + // Set the current authentication to Andy, so we can check the runAsUser + authenticationComponent.setCurrentUser("andy"); + assertFalse("Andy hasn't been added to the Alfresco_System_Administrators group yet.", + pubAuthorityService.hasSysAdminAuthority()); + + // Set the current authentication to admin in order to add Andy to the group + authenticationComponent.setCurrentUser(AuthenticationUtil.getAdminUserName()); + pubAuthorityService.addAuthority(GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY, "andy"); + + // Set the current authentication to Andy, so we can check the runAsUser + authenticationComponent.setCurrentUser("andy"); + assertTrue("Andy is a member of the Alfresco_System_Administrators group", + pubAuthorityService.hasSysAdminAuthority()); + + // Set the current authentication to admin in order to remove Andy from the group + authenticationComponent.setCurrentUser(AuthenticationUtil.getAdminUserName()); + pubAuthorityService.removeAuthority(GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY, "andy"); + + // Set the current authentication to Andy, so we can check the runAsUser + authenticationComponent.setCurrentUser("andy"); + assertFalse("Andy has been removed from the Alfresco_System_Administrators group.", + pubAuthorityService.hasSysAdminAuthority()); + } + private T createClassPolicy(Class policyInterface, QName policyQName, QName triggerOnClass) { T policy = mock(policyInterface); From 6bc03c02fbaa3115c163890a9c36a07e8d0c573f Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 12:25:43 +0000 Subject: [PATCH 045/177] [maven-release-plugin][skip ci] prepare release 11.107 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 0a82b7d39c..59316059fa 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.107-SNAPSHOT + 11.107 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 2aceebbf77..5f66ac5bfb 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.107-SNAPSHOT + 11.107 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6189bae62d..e4d434106f 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a005a610a0..8916cccc82 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.107-SNAPSHOT + 11.107 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index fe71d1dd14..92177dc3cd 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.107-SNAPSHOT + 11.107 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 869f5a83c3..c1c32b7e86 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.107-SNAPSHOT + 11.107 diff --git a/amps/pom.xml b/amps/pom.xml index ff3df34ab0..ebc798573a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 18d18c1345..4656b0c6f5 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.107-SNAPSHOT + 11.107 diff --git a/core/pom.xml b/core/pom.xml index 91c7a17bea..99ba9456b4 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/data-model/pom.xml b/data-model/pom.xml index b8ccb99c7c..8bf9ff0f53 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index d58e22c523..aec7579245 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index eaf51d356f..3213f6770b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/pom.xml b/packaging/pom.xml index d3da47c422..16e30f15f4 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 6e5e3de914..8c1d2febf1 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 66f3672ec8..b3932ce1f8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 3cebdc6f1c..54544807bc 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1c6b704057..fd975f27e8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4347705e22..b69f2d2673 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8fc89452c7..5d985b1b63 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107-SNAPSHOT + 11.107 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 10b26dafdb..048d14cc7f 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107-SNAPSHOT + 11.107 diff --git a/pom.xml b/pom.xml index 941742fe16..041f254f4e 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.107-SNAPSHOT + 11.107 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.107 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index ec29beb953..6cd397dc11 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 diff --git a/repository/pom.xml b/repository/pom.xml index a55622a1cf..6c5bb05703 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107-SNAPSHOT + 11.107 From d41f3dcfde9b7de491b53847a7094d5990d72ee6 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 12:25:46 +0000 Subject: [PATCH 046/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 59316059fa..73bf72a5de 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.107 + 11.108-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5f66ac5bfb..5858b276df 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.107 + 11.108-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e4d434106f..fc94582e1b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 8916cccc82..d89ba783e2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.107 + 11.108-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 92177dc3cd..6fef9a0fc3 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.107 + 11.108-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index c1c32b7e86..bd508fb9f4 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.107 + 11.108-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index ebc798573a..dc12ec3002 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4656b0c6f5..e25ecd379c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.107 + 11.108-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 99ba9456b4..a669367fe1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 8bf9ff0f53..9c0f56855e 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index aec7579245..d77ae9d9a4 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 3213f6770b..517b956067 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 16e30f15f4..fa8f9b9d76 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 8c1d2febf1..b281176061 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index b3932ce1f8..6f5d0a5f63 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 54544807bc..1fa27cfd7d 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index fd975f27e8..53c032e491 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index b69f2d2673..61ff44322a 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5d985b1b63..cc9e8c13c7 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.107 + 11.108-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 048d14cc7f..840fb9e7c9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.107 + 11.108-SNAPSHOT diff --git a/pom.xml b/pom.xml index 041f254f4e..31260b96c0 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.107 + 11.108-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.107 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6cd397dc11..47b8a5ba72 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 6c5bb05703..11d493d82d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.107 + 11.108-SNAPSHOT From ed3cc88b712bb103a7d008586438d5e479689a3c Mon Sep 17 00:00:00 2001 From: antoniojfelix Date: Tue, 17 Aug 2021 08:51:12 -0700 Subject: [PATCH 047/177] PRODSEC-4331 - Bump spring version from 5.3.3 to 5.3.9 (#666) * PRODSEC-4331 - Upgrade spring version from 5.3.3 to 5.3.9 -> new methods added to the interface ApplicationEventMulticaster in the 5.3.9 version (removeApplicationListeners and removeApplicationListenerBeans) --- pom.xml | 2 +- .../management/SafeApplicationEventMulticaster.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 31260b96c0..7a3a75cd75 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ 6.2 0.0.12 - 5.3.3 + 5.3.9 3.5.2 2.12.3 2.12.4 diff --git a/repository/src/main/java/org/alfresco/repo/management/SafeApplicationEventMulticaster.java b/repository/src/main/java/org/alfresco/repo/management/SafeApplicationEventMulticaster.java index baae82464e..cb0fb3588d 100644 --- a/repository/src/main/java/org/alfresco/repo/management/SafeApplicationEventMulticaster.java +++ b/repository/src/main/java/org/alfresco/repo/management/SafeApplicationEventMulticaster.java @@ -33,6 +33,7 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; +import java.util.function.Predicate; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -152,6 +153,16 @@ public class SafeApplicationEventMulticaster implements ApplicationEventMulticas } } + @Override + public void removeApplicationListeners(Predicate> predicate) + { + } + + @Override + public void removeApplicationListenerBeans(Predicate predicate) + { + } + public void removeAllListeners() { synchronized (this.defaultRetriever) From f39527512915e57ed4cdbb36aa167563135e5900 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 16:59:32 +0000 Subject: [PATCH 048/177] [maven-release-plugin][skip ci] prepare release 11.108 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 73bf72a5de..807c095f58 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.108-SNAPSHOT + 11.108 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5858b276df..6b609b156a 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.108-SNAPSHOT + 11.108 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index fc94582e1b..386752700a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index d89ba783e2..59f28c47c6 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.108-SNAPSHOT + 11.108 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 6fef9a0fc3..32a52480ee 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.108-SNAPSHOT + 11.108 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index bd508fb9f4..bd14645053 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.108-SNAPSHOT + 11.108 diff --git a/amps/pom.xml b/amps/pom.xml index dc12ec3002..ba257e5c7b 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index e25ecd379c..96840c0957 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.108-SNAPSHOT + 11.108 diff --git a/core/pom.xml b/core/pom.xml index a669367fe1..a6587bfc7b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/data-model/pom.xml b/data-model/pom.xml index 9c0f56855e..8ec7ed5df4 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index d77ae9d9a4..412e9c7485 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 517b956067..266cae5bf6 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/pom.xml b/packaging/pom.xml index fa8f9b9d76..5f8515a915 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index b281176061..4b1f48da28 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 6f5d0a5f63..fde6bca50e 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 1fa27cfd7d..4c9ad609ae 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 53c032e491..a7721d584b 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 61ff44322a..9a518fc61a 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index cc9e8c13c7..d876a13b7e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108-SNAPSHOT + 11.108 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 840fb9e7c9..24f8ad4daa 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108-SNAPSHOT + 11.108 diff --git a/pom.xml b/pom.xml index 7a3a75cd75..0acf3e19ef 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.108-SNAPSHOT + 11.108 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.108 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 47b8a5ba72..422639e464 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 diff --git a/repository/pom.xml b/repository/pom.xml index 11d493d82d..39623418d0 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108-SNAPSHOT + 11.108 From e2965a57f5fa7e998a65908869253f81440a97a6 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 17 Aug 2021 16:59:35 +0000 Subject: [PATCH 049/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 807c095f58..fe7afbcf6d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.108 + 11.109-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6b609b156a..e2ed410d88 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.108 + 11.109-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 386752700a..5d3938e2b9 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 59f28c47c6..862545343c 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.108 + 11.109-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 32a52480ee..c4e0826592 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.108 + 11.109-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index bd14645053..5abd0d73c6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.108 + 11.109-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index ba257e5c7b..724fe95000 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 96840c0957..78494efdce 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.108 + 11.109-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index a6587bfc7b..3772438789 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 8ec7ed5df4..498b522fb5 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 412e9c7485..a94a351363 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 266cae5bf6..b11394e546 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 5f8515a915..b5db8987b2 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 4b1f48da28..51b8153201 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index fde6bca50e..4554c896ed 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4c9ad609ae..cf009c9784 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index a7721d584b..65d7b90623 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 9a518fc61a..05dfe9d423 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d876a13b7e..c3c27091e3 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.108 + 11.109-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 24f8ad4daa..93cb23731a 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.108 + 11.109-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0acf3e19ef..45b74eceb1 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.108 + 11.109-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.108 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 422639e464..2ee63bddfd 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 39623418d0..3d36d4b32d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.108 + 11.109-SNAPSHOT From b2d3c6e8c6ff5d43daab1170f06d9be678b969ae Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 18 Aug 2021 12:02:58 +0100 Subject: [PATCH 050/177] Feature/acs 1784 impl rest api for renditions (#662) * Version corrections * ACS-1784 Implement Rest API for renditions --- .../org/alfresco/rest/api/Renditions.java | 57 ++++++++++++++++++- .../rest/api/impl/RenditionsImpl.java | 45 ++++++++++----- .../api/nodes/NodeRenditionsRelation.java | 41 ++++++++++++- .../rest/api/nodes/NodeVersionsRelation.java | 4 +- .../alfresco/public-rest-context.xml | 2 + 5 files changed, 131 insertions(+), 18 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/Renditions.java b/remote-api/src/main/java/org/alfresco/rest/api/Renditions.java index 3464bad52d..aa1e352798 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/Renditions.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/Renditions.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2020 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -32,7 +32,9 @@ import org.alfresco.rest.framework.core.exceptions.NotFoundException; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.StoreRef; import java.util.List; @@ -186,5 +188,58 @@ public interface Renditions * @return the rendition stream */ BinaryResource getContentNoValidation(NodeRef nodeRef, String versionId, String renditionId, Parameters parameters); + + /** + * Gets a presigned URL to directly access content. + * @param nodeId the node id for which to obtain the direct access {@code URL} + * @param versionId the version id (aka version label) + * @param renditionId the rendition id + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL} + * @return a direct access {@code URL} object for the content + */ + default DirectAccessUrl requestContentDirectUrl(String nodeId, String versionId, String renditionId, boolean attachment) + { + NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, nodeId); + return requestContentDirectUrl(nodeRef, versionId, renditionId, attachment); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeId the node id for which to obtain the direct access {@code URL} + * @param versionId the version id (aka version label) + * @param renditionId the rendition id + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL} + * @param validFor the time at which the direct access {@code URL} will expire + * @return a direct access {@code URL} object for the content + */ + default DirectAccessUrl requestContentDirectUrl(String nodeId, String versionId, String renditionId, boolean attachment, Long validFor) + { + NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, nodeId); + return requestContentDirectUrl(nodeRef, versionId, renditionId, attachment, validFor); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeRef the node reference for which to obtain the direct access {@code URL} + * @param versionId the version id (aka version label) + * @param renditionId the rendition id + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL} + * @return a direct access {@code URL} object for the content. + */ + default DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, String versionId, String renditionId, boolean attachment) + { + return requestContentDirectUrl(nodeRef, versionId, renditionId, attachment, null); + } + + /** + * Gets a presigned URL to directly access content. + * @param nodeRef the node reference for which to obtain the direct access {@code URL} + * @param versionId the version id (aka version label) + * @param renditionId the rendition id + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL} + * @param validFor the time at which the direct access {@code URL} will expire + * @return a direct access {@code URL} object for the content. + */ + DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, String versionId, String renditionId, boolean attachment, Long validFor); } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/RenditionsImpl.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/RenditionsImpl.java index 3c1b4f0353..d253addecf 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/RenditionsImpl.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/RenditionsImpl.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2020 Alfresco Software LimitedP + * Copyright (C) 2005 - 2021 Alfresco Software LimitedP * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -26,6 +26,19 @@ package org.alfresco.rest.api.impl; +import java.io.File; +import java.io.InputStream; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.StringJoiner; +import java.util.TreeMap; + import org.alfresco.heartbeat.RenditionsDataCollector; import org.alfresco.model.ContentModel; import org.alfresco.query.PagingResults; @@ -61,6 +74,7 @@ import org.alfresco.rest.workflow.api.impl.MapBasedQueryWalker; import org.alfresco.service.ServiceRegistry; import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.ContentData; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.MimetypeService; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; @@ -78,19 +92,6 @@ import org.apache.commons.logging.LogFactory; import org.springframework.context.ResourceLoaderAware; import org.springframework.core.io.ResourceLoader; -import java.io.File; -import java.io.InputStream; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.StringJoiner; -import java.util.TreeMap; - /** * @author Jamal Kaabi-Mofrad, janv */ @@ -483,6 +484,22 @@ public class RenditionsImpl implements Renditions, ResourceLoaderAware return getContentImpl(nodeRef, renditionId, parameters); } + /** + * {@inheritDoc} + */ + public DirectAccessUrl requestContentDirectUrl(NodeRef nodeRef, String versionId, String renditionId, boolean attachment, Long validFor) + { + final NodeRef validatedNodeRef = validateNode(nodeRef.getStoreRef(), nodeRef.getId(), versionId, null); + NodeRef renditionNodeRef = getRenditionByName(validatedNodeRef, renditionId, null); + + if (renditionNodeRef == null) + { + throw new NotFoundException("The rendition with id: " + renditionId + " was not found."); + } + + return nodes.requestContentDirectUrl(renditionNodeRef, attachment, validFor); + } + private BinaryResource getContentImpl(NodeRef nodeRef, String renditionId, Parameters parameters) { NodeRef renditionNodeRef = getRenditionByName(nodeRef, renditionId, parameters); diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java index f9702f1c62..f2faf3ef4a 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -26,16 +26,27 @@ package org.alfresco.rest.api.nodes; +import javax.servlet.http.HttpServletResponse; + +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; +import org.alfresco.rest.api.DirectAccessUrlHelper; import org.alfresco.rest.api.Renditions; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.Rendition; import org.alfresco.rest.framework.BinaryProperties; +import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; +import org.alfresco.rest.framework.WebApiParam; +import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.resource.RelationshipResource; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceBinaryAction; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; +import org.alfresco.rest.framework.webscripts.WithResponse; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.util.PropertyCheck; @@ -58,12 +69,18 @@ public class NodeRenditionsRelation implements RelationshipResourceAction.Read + @@ -1423,6 +1424,7 @@ + From b7df7a80c1ace25ddd986939f4324a195705e210 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 18 Aug 2021 12:03:27 +0100 Subject: [PATCH 051/177] Feature/acs 1786 impl rest api for version renditions (#663) * Version corrections * ACS-1784 Implement Rest API for renditions * ACS-1786 Impl Rest API for Version Renditions --- .../nodes/NodeVersionRenditionsRelation.java | 47 +++++++++++++++++-- .../alfresco/public-rest-context.xml | 1 + 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionRenditionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionRenditionsRelation.java index 18f0db060d..c777d56ef5 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionRenditionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeVersionRenditionsRelation.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2020 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -26,24 +26,34 @@ package org.alfresco.rest.api.nodes; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; +import org.alfresco.rest.api.DirectAccessUrlHelper; import org.alfresco.rest.api.Renditions; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.Rendition; import org.alfresco.rest.framework.BinaryProperties; +import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; +import org.alfresco.rest.framework.WebApiParam; +import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.resource.RelationshipResource; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceBinaryAction; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; +import org.alfresco.rest.framework.webscripts.WithResponse; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.util.PropertyCheck; import org.springframework.beans.factory.InitializingBean; import org.springframework.extensions.webscripts.Status; -import java.util.List; - /** * * Node version renditions @@ -52,6 +62,7 @@ import java.util.List; * - POST /nodes/{nodeId}/versions/{versionId}/renditions * - GET /nodes/{nodeId}/versions/{versionId}/renditions/{renditionId} * - GET /nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/content + * - POST /nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/requestVersionDirectAccessUrl * * @author janv */ @@ -63,12 +74,18 @@ public class NodeVersionRenditionsRelation implements RelationshipResourceAction InitializingBean { private Renditions renditions; + private DirectAccessUrlHelper directAccessUrlHelper; public void setRenditions(Renditions renditions) { this.renditions = renditions; } + public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper) + { + this.directAccessUrlHelper = directAccessUrlHelper; + } + @Override public void afterPropertiesSet() throws Exception { @@ -115,4 +132,28 @@ public class NodeVersionRenditionsRelation implements RelationshipResourceAction return renditions.getContent(nodeRef, versionId, renditionId, parameters); } + @Operation ("requestVersionRenditionDirectAccessUrl") + @WebApiParam (name = "requestVersionRenditionDirectAccessUrl", title = "Request direct access url", description = "Request direct access url", kind = ResourceParameter.KIND.HTTP_BODY_OBJECT) + @WebApiDescription(title = "Request content url", + description="Generates a direct access URL.", + successStatus = HttpServletResponse.SC_OK) + public DirectAccessUrl requestContentDirectUrl(String nodeId, String versionId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) + { + boolean attachment = directAccessUrlHelper.getAttachment(directAccessUrlRequest); + Long validFor = directAccessUrlHelper.getDefaultExpiryTimeInSec(); + NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, nodeId); + String renditionId = parameters.getRelationship2Id(); + + DirectAccessUrl directAccessUrl; + try + { + directAccessUrl = renditions.requestContentDirectUrl(nodeRef, versionId, renditionId, attachment, validFor); + } + catch (DirectAccessUrlDisabledException ex) + { + throw new DisabledServiceException(ex.getMessage()); + } + return directAccessUrl; + } + } diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index f0a2c8ed0d..6c75c154e8 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1429,6 +1429,7 @@ + From d5210ab0588e61b7681b18a078df92d5aed541de Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 18 Aug 2021 11:50:14 +0000 Subject: [PATCH 052/177] [maven-release-plugin][skip ci] prepare release 11.109 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index fe7afbcf6d..0d0373ab8c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.109-SNAPSHOT + 11.109 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index e2ed410d88..d0913589ee 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.109-SNAPSHOT + 11.109 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 5d3938e2b9..334df56f61 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 862545343c..582b856307 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.109-SNAPSHOT + 11.109 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c4e0826592..f76ff50efb 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.109-SNAPSHOT + 11.109 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5abd0d73c6..a1f524447b 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.109-SNAPSHOT + 11.109 diff --git a/amps/pom.xml b/amps/pom.xml index 724fe95000..b5ae2e155d 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 78494efdce..9dbdfccf22 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.109-SNAPSHOT + 11.109 diff --git a/core/pom.xml b/core/pom.xml index 3772438789..a5d7b040f2 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/data-model/pom.xml b/data-model/pom.xml index 498b522fb5..5865af3930 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index a94a351363..20ebc079ef 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b11394e546..9df7ac6e15 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/pom.xml b/packaging/pom.xml index b5db8987b2..f0e66afcf5 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 51b8153201..743ec95c6d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 4554c896ed..826f52d282 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index cf009c9784..15b149d143 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 65d7b90623..b4c5ec296a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 05dfe9d423..1259bb564c 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index c3c27091e3..bbdb4e4e08 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109-SNAPSHOT + 11.109 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 93cb23731a..1f91d2bb35 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109-SNAPSHOT + 11.109 diff --git a/pom.xml b/pom.xml index 45b74eceb1..d036f82632 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.109-SNAPSHOT + 11.109 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.109 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 2ee63bddfd..0309149436 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 diff --git a/repository/pom.xml b/repository/pom.xml index 3d36d4b32d..f362987a91 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109-SNAPSHOT + 11.109 From 6ce7d45aa23cdb488c2fb99abe856c4030b1f948 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 18 Aug 2021 11:50:17 +0000 Subject: [PATCH 053/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 0d0373ab8c..a27e293401 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.109 + 11.110-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index d0913589ee..9ab79bb14e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.109 + 11.110-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 334df56f61..9dcc5bd547 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 582b856307..6c82c8a0d3 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.109 + 11.110-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index f76ff50efb..e5360a762f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.109 + 11.110-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index a1f524447b..446bbdb4fe 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.109 + 11.110-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index b5ae2e155d..5f71d76073 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 9dbdfccf22..6979f90dc2 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.109 + 11.110-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index a5d7b040f2..d12fa06716 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 5865af3930..713d67baeb 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 20ebc079ef..5a56ae14c5 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 9df7ac6e15..580fd771f9 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index f0e66afcf5..e4c18794e1 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 743ec95c6d..f11c515b28 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 826f52d282..d9f911a455 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 15b149d143..4231c6bd8c 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index b4c5ec296a..21aa7a7b17 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 1259bb564c..bbe37f5b4e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index bbdb4e4e08..5a2bcd86e4 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.109 + 11.110-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1f91d2bb35..8900705ebb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.109 + 11.110-SNAPSHOT diff --git a/pom.xml b/pom.xml index d036f82632..c82ac7d913 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.109 + 11.110-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.109 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 0309149436..46deb55d02 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index f362987a91..96a2cbe307 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.109 + 11.110-SNAPSHOT From 6b4df496cef24a208dd2a5e021f0638bd3b97af5 Mon Sep 17 00:00:00 2001 From: Stefan Kopf Date: Wed, 18 Aug 2021 15:27:21 +0200 Subject: [PATCH 054/177] Add missing 3rd party license files --- .../licenses/3rd-party/BSDlike-JDOM.txt | 54 +++++++++++++++++++ .../licenses/3rd-party/BSDlike-XPP3.txt | 46 ++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-JDOM.txt create mode 100644 packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-XPP3.txt diff --git a/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-JDOM.txt b/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-JDOM.txt new file mode 100644 index 0000000000..24746983ae --- /dev/null +++ b/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-JDOM.txt @@ -0,0 +1,54 @@ +/*-- + + Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions, and the disclaimer that follows + these conditions in the documentation and/or other materials + provided with the distribution. + + 3. The name "JDOM" must not be used to endorse or promote products + derived from this software without prior written permission. For + written permission, please contact . + + 4. Products derived from this software may not be called "JDOM", nor + may "JDOM" appear in their name, without prior written permission + from the JDOM Project Management . + + In addition, we request (but do not require) that you include in the + end-user documentation provided with the redistribution and/or in the + software itself an acknowledgement equivalent to the following: + "This product includes software developed by the + JDOM Project (http://www.jdom.org/)." + Alternatively, the acknowledgment may be graphical using the logos + available at http://www.jdom.org/images/logos. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + + This software consists of voluntary contributions made by many + individuals on behalf of the JDOM Project and was originally + created by Jason Hunter and + Brett McLaughlin . For more information + on the JDOM Project, please see . + + */ + diff --git a/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-XPP3.txt b/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-XPP3.txt new file mode 100644 index 0000000000..4cc7224e81 --- /dev/null +++ b/packaging/distribution/src/main/resources/licenses/3rd-party/BSDlike-XPP3.txt @@ -0,0 +1,46 @@ +Indiana University Extreme! Lab Software License + +Version 1.1.1 + +Copyright (c) 2002 Extreme! Lab, Indiana University. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the distribution. + +3. The end-user documentation included with the redistribution, if any, + must include the following acknowledgment: + + "This product includes software developed by the Indiana University + Extreme! Lab (http://www.extreme.indiana.edu/)." + +Alternately, this acknowledgment may appear in the software itself, +if and wherever such third-party acknowledgments normally appear. + +4. The names "Indiana Univeristy" and "Indiana Univeristy Extreme! Lab" +must not be used to endorse or promote products derived from this +software without prior written permission. For written permission, +please contact http://www.extreme.indiana.edu/. + +5. Products derived from this software may not use "Indiana Univeristy" +name nor may "Indiana Univeristy" appear in their name, without prior +written permission of the Indiana University. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHORS, COPYRIGHT HOLDERS OR ITS CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. From 692ff3ffa8ec48bf8a911ae46e8f634acf7cbcb7 Mon Sep 17 00:00:00 2001 From: Jamal Kaabi-Mofrad Date: Wed, 18 Aug 2021 16:10:44 +0100 Subject: [PATCH 055/177] REPO-5660: Added a patch for the new added ALFRESCO_SYSTEM_ADMINISTRATORS group. (#669) --- .../messages/patch-service.properties | 2 +- .../alfresco/patch/patch-services-context.xml | 34 +++++++++++++++++-- .../resources/alfresco/repository.properties | 2 +- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/repository/src/main/resources/alfresco/messages/patch-service.properties b/repository/src/main/resources/alfresco/messages/patch-service.properties index ef0c0c90c0..51701e3a01 100644 --- a/repository/src/main/resources/alfresco/messages/patch-service.properties +++ b/repository/src/main/resources/alfresco/messages/patch-service.properties @@ -406,4 +406,4 @@ patch.db-V6.3-add-indexes-node-transaction.description=Create additional indexes patch.db-V7.1.0-remove-alf_server-table.description=Removes alf_server table and constraints - +patch.alfrescoSystemAdministrators.description=Adds the 'GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS' group diff --git a/repository/src/main/resources/alfresco/patch/patch-services-context.xml b/repository/src/main/resources/alfresco/patch/patch-services-context.xml index 49a5b90d25..e3daaeef11 100644 --- a/repository/src/main/resources/alfresco/patch/patch-services-context.xml +++ b/repository/src/main/resources/alfresco/patch/patch-services-context.xml @@ -1424,7 +1424,37 @@ ${system.remove-alf_server-table-from-db.ignored} - + + + patch.alfrescoSystemAdministrators + patch.alfrescoSystemAdministrators.description + 0 + 15001 + 15002 + + + + + + + + + + + + ALFRESCO_SYSTEM_ADMINISTRATORS + + + ALFRESCO_SYSTEM_ADMINISTRATORS + + + + APP.DEFAULT + AUTH.ALF + + + + + diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index b95cbf72ae..f4cb848b8e 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -3,7 +3,7 @@ repository.name=Main Repository # Schema number -version.schema=15001 +version.schema=15002 # Directory configuration From 2c6a7e3af65a46190731eef63c6831c97d717cfe Mon Sep 17 00:00:00 2001 From: Iulian Aftene Date: Thu, 19 Aug 2021 14:49:15 +0300 Subject: [PATCH 056/177] ACS-1831 - Test requestContentDirectUrl for Renditions REST API endpoint (#670) ACS-1831 - Test requestContentDirectUrl for Renditions REST API endpoint -add test for RequestContentDirectUrl Renditions --- .../alfresco/rest/api/tests/NodeApiTest.java | 47 ++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java index 426f41e41d..460af23ab4 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java @@ -73,7 +73,6 @@ import org.alfresco.rest.api.tests.client.HttpResponse; import org.alfresco.rest.api.tests.client.PublicApiClient; import org.alfresco.rest.api.tests.client.PublicApiClient.ExpectedPaging; import org.alfresco.rest.api.tests.client.PublicApiClient.Paging; -import org.alfresco.rest.api.tests.client.PublicApiHttpClient; import org.alfresco.rest.api.tests.client.PublicApiHttpClient.BinaryPayload; import org.alfresco.rest.api.tests.client.data.Association; import org.alfresco.rest.api.tests.client.data.ContentInfo; @@ -82,6 +81,7 @@ import org.alfresco.rest.api.tests.client.data.Folder; import org.alfresco.rest.api.tests.client.data.Node; import org.alfresco.rest.api.tests.client.data.PathInfo; import org.alfresco.rest.api.tests.client.data.PathInfo.ElementInfo; +import org.alfresco.rest.api.tests.client.data.Rendition; import org.alfresco.rest.api.tests.client.data.SiteRole; import org.alfresco.rest.api.tests.client.data.UserInfo; import org.alfresco.rest.api.tests.util.MultiPartBuilder; @@ -6322,5 +6322,50 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); } + + @Test + public void testRequestRenditionContentDirectUrl() throws Exception + { + setRequestContext(user1); + + RepoService.TestNetwork networkN1; + RepoService.TestPerson userOneN1; + Site userOneN1Site; + + networkN1 = repoService.createNetworkWithAlias("ping", true); + networkN1.create(); + userOneN1 = networkN1.createUser(); + + setRequestContext(networkN1.getId(), userOneN1.getId(), null); + + String siteTitle = "RandomSite" + System.currentTimeMillis(); + userOneN1Site = createSite(siteTitle, SiteVisibility.PRIVATE); + + // Create a folder within the site document's library + String folderName = "folder" + System.currentTimeMillis(); + String parentId = getSiteContainerNodeId(userOneN1Site.getId(), "documentLibrary"); + String folder_Id = createNode(parentId, folderName, TYPE_CM_FOLDER, null).getId(); + + // Create multipart request - pdf file + String renditionName = "doclib"; + String fileName = "quick.pdf"; + File file = getResourceFile(fileName); + MultiPartRequest reqBody = MultiPartBuilder.create() + .setFileData(new FileData(fileName, file)) + .setRenditions(Collections.singletonList(renditionName)) + .build(); + + // Upload quick.pdf file into 'folder' - including request to create 'doclib' thumbnail + HttpResponse response = post(getNodeChildrenUrl(folder_Id), reqBody.getBody(), null, reqBody.getContentType(), 201); + Document document = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + String contentNodeId = document.getId(); + + // wait and check that rendition is created ... + Rendition rendition = waitAndGetRendition(contentNodeId, null, renditionName); + assertNotNull(rendition); + assertEquals(Rendition.RenditionStatus.CREATED, rendition.getStatus()); + + getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); + } } From 3f8f05b0d4d5888cf352ef48707deab8e6c89a30 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 19 Aug 2021 12:34:37 +0000 Subject: [PATCH 057/177] [maven-release-plugin][skip ci] prepare release 11.110 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index a27e293401..8623eab5ef 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.110-SNAPSHOT + 11.110 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 9ab79bb14e..6e97f06978 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.110-SNAPSHOT + 11.110 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 9dcc5bd547..2d4ab4320b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 6c82c8a0d3..ee133b076a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.110-SNAPSHOT + 11.110 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e5360a762f..e62d204e0e 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.110-SNAPSHOT + 11.110 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 446bbdb4fe..2aec580775 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.110-SNAPSHOT + 11.110 diff --git a/amps/pom.xml b/amps/pom.xml index 5f71d76073..6ded1b9621 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 6979f90dc2..c41fa7285a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.110-SNAPSHOT + 11.110 diff --git a/core/pom.xml b/core/pom.xml index d12fa06716..5a7ad207ad 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/data-model/pom.xml b/data-model/pom.xml index 713d67baeb..c100aa0da6 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 5a56ae14c5..6c4095cfc7 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 580fd771f9..9dcc8e328b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/pom.xml b/packaging/pom.xml index e4c18794e1..d7712cbb7a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index f11c515b28..cba2cab81d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d9f911a455..8623302384 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4231c6bd8c..7a58f84963 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 21aa7a7b17..f30cc8ab5b 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bbe37f5b4e..57c34887cf 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5a2bcd86e4..55f1990c9a 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110-SNAPSHOT + 11.110 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 8900705ebb..88f73904c9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110-SNAPSHOT + 11.110 diff --git a/pom.xml b/pom.xml index c82ac7d913..2e8c14a4f7 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.110-SNAPSHOT + 11.110 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.110 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 46deb55d02..fe8cc3ef0b 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 diff --git a/repository/pom.xml b/repository/pom.xml index 96a2cbe307..bdc0050d55 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110-SNAPSHOT + 11.110 From aa6c347d741ac7efd8f1e73934842339cb2d71d8 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 19 Aug 2021 12:34:39 +0000 Subject: [PATCH 058/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 8623eab5ef..860f4ccebe 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.110 + 11.111-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6e97f06978..e69a489d4f 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.110 + 11.111-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 2d4ab4320b..41101b1d00 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ee133b076a..92f03caa9a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.110 + 11.111-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e62d204e0e..45f02cb3f7 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.110 + 11.111-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 2aec580775..ee2826c0ea 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.110 + 11.111-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 6ded1b9621..327840d9db 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c41fa7285a..3c61ee429d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.110 + 11.111-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 5a7ad207ad..5b269f04d6 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index c100aa0da6..31e340cdf1 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 6c4095cfc7..7d1ce5562e 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 9dcc8e328b..92bf71beca 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index d7712cbb7a..e04217afbd 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index cba2cab81d..78b006b1b4 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 8623302384..888ab9d2e5 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 7a58f84963..32e7c7bf9a 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index f30cc8ab5b..2f2fbea37d 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 57c34887cf..6f9ad1dee3 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 55f1990c9a..6f18a7f87e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.110 + 11.111-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 88f73904c9..c83c87ab7e 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.110 + 11.111-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2e8c14a4f7..62f2ca0647 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.110 + 11.111-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.110 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index fe8cc3ef0b..edfe71279b 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index bdc0050d55..2d97ff19c2 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.110 + 11.111-SNAPSHOT From e7cec99d075a019af42d2d84c29064c07f5f7cdf Mon Sep 17 00:00:00 2001 From: tiagosalvado10 <9038083+tiagosalvado10@users.noreply.github.com> Date: Thu, 19 Aug 2021 13:37:23 +0100 Subject: [PATCH 059/177] [ACS-1893] Bump tas-restapi to 1.63 (#673) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 62f2ca0647..80e61dc411 100644 --- a/pom.xml +++ b/pom.xml @@ -114,7 +114,7 @@ 2.7.2 3.0.45 3.3.0 - 1.61 + 1.63 1.30 1.8 1.6 From 113c27d130ccd739cc3960b6562f8d399eab57e1 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 19 Aug 2021 13:32:13 +0000 Subject: [PATCH 060/177] [maven-release-plugin][skip ci] prepare release 11.111 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 860f4ccebe..7cefd79fe9 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.111-SNAPSHOT + 11.111 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index e69a489d4f..ceeb84f436 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.111-SNAPSHOT + 11.111 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 41101b1d00..8abfd63d72 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 92f03caa9a..5f1b8cec82 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.111-SNAPSHOT + 11.111 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 45f02cb3f7..0908fed50b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.111-SNAPSHOT + 11.111 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index ee2826c0ea..514d5be386 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.111-SNAPSHOT + 11.111 diff --git a/amps/pom.xml b/amps/pom.xml index 327840d9db..e4375b00f5 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3c61ee429d..a3e373879f 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.111-SNAPSHOT + 11.111 diff --git a/core/pom.xml b/core/pom.xml index 5b269f04d6..d86ed12c05 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/data-model/pom.xml b/data-model/pom.xml index 31e340cdf1..486d86c924 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 7d1ce5562e..aa722149af 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 92bf71beca..02bdd465a8 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/pom.xml b/packaging/pom.xml index e04217afbd..fc7af193f9 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 78b006b1b4..f4ff544390 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 888ab9d2e5..20f7b42aef 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 32e7c7bf9a..afe7bb34b1 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 2f2fbea37d..8b3fda0545 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 6f9ad1dee3..cf8fb491fd 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 6f18a7f87e..2ef164463c 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111-SNAPSHOT + 11.111 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index c83c87ab7e..c62b2d2a0a 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111-SNAPSHOT + 11.111 diff --git a/pom.xml b/pom.xml index 80e61dc411..3797932a94 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.111-SNAPSHOT + 11.111 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.111 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index edfe71279b..0ad8dc807e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 diff --git a/repository/pom.xml b/repository/pom.xml index 2d97ff19c2..b7a77daa25 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111-SNAPSHOT + 11.111 From 42d1176ccfc2b85be2be3b33dcb11bc27b4b8021 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 19 Aug 2021 13:32:16 +0000 Subject: [PATCH 061/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7cefd79fe9..6277dcacf7 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.111 + 11.112-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index ceeb84f436..8c685339e4 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.111 + 11.112-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8abfd63d72..c93d35f3ce 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5f1b8cec82..32f67a8bad 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.111 + 11.112-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0908fed50b..c8de7175b7 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.111 + 11.112-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 514d5be386..465969a557 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.111 + 11.112-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index e4375b00f5..26f151bc0d 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a3e373879f..9ad8835569 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.111 + 11.112-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index d86ed12c05..8d1d742839 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 486d86c924..b648427574 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index aa722149af..b4a0a3a8da 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 02bdd465a8..e8d0a549de 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index fc7af193f9..4b453eb9dd 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index f4ff544390..9d5f9d368c 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 20f7b42aef..260e62d375 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index afe7bb34b1..269fa69797 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 8b3fda0545..cb9617f90d 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index cf8fb491fd..8f32fc1ce8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 2ef164463c..c4f2f6ac3e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.111 + 11.112-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index c62b2d2a0a..5b7fbe1992 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.111 + 11.112-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3797932a94..f0ea59626a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.111 + 11.112-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.111 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 0ad8dc807e..f846f35311 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index b7a77daa25..a380857ec8 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.111 + 11.112-SNAPSHOT From b84e1f81002b24aeda9e6653e88acfb4ccf973f7 Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Fri, 20 Aug 2021 15:49:10 +0100 Subject: [PATCH 062/177] ACS-1778 Common transform routing code for Repo and t-router (#648) Main change is the removal of code from CombinedConfig into alfresco-transform-model as CombinedTransformConfig.The Code within LocalCombinedConfig has now moved to CombinedConfig as there is only one type of config now. * Bump alfresco-transform-model from 1.3.1.1 to 1.4.0 * Add logWarn method --- pom.xml | 2 +- repository/pom.xml | 4 +- .../transform/LocalCombinedConfig.java | 143 -------- .../LocalTransformServiceRegistry.java | 8 +- .../client/registry/CombinedConfig.java | 333 +----------------- .../TransformServiceRegistryImpl.java | 6 + .../java/org/alfresco/AllUnitTestsSuite.java | 1 - ...calTransformServiceRegistryConfigTest.java | 213 +++++++++-- .../TransformServiceRegistryConfigTest.java | 295 ---------------- ...ransform-service-config-pipeline-test.json | 47 --- .../transform-service-config-test.json | 144 -------- 11 files changed, 210 insertions(+), 986 deletions(-) delete mode 100644 repository/src/main/java/org/alfresco/repo/content/transform/LocalCombinedConfig.java delete mode 100644 repository/src/test/java/org/alfresco/transform/client/registry/TransformServiceRegistryConfigTest.java delete mode 100644 repository/src/test/resources/alfresco/transform-service-config-pipeline-test.json delete mode 100644 repository/src/test/resources/alfresco/transform-service-config-test.json diff --git a/pom.xml b/pom.xml index f0ea59626a..4204a6136b 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ 0.2 5.23.0 5.23.0 - 1.3.1 + 1.4.0 6.2 0.0.12 diff --git a/repository/pom.xml b/repository/pom.xml index a380857ec8..57002a5bc9 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -718,7 +718,7 @@ org.alfresco alfresco-transform-model - ${dependency.transform.model.version} + ${dependency.alfresco-transform-model.version} @@ -740,7 +740,7 @@ org.alfresco alfresco-transform-model - ${dependency.transform.model.version} + ${dependency.alfresco-transform-model.version} tests test diff --git a/repository/src/main/java/org/alfresco/repo/content/transform/LocalCombinedConfig.java b/repository/src/main/java/org/alfresco/repo/content/transform/LocalCombinedConfig.java deleted file mode 100644 index f8a331acef..0000000000 --- a/repository/src/main/java/org/alfresco/repo/content/transform/LocalCombinedConfig.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2019 - 2021 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ -package org.alfresco.repo.content.transform; - -import org.alfresco.transform.client.model.config.Transformer; -import org.alfresco.transform.client.registry.CombinedConfig; -import org.alfresco.transform.client.registry.TransformServiceRegistryImpl; -import org.apache.commons.logging.Log; - -import java.util.List; - -import static org.alfresco.repo.content.transform.LocalTransformServiceRegistry.LOCAL_TRANSFORMER; -import static org.alfresco.repo.content.transform.LocalTransformServiceRegistry.URL; -import static org.alfresco.util.EqualsHelper.nullSafeEquals; - -/** - * Extends the standard CombinedConfig to add in removal of overridden or invalid transforms. - * - * @author adavis - */ -public class LocalCombinedConfig extends CombinedConfig -{ - public LocalCombinedConfig(Log log) - { - super(log); - } - - /** - * Discards a transformer that is invalid (e.g. T-Engines with the same name, baseUrl has not been specified on a - * T-Engine transform) or overridden an earlier transform with the same name). If the overridden transform is from - * a T-Engine and the overriding transform is not a pipeline or a failover, we also copy the {@code baseUrl} from - * the overridden transform so that the original T-Engine will still be called. - * - * @param i the current transform's index into combinedTransformers. - * @param combinedTransformers the full list of transformers in the order they were read. - * @param registry that wil hold the transforms. - * @param transformAndItsOrigin the current combinedTransformers element. - * @param transformer the current transformer. - * @param name the current transformer's name. - * @param readFrom where the current transformer was read from. - * @param isPipeline if the current transform is a pipeline. - * @param isFailover if the current transform is a failover. - * - * @returns the index of a transform to be removed. {@code -1} is returned if there should not be a remove. - * @throws IllegalArgumentException if the current transform has a problem and should be removed. - */ - @Override - protected int removeInvalidTransformer(int i, List combinedTransformers, - TransformServiceRegistryImpl registry, - TransformAndItsOrigin transformAndItsOrigin, Transformer transformer, - String name, String readFrom, boolean isPipeline, boolean isFailover) - { - int indexToRemove = -1; - - if (name == null || "".equals(name.trim())) - { - throw new IllegalArgumentException("Local transformer names may not be null. Read from " + readFrom); - } - - // Get the baseUrl - test code might change it - String baseUrl = transformAndItsOrigin.getBaseUrl(); - String testBaseUrl = ((LocalTransformServiceRegistry)registry).getBaseUrlIfTesting(name, baseUrl); - if (!nullSafeEquals(baseUrl, testBaseUrl)) - { - baseUrl = testBaseUrl; - transformAndItsOrigin = new TransformAndItsOrigin(transformer, baseUrl, readFrom); - combinedTransformers.set(i, transformAndItsOrigin); - } - - boolean isOneStepTransform = !isPipeline && !isFailover && !name.equals(LocalPassThroughTransform.NAME); - - // Check to see if the name has been used before. - int j = lastIndexOf(name, combinedTransformers, i); - if (j >= 0) - { - if (baseUrl != null) // If a T-Engine, else it is an override - { - throw new IllegalArgumentException("Local T-Engine transformer " + transformerName(name) + - " must be a unique name. Read from " + readFrom); - } - - if (isOneStepTransform) - { - // We need to set the baseUrl of the original transform in the one overriding, - // so we can talk to its T-Engine - TransformAndItsOrigin overriddenTransform = combinedTransformers.get(j); - String overriddenBaseUrl = overriddenTransform.getBaseUrl(); - Transformer overriddenTransformTransform = transformAndItsOrigin.getTransformer(); - TransformAndItsOrigin overridingTransform = new TransformAndItsOrigin( - overriddenTransformTransform, overriddenBaseUrl, readFrom); - combinedTransformers.set(i, overridingTransform); - } - indexToRemove = j; - } - else if (isOneStepTransform && baseUrl == null) - { - throw new IllegalArgumentException("Local T-Engine transformer " + transformerName(name) + - " must have its baseUrl set in " + LOCAL_TRANSFORMER + name + URL + " Read from " + - readFrom); - } - return indexToRemove; - } - - private static int lastIndexOf(String name, List combinedTransformers, int toIndex) - { - // Lists are short (< 100) entries and this is not a frequent or time critical step, so walking the list - // should be okay. - for (int j = toIndex-1; j >=0; j--) - { - TransformAndItsOrigin transformAndItsOrigin = combinedTransformers.get(j); - Transformer transformer = transformAndItsOrigin.getTransformer(); - String transformerName = transformer.getTransformerName(); - if (name.equals(transformerName)) - { - return j; - } - } - return -1; - } -} diff --git a/repository/src/main/java/org/alfresco/repo/content/transform/LocalTransformServiceRegistry.java b/repository/src/main/java/org/alfresco/repo/content/transform/LocalTransformServiceRegistry.java index bc4daa6ed7..ff1ab924ae 100644 --- a/repository/src/main/java/org/alfresco/repo/content/transform/LocalTransformServiceRegistry.java +++ b/repository/src/main/java/org/alfresco/repo/content/transform/LocalTransformServiceRegistry.java @@ -133,7 +133,7 @@ public class LocalTransformServiceRegistry extends TransformServiceRegistryImpl @Override public boolean readConfig() throws IOException { - CombinedConfig combinedConfig = new LocalCombinedConfig(getLog()); + CombinedConfig combinedConfig = new CombinedConfig(getLog()); List urls = getTEngineUrls(); boolean successReadingConfig = combinedConfig.addRemoteConfig(urls, "T-Engine"); successReadingConfig &= combinedConfig.addLocalConfig("alfresco/transforms"); @@ -315,12 +315,6 @@ public class LocalTransformServiceRegistry extends TransformServiceRegistryImpl options; } - // When testing, we need to be able to set the baseUrl when reading from a file. - public String getBaseUrlIfTesting(String name, String baseUrl) - { - return baseUrl; - } - @Override protected Log getLog() { diff --git a/repository/src/main/java/org/alfresco/transform/client/registry/CombinedConfig.java b/repository/src/main/java/org/alfresco/transform/client/registry/CombinedConfig.java index 8234ad14d6..1b208c5f61 100644 --- a/repository/src/main/java/org/alfresco/transform/client/registry/CombinedConfig.java +++ b/repository/src/main/java/org/alfresco/transform/client/registry/CombinedConfig.java @@ -30,10 +30,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.repo.content.transform.LocalPassThroughTransform; import org.alfresco.service.cmr.repository.MimetypeService; -import org.alfresco.transform.client.model.config.SupportedSourceAndTarget; import org.alfresco.transform.client.model.config.TransformConfig; -import org.alfresco.transform.client.model.config.TransformOption; -import org.alfresco.transform.client.model.config.TransformStep; import org.alfresco.transform.client.model.config.Transformer; import org.alfresco.util.ConfigFileFinder; import org.apache.commons.logging.Log; @@ -47,58 +44,22 @@ import org.apache.http.util.EntityUtils; import java.io.IOException; import java.io.StringReader; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.stream.Collectors; -import java.util.stream.Stream; - -import static org.alfresco.repo.content.metadata.AsynchronousExtractor.isMetadataEmbedMimetype; -import static org.alfresco.repo.content.metadata.AsynchronousExtractor.isMetadataExtractMimetype; /** - * This class reads multiple T-Engine config and local files and registers them all with a registry as if they were all + * This class reads multiple T-Engine config and local files and registers as if they were all * in one file. Transform options are shared between all sources.

* - * The caller should make calls to {@link #addRemoteConfig(List, String)} and {@link #addLocalConfig(String)} followed - * by a call to {@link #register(TransformServiceRegistryImpl)}. + * The caller should make calls to {@link #addRemoteConfig(List, String)}, {@link #addLocalConfig(String)} or + * {@link #addTransformConfig(TransformConfig, String, String)} followed by a call to + * {@link #register(TransformServiceRegistryImpl)}. * * @author adavis */ -public class CombinedConfig +public class CombinedConfig extends CombinedTransformConfig { private final Log log; - public static class TransformAndItsOrigin - { - final Transformer transformer; - final String baseUrl; - final String readFrom; - - public TransformAndItsOrigin(Transformer transformer, String baseUrl, String readFrom) - { - this.transformer = transformer; - this.baseUrl = baseUrl; - this.readFrom = readFrom; - } - - public Transformer getTransformer() - { - return transformer; - } - - public String getBaseUrl() - { - return baseUrl; - } - } - - Map> combinedTransformOptions = new HashMap<>(); - List combinedTransformers = new ArrayList<>(); - private ObjectMapper jsonObjectMapper = new ObjectMapper(); private ConfigFileFinder configFileFinder; private int tEngineCount; @@ -113,9 +74,7 @@ public class CombinedConfig protected void readJson(JsonNode jsonNode, String readFrom, String baseUrl) { TransformConfig transformConfig = jsonObjectMapper.convertValue(jsonNode, TransformConfig.class); - transformConfig.getTransformOptions().forEach((key, map) -> combinedTransformOptions.put(key, map)); - transformConfig.getTransformers().forEach(transformer -> combinedTransformers.add( - new TransformAndItsOrigin(transformer, baseUrl, readFrom))); + addTransformConfig(transformConfig, readFrom, baseUrl); } }; } @@ -255,6 +214,12 @@ public class CombinedConfig return message; } + @Override + protected boolean isPassThroughTransformName(String name) + { + return name.equals(LocalPassThroughTransform.NAME); + } + /** * Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" * from selected text based types. @@ -273,277 +238,7 @@ public class CombinedConfig data.setTEngineCount(tEngineCount); data.setFileCount(configFileFinder.getFileCount()); - combinedTransformers = removeInvalidTransformers(combinedTransformers, registry); - combinedTransformers = sortTransformers(combinedTransformers, registry); - addWildcardSupportedSourceAndTarget(combinedTransformers); - - combinedTransformers.forEach(transformer -> - registry.register(transformer.transformer, combinedTransformOptions, - transformer.baseUrl, transformer.readFrom)); - } - - /** - * Discards transformers that are invalid (e.g. transformers that have both pipeline and failover sections). Calls - * {@link #removeInvalidTransformer(int, List, TransformServiceRegistryImpl, TransformAndItsOrigin, Transformer, - * String, String, boolean, boolean)} for each transform, so that subclasses (LocalCombinedConfig), may also - * discard invalid transforms or overridden transforms. - * - * @param combinedTransformers the full list of transformers in the order they were read. - * @param registry that wil hold the transforms. - */ - private List removeInvalidTransformers(List combinedTransformers, - TransformServiceRegistryImpl registry) - { - for (int i=0; i pipeline = transformer.getTransformerPipeline(); - List failover = transformer.getTransformerFailover(); - boolean isPipeline = pipeline != null && !pipeline.isEmpty(); - boolean isFailover = failover != null && !failover.isEmpty(); - - if (isPipeline && isFailover) - { - throw new IllegalArgumentException("Transformer " + transformerName(name) + - " cannot have pipeline and failover sections. Read from " + readFrom); - } - - // Local transforms may override each other or be invalid - int indexToRemove = removeInvalidTransformer(i, combinedTransformers, registry, transformAndItsOrigin, - transformer, name, readFrom, isPipeline, isFailover); - - // If required remove the requested transform - if (indexToRemove >= 0) - { - combinedTransformers.remove(indexToRemove); - // this may also require the current index i to be changed so we don't skip one. - if (i >= indexToRemove) - { - i--; - } - } - } - catch (IllegalArgumentException e) - { - String msg = e.getMessage(); - registry.logError(msg); - combinedTransformers.remove(i--); - } - } - return combinedTransformers; - } - - protected int removeInvalidTransformer(int i, List combinedTransformers, - TransformServiceRegistryImpl registry, - TransformAndItsOrigin transformAndItsOrigin, Transformer transformer, - String name, String readFrom, boolean isPipeline, boolean isFailover) - { - return -1; - } - - protected static String transformerName(String name) - { - return name == null ? " without a name" : "\"" + name + "\""; - } - - // Sort transformers so there are no forward references, if that is possible. - private List sortTransformers(List original, TransformServiceRegistryImpl registry) - { - List transformers = new ArrayList<>(original.size()); - List todo = new ArrayList<>(original.size()); - Set transformerNames = new HashSet<>(); - boolean added; - do - { - added = false; - for (TransformAndItsOrigin entry : original) - { - String name = entry.transformer.getTransformerName(); - List pipeline = entry.transformer.getTransformerPipeline(); - Set referencedTransformerNames = new HashSet<>(); - boolean addEntry = true; - if (pipeline != null) - { - for (TransformStep step : pipeline) - { - String stepName = step.getTransformerName(); - referencedTransformerNames.add(stepName); - } - } - List failover = entry.transformer.getTransformerFailover(); - if (failover != null) - { - referencedTransformerNames.addAll(failover); - } - - for (String referencedTransformerName : referencedTransformerNames) - { - if (!transformerNames.contains(referencedTransformerName)) - { - todo.add(entry); - addEntry = false; - break; - } - } - - if (addEntry) - { - transformers.add(entry); - added = true; - if (name != null) - { - transformerNames.add(name); - } - } - } - original.clear(); - original.addAll(todo); - todo.clear(); - } - while (added && !original.isEmpty()); - - transformers.addAll(todo); - - for (TransformAndItsOrigin transformAndItsOrigin : original) - { - String name = transformAndItsOrigin.getTransformer().getTransformerName(); - registry.logError("Transformer " + transformerName(name) + - " ignored as step transforms do not exist. Read from " + transformAndItsOrigin.readFrom); - } - - return transformers; - } - - private void addWildcardSupportedSourceAndTarget(List combinedTransformers) - { - Map transformers = new HashMap<>(); - combinedTransformers.forEach(ct -> transformers.put(ct.transformer.getTransformerName(), ct.transformer)); - - combinedTransformers.forEach(transformAndItsOrigin -> - { - Transformer transformer = transformAndItsOrigin.transformer; - - // If there are no SupportedSourceAndTarget, then work out all the wildcard combinations. - if (transformer.getSupportedSourceAndTargetList().isEmpty()) - { - List pipeline = transformer.getTransformerPipeline(); - List failover = transformer.getTransformerFailover(); - boolean isPipeline = pipeline != null && !pipeline.isEmpty(); - boolean isFailover = failover != null && !failover.isEmpty(); - if (isFailover) - { - // Copy all SupportedSourceAndTarget values from each step transformer - Set supportedSourceAndTargets = failover.stream().flatMap( - name -> transformers.get(name).getSupportedSourceAndTargetList().stream()). - collect(Collectors.toSet()); - transformer.setSupportedSourceAndTargetList(supportedSourceAndTargets); - } - else if (isPipeline) - { - // Build up SupportedSourceAndTarget values. The list of source types and max sizes will come from the - // initial step transformer that have a target mimetype that matches the first intermediate mimetype. - // We then step through all intermediate transformers checking the next intermediate type is supported. - // When we get to the last step transformer, it provides all the target mimetypes based on the previous - // intermediate mimeype. Any combinations supported by the first transformer are excluded. - boolean first = true; - String sourceMediaType = null; - Set sourceMediaTypesAndMaxSizes = null; - Set firstTransformOptions = null; - for (TransformStep step : pipeline) - { - String name = step.getTransformerName(); - Transformer stepTransformer = transformers.get(name); - if (stepTransformer == null) - { - break; - } - - String stepTrg = step.getTargetMediaType(); - if (first) - { - first = false; - sourceMediaTypesAndMaxSizes = stepTransformer.getSupportedSourceAndTargetList().stream(). - filter(s -> stepTrg.equals(s.getTargetMediaType())). - collect(Collectors.toSet()); - sourceMediaType = stepTrg; - firstTransformOptions = stepTransformer.getTransformOptions(); - } - else - { - final String src = sourceMediaType; - if (stepTrg == null) // if final step - { - // Create a cartesian product of sourceMediaType,MaxSourceSize and TargetMediaType where - // the source matches the last intermediate. - Set supportedSourceAndTargets = sourceMediaTypesAndMaxSizes.stream(). - flatMap(s -> stepTransformer.getSupportedSourceAndTargetList().stream(). - filter(st -> - { - String targetMimetype = st.getTargetMediaType(); - return st.getSourceMediaType().equals(src) && - !(isMetadataExtractMimetype(targetMimetype) || - isMetadataEmbedMimetype(targetMimetype)); - }). - map(t -> t.getTargetMediaType()). - map(trg -> SupportedSourceAndTarget.builder(). - withSourceMediaType(s.getSourceMediaType()). - withMaxSourceSizeBytes(s.getMaxSourceSizeBytes()). - withPriority(s.getPriority()). - withTargetMediaType(trg).build())). - collect(Collectors.toSet()); - - // Exclude duplicates with the first transformer, if it has the same options. - // There is no point doing more work. - Set transformOptions = transformer.getTransformOptions(); - if (sameOptions(transformOptions, firstTransformOptions)) - { - supportedSourceAndTargets.removeAll(sourceMediaTypesAndMaxSizes); - } - - transformer.setSupportedSourceAndTargetList(supportedSourceAndTargets); - } - else // if intermediate step - { - // Check source to target is supported (it normally is) - if (!stepTransformer.getSupportedSourceAndTargetList().stream(). - anyMatch(st -> st.getSourceMediaType().equals(src) && - st.getTargetMediaType().equals(stepTrg))) - { - break; - } - - sourceMediaType = stepTrg; - } - } - } - } - } - }); - } - - private boolean sameOptions(Set transformOptionNames1, Set transformOptionNames2) - { - // They have the same names - if (transformOptionNames1.equals(transformOptionNames2)) - { - return true; - } - - // Check the actual options. - Set transformOptions1 = getTransformOptions(transformOptionNames1); - Set transformOptions2 = getTransformOptions(transformOptionNames2); - return transformOptions1.equals(transformOptions2); - } - - private Set getTransformOptions(Set transformOptionNames) - { - Set transformOptions = new HashSet<>(); - transformOptionNames.forEach(name->transformOptions.addAll(combinedTransformOptions.get(name))); - return transformOptions; + combineTransformerConfig(registry); + registerCombinedTransformers(registry); } } diff --git a/repository/src/main/java/org/alfresco/transform/client/registry/TransformServiceRegistryImpl.java b/repository/src/main/java/org/alfresco/transform/client/registry/TransformServiceRegistryImpl.java index 2467a924ff..72cca58777 100644 --- a/repository/src/main/java/org/alfresco/transform/client/registry/TransformServiceRegistryImpl.java +++ b/repository/src/main/java/org/alfresco/transform/client/registry/TransformServiceRegistryImpl.java @@ -175,6 +175,12 @@ public abstract class TransformServiceRegistryImpl extends AbstractTransformRegi getLog().error(msg); } + @Override + protected void logWarn(String msg) + { + getLog().warn(msg); + } + @Override public String findTransformerName(final String sourceMimetype, final long sourceSizeInBytes, final String targetMimetype, final Map actualOptions, diff --git a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java index 7836b7cbec..c403da3452 100644 --- a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java +++ b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java @@ -235,7 +235,6 @@ import org.junit.runners.Suite; org.alfresco.repo.events.ClientUtilTest.class, org.alfresco.repo.rendition2.RenditionService2Test.class, org.alfresco.repo.rendition2.TransformationOptionsConverterTest.class, - org.alfresco.transform.client.registry.TransformServiceRegistryConfigTest.class, org.alfresco.repo.event2.RepoEvent2UnitSuite.class, diff --git a/repository/src/test/java/org/alfresco/transform/client/registry/LocalTransformServiceRegistryConfigTest.java b/repository/src/test/java/org/alfresco/transform/client/registry/LocalTransformServiceRegistryConfigTest.java index a30f2e1399..866afecb63 100644 --- a/repository/src/test/java/org/alfresco/transform/client/registry/LocalTransformServiceRegistryConfigTest.java +++ b/repository/src/test/java/org/alfresco/transform/client/registry/LocalTransformServiceRegistryConfigTest.java @@ -28,16 +28,19 @@ package org.alfresco.transform.client.registry; import com.fasterxml.jackson.databind.ObjectMapper; import org.alfresco.repo.content.MimetypeMap; import org.alfresco.repo.content.transform.AbstractLocalTransform; -import org.alfresco.repo.content.transform.LocalCombinedConfig; import org.alfresco.repo.content.transform.LocalPipelineTransform; import org.alfresco.repo.content.transform.LocalTransformImpl; import org.alfresco.repo.content.transform.LocalTransformServiceRegistry; import org.alfresco.repo.content.transform.TransformerDebug; import org.alfresco.transform.client.model.config.SupportedSourceAndTarget; import org.alfresco.transform.client.model.config.TransformOption; +import org.alfresco.transform.client.model.config.TransformOptionGroup; +import org.alfresco.transform.client.model.config.TransformOptionValue; import org.alfresco.transform.client.model.config.Transformer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.log4j.Level; +import org.apache.log4j.LogManager; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; @@ -48,6 +51,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; @@ -55,7 +59,9 @@ import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; +import static java.util.Collections.emptyMap; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; @@ -63,11 +69,9 @@ import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** - * Extends the {@link TransformServiceRegistryConfigTest} (used to test the config received from the Transform Service) - * so that configuration for the local transformations may be tested. This includes pipelines and options specific - * transform steps. + * Testing LocalTransformServiceRegistry. */ -public class LocalTransformServiceRegistryConfigTest extends TransformServiceRegistryConfigTest +public class LocalTransformServiceRegistryConfigTest extends TransformRegistryTest { public static final String HARD_CODED_VALUE = "hard coded value"; @@ -135,6 +139,12 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg super.logError(msg); } + @Override + protected void logWarn(String msg) + { + logError(msg); + } + public Data assertDataChanged(Data prevData, String msg) { // If the data changes, there has been a read @@ -169,10 +179,14 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg private static Log log = LogFactory.getLog(LocalTransformServiceRegistry.class); + public static final String PNG = "image/png"; + public static final String TIFF = "image/tiff"; + + public static final ObjectMapper JSON_OBJECT_MAPPER = new ObjectMapper(); + private static final String LOCAL_TRANSFORM_SERVICE_CONFIG = "alfresco/local-transform-service-config-test.json"; private static final String LOCAL_TRANSFORM_SERVICE_CONFIG_PIPELINE = "alfresco/local-transform-service-config-pipeline-test.json"; - private static final ObjectMapper JSON_OBJECT_MAPPER = new ObjectMapper(); private static final String LOCAL_TRANSFORM = "localTransform."; private static final String URL = ".url"; @@ -202,8 +216,10 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg initTestData(); super.setUp(); + LogManager.getLogger(LocalTransformServiceRegistryConfigTest.class).setLevel(Level.DEBUG); } + @Override protected LocalTransformServiceRegistry buildTransformServiceRegistryImpl() throws Exception { registry = new TestLocalTransformServiceRegistry(); @@ -222,19 +238,6 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg return (System.currentTimeMillis() - startMs) + "ms: "; } - @Override - protected String getTransformServiceConfig() - { - return LOCAL_TRANSFORM_SERVICE_CONFIG; - } - - @Override - protected String getTransformServiceConfigPipeline() - { - return LOCAL_TRANSFORM_SERVICE_CONFIG_PIPELINE; - } - - @Override protected int getExpectedTransformsForTestJsonPipeline() { // imagemagick @@ -259,7 +262,7 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg */ private void retrieveLocalTransformList(String path) { - CombinedConfig combinedConfig = new LocalCombinedConfig(log); + CombinedConfig combinedConfig = new CombinedConfig(log); combinedConfig.addLocalConfig(path); combinedConfig.register(registry); mapOfTransformOptions = combinedConfig.combinedTransformOptions; @@ -379,11 +382,166 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg return i; } + private void register(String path) throws IOException + { + CombinedConfig combinedConfig = new CombinedConfig(log); + combinedConfig.addLocalConfig(path); + combinedConfig.register((TransformServiceRegistryImpl)registry); + } + @Test - @Override public void testJsonConfig() throws IOException { - internalTestJsonConfig(64, 70); + register(LOCAL_TRANSFORM_SERVICE_CONFIG); + + // Check the count of transforms supported + assertEquals("The number of UNIQUE source to target mimetypes transforms has changed. Config change?", + 64, countSupportedTransforms(true)); + assertEquals("The number of source to target mimetypes transforms has changed. " + + "There may be multiple transformers for the same combination. Config change?", + 70, countSupportedTransforms(false)); + + // Check a supported transform for each transformer. + assertSupported(DOC, 1234, PDF, emptyMap(), null, ""); // libreoffice + assertSupported(DOC, 1234, PDF, emptyMap(), null, ""); // libreoffice + assertSupported(PDF, 1234, PNG, emptyMap(), null, ""); // pdfrenderer + assertSupported(JPEG,1234, GIF, emptyMap(), null, ""); // imagemagick + assertSupported(MSG, 1234, TXT, emptyMap(), null, ""); // tika + assertSupported(MSG, 1234, GIF, emptyMap(), null, ""); // officeToImageViaPdf + + Map invalidPdfOptions = new HashMap<>(); + invalidPdfOptions.put("allowEnlargement", "false"); + assertSupported(DOC, 1234, PDF, invalidPdfOptions, null, "Invalid as there is a extra option"); + } + + @Test + public void testJsonPipeline() throws IOException + { + register(LOCAL_TRANSFORM_SERVICE_CONFIG_PIPELINE); + + // Check the count of transforms supported + int expectedTransforms = getExpectedTransformsForTestJsonPipeline(); + assertEquals("The number of UNIQUE source to target mimetypes transforms has changed. Config change?", + expectedTransforms, countSupportedTransforms(true)); + assertEquals("The number of source to target mimetypes transforms has changed. " + + "There may be multiple transformers for the same combination. Config change?", + expectedTransforms, countSupportedTransforms(false)); + + // Check required and optional default correctly + Map> transformsToWord = + registry.getData().getTransforms().get(DOC); + List supportedTransforms = transformsToWord.get(GIF); + SupportedTransform supportedTransform = supportedTransforms.get(0); + + Set transformOptionsSet = supportedTransform.getTransformOptions().getTransformOptions(); + + Iterator iterator = transformOptionsSet.iterator(); + assertTrue("Expected transform values", iterator.hasNext()); + // Because Set is unordered we don't know which TransformOptionGroup we retrieve + TransformOptionGroup transformOptions1 = (TransformOptionGroup)iterator.next(); + + assertTrue("Expected transform values", iterator.hasNext()); + TransformOptionGroup transformOptions2 = (TransformOptionGroup)iterator.next(); + + TransformOptionGroup imagemagick; + TransformOptionGroup pdf; + + if(containsTransformOptionValueName(transformOptions1, "alphaRemove")) + { + imagemagick = transformOptions1; + pdf = transformOptions2; + } + else + { + imagemagick = transformOptions2; + pdf = transformOptions1; + } + + TransformOptionValue alphaRemove = (TransformOptionValue)retrieveTransformOptionByPropertyName(imagemagick, "alphaRemove", "TransformOptionValue"); + TransformOptionGroup crop = (TransformOptionGroup)retrieveTransformOptionByPropertyName(imagemagick, "crop", "TransformOptionGroup"); + TransformOptionValue cropGravity = (TransformOptionValue)retrieveTransformOptionByPropertyName(crop, "cropGravity", "TransformOptionValue"); + TransformOptionValue cropWidth = (TransformOptionValue)retrieveTransformOptionByPropertyName(crop, "cropWidth", "TransformOptionValue"); + + assertTrue("The holding group should be required", supportedTransform.getTransformOptions().isRequired()); + assertFalse("imagemagick should be optional as it is not set", imagemagick.isRequired()); + assertFalse("pdf should be optional as required is not set", pdf.isRequired()); + assertEquals("alphaRemove", alphaRemove.getName()); + assertEquals("cropGravity", cropGravity.getName()); + assertEquals("cropWidth", cropWidth.getName()); + assertFalse("alphaRemove should be optional as required is not set", alphaRemove.isRequired()); + assertFalse("crop should be optional as required is not set", crop.isRequired()); + assertTrue("cropGravity should be required as it is set", cropGravity.isRequired()); + assertFalse("cropWidth should be optional as required is not set", cropWidth.isRequired()); + + // Check a supported transform for each transformer. + assertSupported(DOC,1234, GIF, emptyMap(), null, ""); + assertSupported(DOC,1234, PNG, emptyMap(), null, ""); + assertSupported(DOC,1234, JPEG, emptyMap(), null, ""); + assertSupported(DOC,1234, TIFF, emptyMap(), null, ""); + + Map actualOptions = new HashMap<>(); + actualOptions.put("thumbnail", "true"); + actualOptions.put("resizeWidth", "100"); + actualOptions.put("resizeHeight", "100"); + actualOptions.put("allowEnlargement", "false"); + actualOptions.put("maintainAspectRatio", "true"); + assertSupported(DOC,1234, PNG, actualOptions, null, ""); + } + + private TransformOption retrieveTransformOptionByPropertyName (TransformOptionGroup transformOptionGroup, String propertyName, String propertyType) + { + Iterator iterator = transformOptionGroup.getTransformOptions().iterator(); + + List transformOptionsList = new ArrayList<>(); + while(iterator.hasNext()) + { + transformOptionsList.add(iterator.next()); + } + + for (TransformOption t : transformOptionsList) + { + if (t instanceof TransformOptionValue) + { + TransformOptionValue value = (TransformOptionValue) t; + if (propertyType.equalsIgnoreCase("TransformOptionValue")) + { + if (value.getName().equalsIgnoreCase(propertyName)) + return value; + } + else + { + if (value.getName().contains(propertyName)) + return transformOptionGroup; + } + } + else + { + TransformOption result = retrieveTransformOptionByPropertyName((TransformOptionGroup)t, propertyName, propertyType); + if (result != null) + return result; + } + } + return null; + } + + private boolean containsTransformOptionValueName (TransformOptionGroup transformOptionGroup, String propertyName) + { + return retrieveTransformOptionByPropertyName(transformOptionGroup, propertyName, "TransformOptionValue") != null; + } + + private int countSupportedTransforms(boolean unique) + { + int count = 0; + int uniqueCount = 0; + for (Map> targetMap : registry.getData().getTransforms().values()) + { + for (List supportedTransforms : targetMap.values()) + { + uniqueCount++; + count += supportedTransforms.size(); + } + } + return unique ? uniqueCount : count; } @Test @@ -635,7 +793,7 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg public void testNoName() { retrieveLocalTransformList("alfresco/local-transform-service-config-no-name-test.json"); - registry.assertErrorLogged("Local transformer names may not be null.*no-name-test.*"); + registry.assertErrorLogged("Transformer names may not be null.*no-name-test.*"); } @Test @@ -649,7 +807,7 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg public void testTEngineDuplicateNames() { retrieveLocalTransformList("alfresco/local-transform-service-config-dup-name-test.json"); - registry.assertErrorLogged("Local T-Engine transformer .* must be a unique name.*dup-name.*"); + registry.assertErrorLogged("Transformer \"pdfrenderer\" must be a unique name.*dup-name.*"); } @Test @@ -657,21 +815,22 @@ public class LocalTransformServiceRegistryConfigTest extends TransformServiceReg { registry.setResetBaseUrl(false); retrieveLocalTransformList("alfresco/local-transform-service-config-no-base-url-test.json"); - registry.assertErrorLogged("Local T-Engine transformer .* must have its baseUrl set .*no-base-url.*"); + registry.assertErrorLogged("Single step transformers \\(such as \"pdfrenderer\"\\) must be defined in a " + + "T-Engine rather than in a pipeline file, unless they are overriding an existing single step definition.*no-base-url.*"); } @Test public void testPipelineMissingStepTransform() { retrieveLocalTransformList("alfresco/transform-service-config-pipeline-missing-step-test.json"); - registry.assertErrorLogged("Transformer .* ignored as step transforms do not exist.*pipeline-missing-step.*"); + registry.assertErrorLogged("Transformer \"missingPdfrenderer\" ignored as step transforms \\(\"pdfrenderer\"\\) do not exist.*pipeline-missing-step-test.*"); } @Test public void testFailoverMissingStepTransform() { retrieveLocalTransformList("alfresco/transform-service-config-failover-missing-step-test.json"); - registry.assertErrorLogged("Transformer .* ignored as step transforms do not exist.*failover-missing-step.*"); + registry.assertErrorLogged("Transformer \"missingPdfrenderer\" ignored as step transforms \\(\"pdfrenderer\"\\) do not exist.*failover-missing-step-test.*"); } @Test diff --git a/repository/src/test/java/org/alfresco/transform/client/registry/TransformServiceRegistryConfigTest.java b/repository/src/test/java/org/alfresco/transform/client/registry/TransformServiceRegistryConfigTest.java deleted file mode 100644 index 2ccccada69..0000000000 --- a/repository/src/test/java/org/alfresco/transform/client/registry/TransformServiceRegistryConfigTest.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ -package org.alfresco.transform.client.registry; - -import static java.util.Collections.emptyMap; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.alfresco.transform.client.model.config.TransformOption; -import org.alfresco.transform.client.model.config.TransformOptionGroup; -import org.alfresco.transform.client.model.config.TransformOptionValue; -import org.alfresco.transform.client.registry.SupportedTransform; -import org.alfresco.transform.client.registry.TransformRegistryTest; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.apache.log4j.Level; -import org.apache.log4j.LogManager; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.fasterxml.jackson.databind.ObjectMapper; - -/** - * Test the config received from the Transform Service about what it supports. - * - * @author adavis - */ -public class TransformServiceRegistryConfigTest extends TransformRegistryTest -{ - private static Log log = LogFactory.getLog(TransformServiceRegistryConfigTest.class); - - public static final String PNG = "image/png"; - public static final String TIFF = "image/tiff"; - - private static final String TRANSFORM_SERVICE_CONFIG = "alfresco/transform-service-config-test.json"; - private static final String TRANSFORM_SERVICE_CONFIG_PIPELINE = "alfresco/transform-service-config-pipeline-test.json"; - - public static final ObjectMapper JSON_OBJECT_MAPPER = new ObjectMapper(); - - @Before - @Override - public void setUp() throws Exception - { - super.setUp(); - LogManager.getLogger(TransformServiceRegistryConfigTest.class).setLevel(Level.DEBUG); - } - - @Override - protected TransformServiceRegistryImpl buildTransformServiceRegistryImpl() throws Exception - { - TransformServiceRegistryImpl registry = new TransformServiceRegistryImpl() - { - @Override - public boolean readConfig() throws IOException - { - return true; - } - - @Override - protected Log getLog() - { - return log; - } - }; - registry.setJsonObjectMapper(JSON_OBJECT_MAPPER); - registry.setCronExpression(null); // just read once - registry.afterPropertiesSet(); - return registry; - } - - @After - public void tearDown() - { - // shut down - } - - protected String getTransformServiceConfig() - { - return TRANSFORM_SERVICE_CONFIG; - } - - protected String getTransformServiceConfigPipeline() - { - return TRANSFORM_SERVICE_CONFIG_PIPELINE; - } - - private void register(String path) throws IOException - { - CombinedConfig combinedConfig = new CombinedConfig(log); - combinedConfig.addLocalConfig(path); - combinedConfig.register((TransformServiceRegistryImpl)registry); - } - - @Test - public void testJsonConfig() throws IOException - { - internalTestJsonConfig(60, 60); - } - - protected void internalTestJsonConfig(int expectedSourceTargetUniqueCount, int expectedSourceTargetCount) throws IOException - { - register(getTransformServiceConfig()); - - // Check the count of transforms supported - assertEquals("The number of UNIQUE source to target mimetypes transforms has changed. Config change?", - expectedSourceTargetUniqueCount, countSupportedTransforms(true)); - assertEquals("The number of source to target mimetypes transforms has changed. " + - "There may be multiple transformers for the same combination. Config change?", - expectedSourceTargetCount, countSupportedTransforms(false)); - - // Check a supported transform for each transformer. - assertSupported(DOC, 1234, PDF, emptyMap(), null, ""); // libreoffice - assertSupported(DOC, 1234, PDF, emptyMap(), null, ""); // libreoffice - assertSupported(PDF, 1234, PNG, emptyMap(), null, ""); // pdfrenderer - assertSupported(JPEG,1234, GIF, emptyMap(), null, ""); // imagemagick - assertSupported(MSG, 1234, TXT, emptyMap(), null, ""); // tika - assertSupported(MSG, 1234, GIF, emptyMap(), null, ""); // officeToImageViaPdf - - Map invalidPdfOptions = new HashMap<>(); - invalidPdfOptions.put("allowEnlargement", "false"); - assertSupported(DOC, 1234, PDF, invalidPdfOptions, null, "Invalid as there is a extra option"); - } - - @Test - public void testJsonPipeline() throws IOException - { - register(getTransformServiceConfigPipeline()); - - // Check the count of transforms supported - int expectedTransforms = getExpectedTransformsForTestJsonPipeline(); - assertEquals("The number of UNIQUE source to target mimetypes transforms has changed. Config change?", - expectedTransforms, countSupportedTransforms(true)); - assertEquals("The number of source to target mimetypes transforms has changed. " + - "There may be multiple transformers for the same combination. Config change?", - expectedTransforms, countSupportedTransforms(false)); - - // Check required and optional default correctly - Map> transformsToWord = - registry.getData().getTransforms().get(DOC); - List supportedTransforms = transformsToWord.get(GIF); - SupportedTransform supportedTransform = supportedTransforms.get(0); - - Set transformOptionsSet = supportedTransform.getTransformOptions().getTransformOptions(); - - Iterator iterator = transformOptionsSet.iterator(); - assertTrue("Expected transform values", iterator.hasNext()); - // Because Set is unordered we don't know which TransformOptionGroup we retrieve - TransformOptionGroup transformOptions1 = (TransformOptionGroup)iterator.next(); - - assertTrue("Expected transform values", iterator.hasNext()); - TransformOptionGroup transformOptions2 = (TransformOptionGroup)iterator.next(); - - TransformOptionGroup imagemagick; - TransformOptionGroup pdf; - - if(containsTransformOptionValueName(transformOptions1, "alphaRemove")) - { - imagemagick = transformOptions1; - pdf = transformOptions2; - } - else - { - imagemagick = transformOptions2; - pdf = transformOptions1; - } - - TransformOptionValue alphaRemove = (TransformOptionValue)retrieveTransformOptionByPropertyName(imagemagick, "alphaRemove", "TransformOptionValue"); - TransformOptionGroup crop = (TransformOptionGroup)retrieveTransformOptionByPropertyName(imagemagick, "crop", "TransformOptionGroup"); - TransformOptionValue cropGravity = (TransformOptionValue)retrieveTransformOptionByPropertyName(crop, "cropGravity", "TransformOptionValue"); - TransformOptionValue cropWidth = (TransformOptionValue)retrieveTransformOptionByPropertyName(crop, "cropWidth", "TransformOptionValue"); - - assertTrue("The holding group should be required", supportedTransform.getTransformOptions().isRequired()); - assertFalse("imagemagick should be optional as it is not set", imagemagick.isRequired()); - assertFalse("pdf should be optional as required is not set", pdf.isRequired()); - assertEquals("alphaRemove", alphaRemove.getName()); - assertEquals("cropGravity", cropGravity.getName()); - assertEquals("cropWidth", cropWidth.getName()); - assertFalse("alphaRemove should be optional as required is not set", alphaRemove.isRequired()); - assertFalse("crop should be optional as required is not set", crop.isRequired()); - assertTrue("cropGravity should be required as it is set", cropGravity.isRequired()); - assertFalse("cropWidth should be optional as required is not set", cropWidth.isRequired()); - - // Check a supported transform for each transformer. - assertSupported(DOC,1234, GIF, emptyMap(), null, ""); - assertSupported(DOC,1234, PNG, emptyMap(), null, ""); - assertSupported(DOC,1234, JPEG, emptyMap(), null, ""); - assertSupported(DOC,1234, TIFF, emptyMap(), null, ""); - - Map actualOptions = new HashMap<>(); - actualOptions.put("thumbnail", "true"); - actualOptions.put("resizeWidth", "100"); - actualOptions.put("resizeHeight", "100"); - actualOptions.put("allowEnlargement", "false"); - actualOptions.put("maintainAspectRatio", "true"); - assertSupported(DOC,1234, PNG, actualOptions, null, ""); - } - - private TransformOption retrieveTransformOptionByPropertyName (TransformOptionGroup transformOptionGroup, String propertyName, String propertyType) - { - Iterator iterator = transformOptionGroup.getTransformOptions().iterator(); - - List transformOptionsList = new ArrayList<>(); - while(iterator.hasNext()) - { - transformOptionsList.add(iterator.next()); - } - - for (TransformOption t : transformOptionsList) - { - if (t instanceof TransformOptionValue) - { - TransformOptionValue value = (TransformOptionValue) t; - if (propertyType.equalsIgnoreCase("TransformOptionValue")) - { - if (value.getName().equalsIgnoreCase(propertyName)) - return value; - } - else - { - if (value.getName().contains(propertyName)) - return transformOptionGroup; - } - } - else - { - TransformOption result = retrieveTransformOptionByPropertyName((TransformOptionGroup)t, propertyName, propertyType); - if (result != null) - return result; - } - } - return null; - } - - private boolean containsTransformOptionValueName (TransformOptionGroup transformOptionGroup, String propertyName) - { - return retrieveTransformOptionByPropertyName(transformOptionGroup, propertyName, "TransformOptionValue") != null; - } - - protected int getExpectedTransformsForTestJsonPipeline() - { -// {"sourceMediaType": "application/msword", "targetMediaType": "image/gif" }, -// {"sourceMediaType": "application/msword", "targetMediaType": "image/jpeg"}, -// {"sourceMediaType": "application/msword", "targetMediaType": "image/png" }, -// {"sourceMediaType": "application/msword", "targetMediaType": "image/tiff"} - return 4; - } - - private int countSupportedTransforms(boolean unique) - { - int count = 0; - int uniqueCount = 0; - for (Map> targetMap : registry.getData().getTransforms().values()) - { - for (List supportedTransforms : targetMap.values()) - { - uniqueCount++; - count += supportedTransforms.size(); - } - } - return unique ? uniqueCount : count; - } -} \ No newline at end of file diff --git a/repository/src/test/resources/alfresco/transform-service-config-pipeline-test.json b/repository/src/test/resources/alfresco/transform-service-config-pipeline-test.json deleted file mode 100644 index 5160301fd9..0000000000 --- a/repository/src/test/resources/alfresco/transform-service-config-pipeline-test.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "transformOptions": { - "imageMagickOptions": [ - {"value": {"name": "alphaRemove"}}, - {"value": {"name": "autoOrient"}}, - {"value": {"name": "startPage"}}, - {"value": {"name": "endPage"}}, - {"group": {"transformOptions": [ - {"value": {"required": "true", "name": "cropGravity"}}, - {"value": {"name": "cropWidth"}}, - {"value": {"name": "cropHeight"}}, - {"value": {"name": "cropPercentage"}}, - {"value": {"name": "cropXOffset"}}, - {"value": {"name": "cropYOffset"}} - ]}}, - {"group": {"transformOptions": [ - {"value": {"name": "thumbnail"}}, - {"value": {"name": "resizeHeight"}}, - {"value": {"name": "resizeWidth"}}, - {"value": {"name": "resizePercentage"}}, - {"value": {"name": "allowEnlargement"}}, - {"value": {"name": "maintainAspectRatio"}} - ]}} - ], - "pdfRendererOptions": [ - {"value": {"name": "page"}}, - {"value": {"name": "width"}}, - {"value": {"name": "height"}}, - {"value": {"name": "allowPdfEnlargement"}}, - {"value": {"name": "maintainPdfAspectRatio"}} - ] - }, - "transformers": [ - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "application/msword", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/msword", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/msword", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/msword", "targetMediaType": "image/tiff"} - ], - "transformOptions": [ - "pdfRendererOptions", - "imageMagickOptions" - ] - } - ] -} \ No newline at end of file diff --git a/repository/src/test/resources/alfresco/transform-service-config-test.json b/repository/src/test/resources/alfresco/transform-service-config-test.json deleted file mode 100644 index 9b021fddf0..0000000000 --- a/repository/src/test/resources/alfresco/transform-service-config-test.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "transformOptions": { - "imageMagickOptions": [ - {"value": {"name": "alphaRemove"}}, - {"value": {"name": "autoOrient"}}, - {"value": {"name": "startPage"}}, - {"value": {"name": "endPage"}}, - {"group": {"transformOptions": [ - {"value": {"name": "cropGravity"}}, - {"value": {"name": "cropWidth"}}, - {"value": {"name": "cropHeight"}}, - {"value": {"name": "cropPercentage"}}, - {"value": {"name": "cropXOffset"}}, - {"value": {"name": "cropYOffset"}} - ]}}, - {"group": {"transformOptions": [ - {"value": {"name": "thumbnail"}}, - {"value": {"name": "resizeHeight"}}, - {"value": {"name": "resizeWidth"}}, - {"value": {"name": "resizePercentage"}}, - {"value": {"name": "allowEnlargement"}}, - {"value": {"name": "maintainAspectRatio"}} - ]}} - ], - "tikaOptions": [ - {"value": {"name": "transform"}}, - {"value": {"name": "includeContents"}}, - {"value": {"name": "notExtractBookmarksText"}}, - {"value": {"name": "targetMimetype"}}, - {"value": {"name": "targetEncoding"}} - ], - "pdfRendererOptions": [ - {"value": {"name": "page"}}, - {"value": {"name": "width"}}, - {"value": {"name": "height"}}, - {"value": {"name": "allowPdfEnlargement"}}, - {"value": {"name": "maintainPdfAspectRatio"}} - ] - }, - "transformers": [ - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "image/gif", "targetMediaType": "image/gif" }, - {"sourceMediaType": "image/gif", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "image/gif", "targetMediaType": "image/png" }, - {"sourceMediaType": "image/gif", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "image/jpeg", "targetMediaType": "image/gif" }, - {"sourceMediaType": "image/jpeg", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "image/jpeg", "targetMediaType": "image/png" }, - {"sourceMediaType": "image/jpeg", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "image/png", "targetMediaType": "image/gif" }, - {"sourceMediaType": "image/png", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "image/png", "targetMediaType": "image/png" }, - {"sourceMediaType": "image/png", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "image/tiff", "targetMediaType": "image/gif" }, - {"sourceMediaType": "image/tiff", "targetMediaType": "image/tiff"} - ], - "transformOptions": [ - "imageMagickOptions" - ] - }, - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "application/pdf", "maxSourceSizeBytes": 26214400, "targetMediaType": "text/plain" }, - {"sourceMediaType": "application/msword", "targetMediaType": "text/plain"}, - {"sourceMediaType": "application/vnd.ms-excel", "targetMediaType": "text/plain" }, - {"sourceMediaType": "application/vnd.ms-powerpoint", "targetMediaType": "text/plain" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "text/plain"}, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "text/plain" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "targetMediaType": "text/plain" }, - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "text/plain"} - ], - "transformOptions": [ - "tikaOptions" - ] - }, - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "application/pdf", "targetMediaType": "image/png" } - ], - "transformOptions": [ - "pdfRendererOptions" - ] - }, - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "application/msword", "targetMediaType": "application/msword" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "application/msword" }, - {"sourceMediaType": "application/msword", "maxSourceSizeBytes": 10485760, "targetMediaType": "application/pdf" }, - {"sourceMediaType": "application/vnd.ms-excel", "maxSourceSizeBytes": 10485760, "targetMediaType": "application/pdf"}, - {"sourceMediaType": "application/vnd.ms-powerpoint", "maxSourceSizeBytes": 6291456, "targetMediaType": "application/pdf" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "maxSourceSizeBytes": 786432, "targetMediaType": "application/pdf" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "maxSourceSizeBytes": 1572864, "targetMediaType": "application/pdf"}, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "maxSourceSizeBytes": 4194304, "targetMediaType": "application/pdf" }, - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "application/pdf"} - ] - }, - { - "supportedSourceAndTargetList": [ - {"sourceMediaType": "application/msword", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/msword", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/msword", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/msword", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.ms-excel", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.ms-excel", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.ms-excel", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.ms-excel", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.ms-powerpoint", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.ms-powerpoint", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.ms-powerpoint", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.ms-powerpoint", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "targetMediaType": "image/tiff"}, - - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "image/gif" }, - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "image/jpeg"}, - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "image/png" }, - {"sourceMediaType": "application/vnd.ms-outlook", "targetMediaType": "image/tiff"} - ], - "transformOptions": [ - "pdfRendererOptions", - "imageMagickOptions" - ] - } - ] -} \ No newline at end of file From 5e973504d667ad390855fa80ecda932f9425193a Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 20 Aug 2021 16:38:25 +0000 Subject: [PATCH 063/177] [maven-release-plugin][skip ci] prepare release 11.112 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6277dcacf7..b041d93ffe 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.112-SNAPSHOT + 11.112 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8c685339e4..e04a5a29ed 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.112-SNAPSHOT + 11.112 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c93d35f3ce..a2bfa7d8e4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 32f67a8bad..ee5d02100c 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.112-SNAPSHOT + 11.112 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c8de7175b7..f068328962 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.112-SNAPSHOT + 11.112 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 465969a557..20d816ed21 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.112-SNAPSHOT + 11.112 diff --git a/amps/pom.xml b/amps/pom.xml index 26f151bc0d..bbb05a7c52 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 9ad8835569..55a88a4adc 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.112-SNAPSHOT + 11.112 diff --git a/core/pom.xml b/core/pom.xml index 8d1d742839..c0d4568016 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/data-model/pom.xml b/data-model/pom.xml index b648427574..9c4fee4fc7 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index b4a0a3a8da..dcacf882f6 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index e8d0a549de..516e650c19 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/pom.xml b/packaging/pom.xml index 4b453eb9dd..cf0231e841 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 9d5f9d368c..e7f8df3287 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 260e62d375..3383dc03bb 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 269fa69797..2cf58774ef 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index cb9617f90d..660f86be80 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 8f32fc1ce8..a4993f1a2e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index c4f2f6ac3e..23a870f259 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112-SNAPSHOT + 11.112 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 5b7fbe1992..30a7e2d723 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112-SNAPSHOT + 11.112 diff --git a/pom.xml b/pom.xml index 4204a6136b..17f452c07b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.112-SNAPSHOT + 11.112 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.112 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f846f35311..ef3a18c32e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 diff --git a/repository/pom.xml b/repository/pom.xml index 57002a5bc9..7fb32d921e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112-SNAPSHOT + 11.112 From 76e815f9c536a21d872647444290632e0d6a7047 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 20 Aug 2021 16:38:27 +0000 Subject: [PATCH 064/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index b041d93ffe..6c85939860 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.112 + 11.113-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index e04a5a29ed..986309a7e0 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.112 + 11.113-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index a2bfa7d8e4..8e43d46d0d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ee5d02100c..fb963f50d0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.112 + 11.113-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index f068328962..eda93b9f38 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.112 + 11.113-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 20d816ed21..1a12baa989 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.112 + 11.113-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index bbb05a7c52..48d6493cf1 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 55a88a4adc..1c6e623b72 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.112 + 11.113-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index c0d4568016..7d2bb3b27c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 9c4fee4fc7..2be3cadabf 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index dcacf882f6..6aaef4b65d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 516e650c19..789b68de88 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index cf0231e841..bd9e45b836 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index e7f8df3287..276f51f2de 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 3383dc03bb..ab7778c6cc 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 2cf58774ef..e3744f4363 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 660f86be80..0c12b302f3 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index a4993f1a2e..bc890423d4 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 23a870f259..e8c6d84202 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.112 + 11.113-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 30a7e2d723..7c48f8880e 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.112 + 11.113-SNAPSHOT diff --git a/pom.xml b/pom.xml index 17f452c07b..1a2bfd3b9d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.112 + 11.113-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.112 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index ef3a18c32e..6b497dc049 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 7fb32d921e..c523ec1d85 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.112 + 11.113-SNAPSHOT From a8e1ce909ea9c6acff9844ab782b0b2114494562 Mon Sep 17 00:00:00 2001 From: Stefan Kopf Date: Sun, 22 Aug 2021 23:47:26 +0200 Subject: [PATCH 065/177] ACS-1907: Added test case to reproduce error situation --- .../org/alfresco/AllDBTestsTestSuite.java | 3 + .../impl/querymodel/impl/db/ACS1907Test.java | 197 ++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java diff --git a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java index 6dddc58bbe..ec7aa1105a 100644 --- a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java +++ b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java @@ -77,6 +77,9 @@ import org.junit.runners.Suite; // From MiscContextTestSuite org.alfresco.repo.domain.query.CannedQueryDAOTest.class, + // ACS-1907 + org.alfresco.repo.search.impl.querymodel.impl.db.ACS1907Test.class, + // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL // Moved at the bottom of the suite because DbNodeServiceImplTest.testNodeCleanupRegistry() takes a long time on a clean DB. org.alfresco.repo.node.db.DbNodeServiceImplTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java new file mode 100644 index 0000000000..cf70867f74 --- /dev/null +++ b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java @@ -0,0 +1,197 @@ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.search.impl.querymodel.impl.db; + +import junit.framework.TestCase; +import org.alfresco.model.ContentModel; +import org.alfresco.repo.cache.TransactionalCache; +import org.alfresco.repo.security.authentication.AuthenticationComponent; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.repo.security.authentication.MutableAuthenticationDao; +import org.alfresco.repo.security.permissions.AccessControlList; +import org.alfresco.repo.transaction.RetryingTransactionHelper; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.search.ResultSet; +import org.alfresco.service.cmr.search.ResultSetRow; +import org.alfresco.service.cmr.search.SearchParameters; +import org.alfresco.service.cmr.search.SearchService; +import org.alfresco.service.cmr.security.MutableAuthenticationService; +import org.alfresco.service.cmr.security.PermissionService; +import org.alfresco.service.namespace.QName; +import org.alfresco.service.transaction.TransactionService; +import org.alfresco.util.ApplicationContextHelper; +import org.springframework.context.ApplicationContext; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +public class ACS1907Test extends TestCase +{ + + private ApplicationContext ctx; + + private NodeService nodeService; + private AuthenticationComponent authenticationComponent; + private MutableAuthenticationService authenticationService; + private MutableAuthenticationDao authenticationDAO; + private SearchService pubSearchService; + private PermissionService pubPermissionService; + private TransactionService transactionService; + private RetryingTransactionHelper txnHelper; + + private TransactionalCache aclCache; + private TransactionalCache aclEntityCache; + private TransactionalCache permissionEntityCache; + + private NodeRef rootNodeRef; + + @Override + public void setUp() throws Exception + { + setupServices(); + this.authenticationComponent.setSystemUserAsCurrentUser(); + rootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); + setupTestUsers(); + setupTestContent(); + dropCaches(); + } + + @Override + protected void tearDown() throws Exception + { + authenticationComponent.clearCurrentSecurityContext(); + } + + private void setupServices() + { + ctx = ApplicationContextHelper.getApplicationContext(); + nodeService = (NodeService) ctx.getBean("dbNodeService"); + authenticationComponent = (AuthenticationComponent) ctx.getBean("authenticationComponent"); + authenticationService = (MutableAuthenticationService) ctx.getBean("authenticationService"); + authenticationDAO = (MutableAuthenticationDao) ctx.getBean("authenticationDao"); + pubSearchService = (SearchService) ctx.getBean("SearchService"); + pubPermissionService = (PermissionService) ctx.getBean("PermissionService"); + transactionService = (TransactionService) ctx.getBean("TransactionService"); + aclCache = (TransactionalCache) ctx.getBean("aclCache"); + aclEntityCache = (TransactionalCache) ctx.getBean("aclEntityCache"); + permissionEntityCache = (TransactionalCache) ctx.getBean("permissionEntityCache"); + txnHelper = transactionService.getRetryingTransactionHelper(); + } + + private void setupTestUser(String userName) + { + if (!authenticationDAO.userExists(userName)) + { + authenticationService.createAuthentication(userName, userName.toCharArray()); + } + } + + private void setupTestUsers() + { + txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { + @Override + public Object execute() throws Throwable { + setupTestUser("userA"); + setupTestUser("userB"); + setupTestUser(AuthenticationUtil.getAdminUserName()); + return null; + } + }, false, false); + } + + private void setupTestContent() + { + for(int f = 0; f < 100; f++) + { + final int ff = f; + txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { + @Override + public Object execute() throws Throwable { + Map testFolderProps = new HashMap<>(); + testFolderProps.put(ContentModel.PROP_NAME, "folder"+ff); + NodeRef testFolder = nodeService.createNode( + rootNodeRef, + ContentModel.ASSOC_CHILDREN, + QName.createQName("https://example.com/test", "folder"+1), + ContentModel.TYPE_FOLDER, + testFolderProps + ).getChildRef(); + for(int c = 0; c < 1000; c++) + { + Map testContentProps = new HashMap<>(); + testContentProps.put(ContentModel.PROP_NAME, "content"+c); + NodeRef testContent = nodeService.createNode( + testFolder, + ContentModel.ASSOC_CONTAINS, + QName.createQName("https://example.com/test", "folder"+1), + ContentModel.TYPE_CONTENT, + testContentProps + ).getChildRef(); + String user = c % 2 == 0 ? "userA" : "userB"; + pubPermissionService.setPermission(testContent, user, "Read", true); + } + return null; + } + }, false, false); + } + } + + private void dropCaches() + { + aclCache.clear(); + aclEntityCache.clear(); + permissionEntityCache.clear(); + } + + public void testACS1907() + { + txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { + @Override + public Object execute() throws Throwable { + AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork() { + @Override + public Object doWork() throws Exception { + SearchParameters sp = new SearchParameters(); + sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); + sp.setLanguage(SearchService.LANGUAGE_LUCENE); + sp.setQuery("TYPE:\"cm:content\""); + ResultSet rs = pubSearchService.query(sp); + for (ResultSetRow row : rs) + { + assertNotNull(row.getValue(ContentModel.PROP_NAME)); + } + return null; + } + }, "userA"); + return null; + } + }, false, false); + } + +} From b3d43b05006053a9f9630e529f4a7344b8390d3d Mon Sep 17 00:00:00 2001 From: Stefan Kopf Date: Sun, 22 Aug 2021 23:50:36 +0200 Subject: [PATCH 066/177] ACS-1907: Fix typo in test case --- .../repo/search/impl/querymodel/impl/db/ACS1907Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java index cf70867f74..65e4741147 100644 --- a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java +++ b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java @@ -138,7 +138,7 @@ public class ACS1907Test extends TestCase NodeRef testFolder = nodeService.createNode( rootNodeRef, ContentModel.ASSOC_CHILDREN, - QName.createQName("https://example.com/test", "folder"+1), + QName.createQName("https://example.com/test", "folder"+ff), ContentModel.TYPE_FOLDER, testFolderProps ).getChildRef(); @@ -149,7 +149,7 @@ public class ACS1907Test extends TestCase NodeRef testContent = nodeService.createNode( testFolder, ContentModel.ASSOC_CONTAINS, - QName.createQName("https://example.com/test", "folder"+1), + QName.createQName("https://example.com/test", "content"+c), ContentModel.TYPE_CONTENT, testContentProps ).getChildRef(); From d3ab782b5709ab726378a8ad16aaaa6ce5de1af3 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sun, 22 Aug 2021 22:34:50 +0000 Subject: [PATCH 067/177] [maven-release-plugin][skip ci] prepare release 11.113 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6c85939860..903eb96cba 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.113-SNAPSHOT + 11.113 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 986309a7e0..d06e40d652 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.113-SNAPSHOT + 11.113 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8e43d46d0d..e04deaabc2 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index fb963f50d0..c312491a86 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.113-SNAPSHOT + 11.113 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index eda93b9f38..47e33a2ff5 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.113-SNAPSHOT + 11.113 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 1a12baa989..0c3f5baefa 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.113-SNAPSHOT + 11.113 diff --git a/amps/pom.xml b/amps/pom.xml index 48d6493cf1..905f592fd0 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 1c6e623b72..8e54017fc6 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.113-SNAPSHOT + 11.113 diff --git a/core/pom.xml b/core/pom.xml index 7d2bb3b27c..b5fe431822 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/data-model/pom.xml b/data-model/pom.xml index 2be3cadabf..9595cdb076 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 6aaef4b65d..def1ad2845 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 789b68de88..83b85e6138 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/pom.xml b/packaging/pom.xml index bd9e45b836..9f8907ba7e 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 276f51f2de..60b0d14732 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index ab7778c6cc..6df5c357c0 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index e3744f4363..1f608dc6c4 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0c12b302f3..6e5ada2d9a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bc890423d4..c2f0a187ab 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index e8c6d84202..0a2d7ec3e9 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113-SNAPSHOT + 11.113 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 7c48f8880e..a2e42f916d 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113-SNAPSHOT + 11.113 diff --git a/pom.xml b/pom.xml index 1a2bfd3b9d..d9858aea94 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.113-SNAPSHOT + 11.113 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.113 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6b497dc049..41f4db5921 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 diff --git a/repository/pom.xml b/repository/pom.xml index c523ec1d85..ffb1bd69a0 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113-SNAPSHOT + 11.113 From 1c387add9d0844791aab1231e1064ad47e679f17 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Sun, 22 Aug 2021 22:34:52 +0000 Subject: [PATCH 068/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 903eb96cba..e46e5ee58a 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.113 + 11.114-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index d06e40d652..1485dc5867 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.113 + 11.114-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e04deaabc2..42287dfc4c 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index c312491a86..0c42302fc0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.113 + 11.114-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 47e33a2ff5..46944e9433 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.113 + 11.114-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0c3f5baefa..8ae0688c19 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.113 + 11.114-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 905f592fd0..eab9281389 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 8e54017fc6..75c42878b7 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.113 + 11.114-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index b5fe431822..a5bf95dc40 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 9595cdb076..0dd24914cc 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index def1ad2845..ccc1409f88 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 83b85e6138..3a1389f171 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 9f8907ba7e..a2289294d9 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 60b0d14732..20c1c612aa 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 6df5c357c0..19ca0baeb0 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 1f608dc6c4..c33ad4c2ca 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 6e5ada2d9a..095ce8f9d4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index c2f0a187ab..f80da78998 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0a2d7ec3e9..87f5ec39df 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.113 + 11.114-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index a2e42f916d..624e86618b 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.113 + 11.114-SNAPSHOT diff --git a/pom.xml b/pom.xml index d9858aea94..8384bafc13 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.113 + 11.114-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.113 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 41f4db5921..6b42545487 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index ffb1bd69a0..644b50bb14 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.113 + 11.114-SNAPSHOT From 4aaae012c570fae641024c4a1243024fbb2f3778 Mon Sep 17 00:00:00 2001 From: Iulian Aftene Date: Mon, 23 Aug 2021 11:14:33 +0300 Subject: [PATCH 069/177] ACS-1833 - Test requestContentDirectUrl for Versions Renditions REST API endpoint (#675) -add requestContentDirectUrl test for versions renditions --- .../alfresco/rest/api/tests/NodeApiTest.java | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java index 460af23ab4..33c583bb8f 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java @@ -141,6 +141,8 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest private String groupA = null; private String groupB = null; + private final static long DELAY_IN_MS = 500; + @Before public void setup() throws Exception { @@ -6367,5 +6369,112 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest getSingle(getRequestContentDirectUrl(contentNodeId), null, null, null, 405); } + + + @Test + public void testCreateRenditionForNewVersion() throws Exception + { + setRequestContext(user1); + + RepoService.TestNetwork networkN1; + RepoService.TestPerson userOneN1; + Site userOneN1Site; + + networkN1 = repoService.createNetworkWithAlias("ping", true); + networkN1.create(); + userOneN1 = networkN1.createUser(); + + setRequestContext(networkN1.getId(), userOneN1.getId(), null); + + String siteTitle = "RandomSite" + System.currentTimeMillis(); + userOneN1Site = createSite(siteTitle, SiteVisibility.PRIVATE); + + String PROP_LTM = "cm:lastThumbnailModification"; + + String RENDITION_NAME = "imgpreview"; + + String userId = userOneN1.getId(); + setRequestContext(networkN1.getId(), userOneN1.getId(), null); + + // Create a folder within the site document's library + String folderName = "folder" + System.currentTimeMillis(); + String parentId = getSiteContainerNodeId(userOneN1Site.getId(), "documentLibrary"); + String folder_Id = createNode(parentId, folderName, TYPE_CM_FOLDER, null).getId(); + + // Create multipart request - pdf file + String fileName = "quick.pdf"; + File file = getResourceFile(fileName); + MultiPartRequest reqBody = MultiPartBuilder.create() + .setFileData(new FileData(fileName, file)) + .build(); + Map params = Collections.singletonMap("include", "properties"); + + // Upload quick.pdf file into 'folder' - do not include request to create 'doclib' thumbnail + HttpResponse response = post(getNodeChildrenUrl(folder_Id), reqBody.getBody(), params, null, "alfresco", reqBody.getContentType(), 201); + Document document1 = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + String contentNodeId = document1.getId(); + assertNotNull(document1.getProperties()); + + // pause briefly + Thread.sleep(DELAY_IN_MS); + + // Get rendition (not created yet) information for node + response = getSingle(getNodeRenditionsUrl(contentNodeId), RENDITION_NAME, 200); + Rendition rendition = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Rendition.class); + assertNotNull(rendition); + assertEquals(Rendition.RenditionStatus.NOT_CREATED, rendition.getStatus()); + + params = new HashMap<>(); + params.put("placeholder", "false"); + getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 404); + + // Create and get 'imgpreview' rendition + rendition = createAndGetRendition(contentNodeId, RENDITION_NAME); + assertNotNull(rendition); + + params = new HashMap<>(); + params.put("placeholder", "false"); + response = getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 200); + + byte[] renditionBytes1 = response.getResponseAsBytes(); + assertNotNull(renditionBytes1); + + // check node details ... + params = Collections.singletonMap("include", "properties"); + response = getSingle(NodesEntityResource.class, contentNodeId, params, 200); + Document document1b = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + assertEquals(document1b.getModifiedByUser().getId(), document1.getModifiedByUser().getId()); + + // upload another version of "quick.pdf" and check again + fileName = "quick-2.pdf"; + file = getResourceFile(fileName); + reqBody = MultiPartBuilder.create() + .setFileData(new FileData("quick.pdf", file)) + .setOverwrite(true) + .build(); + + response = post(getNodeChildrenUrl(folder_Id), reqBody.getBody(), null, null, "alfresco", reqBody.getContentType(), 201); + Document document2 = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + assertEquals(contentNodeId, document2.getId()); + + // wait to allow new version of the rendition to be created ... + Thread.sleep(DELAY_IN_MS * 4); + + params = new HashMap<>(); + params.put("placeholder", "false"); + response = getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 200); + assertNotNull(response.getResponseAsBytes()); + + // check rendition binary has changed + assertNotEquals(renditionBytes1, response.getResponseAsBytes()); + + params = Collections.singletonMap("include", "properties"); + response = getSingle(NodesEntityResource.class, contentNodeId, params, 200); + Document document2b = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + + String contentNodeId2b = document2b.getId(); + getSingle(getRequestContentDirectUrl(contentNodeId2b), null, null, null, 405); + + } } From 57942cd43b21eafcf379d6620b734e46aa551589 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 23 Aug 2021 09:00:54 +0000 Subject: [PATCH 070/177] [maven-release-plugin][skip ci] prepare release 11.114 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index e46e5ee58a..0e9693302d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.114-SNAPSHOT + 11.114 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 1485dc5867..aa32ac9c5b 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.114-SNAPSHOT + 11.114 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 42287dfc4c..c4dcd9c220 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 0c42302fc0..dcefd67d8d 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.114-SNAPSHOT + 11.114 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 46944e9433..735294a20e 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.114-SNAPSHOT + 11.114 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 8ae0688c19..285449a4bb 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.114-SNAPSHOT + 11.114 diff --git a/amps/pom.xml b/amps/pom.xml index eab9281389..8e1ee6e7ef 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 75c42878b7..fa45cecdd1 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.114-SNAPSHOT + 11.114 diff --git a/core/pom.xml b/core/pom.xml index a5bf95dc40..710378a930 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/data-model/pom.xml b/data-model/pom.xml index 0dd24914cc..7ad289a0e1 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index ccc1409f88..14f669fef7 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 3a1389f171..05e1309f4f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/pom.xml b/packaging/pom.xml index a2289294d9..4b0f7e72ff 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 20c1c612aa..c12687c1d3 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 19ca0baeb0..f80b4de3d3 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c33ad4c2ca..80f98c5b36 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 095ce8f9d4..617214ba70 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f80da78998..545643ffd7 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 87f5ec39df..91cefc144d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114-SNAPSHOT + 11.114 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 624e86618b..3e65c0febc 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114-SNAPSHOT + 11.114 diff --git a/pom.xml b/pom.xml index 8384bafc13..c4ccbbf017 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.114-SNAPSHOT + 11.114 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.114 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6b42545487..1c1b813fe9 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 diff --git a/repository/pom.xml b/repository/pom.xml index 644b50bb14..40c43f21aa 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114-SNAPSHOT + 11.114 From cff733bbdf75bb8f0f05ec9ce7f4d59beb6eff6e Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 23 Aug 2021 09:00:57 +0000 Subject: [PATCH 071/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 0e9693302d..25a2461206 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.114 + 11.115-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index aa32ac9c5b..37bfdaae18 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.114 + 11.115-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c4dcd9c220..7b9dd1eb9d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index dcefd67d8d..fc3d2be65a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.114 + 11.115-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 735294a20e..fed02069c2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.114 + 11.115-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 285449a4bb..a397f50cdf 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.114 + 11.115-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 8e1ee6e7ef..7dc7963093 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index fa45cecdd1..eec73b92b9 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.114 + 11.115-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 710378a930..41bbde89c8 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 7ad289a0e1..0fb8fec275 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 14f669fef7..56df7f9126 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 05e1309f4f..665ae60467 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 4b0f7e72ff..02d8f18b64 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c12687c1d3..fd5321a5ed 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f80b4de3d3..53aecb4cce 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 80f98c5b36..3d7c6c6022 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 617214ba70..50308cfdb4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 545643ffd7..eb84946d4a 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 91cefc144d..b22c50bef0 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.114 + 11.115-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 3e65c0febc..3825331a64 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.114 + 11.115-SNAPSHOT diff --git a/pom.xml b/pom.xml index c4ccbbf017..38a48e5d94 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.114 + 11.115-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.114 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1c1b813fe9..1e7f5ddc28 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 40c43f21aa..1271cf71e8 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.114 + 11.115-SNAPSHOT From f7e6320a8383584dea91148fa8c2fb3ff7f3df35 Mon Sep 17 00:00:00 2001 From: mikolajbrzezinski <86791239+mikolajbrzezinski@users.noreply.github.com> Date: Mon, 23 Aug 2021 06:15:40 -0400 Subject: [PATCH 072/177] Feature/acs 1787 endpoint for deleted nodes (#672) * Deleted Nodes DAU Skeleton * Copyright Dates Update * Spring Wiring and Default Method * Operation Name Change * Removal of unnecesary Method Calls and JavaDoc update * Updates from Review --- .../org/alfresco/rest/api/DeletedNodes.java | 26 +++++++++++++- .../rest/api/impl/DeletedNodesImpl.java | 14 +++++++- .../api/trashcan/TrashcanEntityResource.java | 34 ++++++++++++++++++- .../alfresco/public-rest-context.xml | 2 +- 4 files changed, 72 insertions(+), 4 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java b/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java index 1b2a568e4d..ef26600d7a 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -34,6 +34,7 @@ import org.alfresco.rest.api.model.UserInfo; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; +import org.alfresco.service.cmr.repository.DirectAccessUrl; /** * Handles trashcan / deleted nodes @@ -99,4 +100,27 @@ public interface DeletedNodes * @return */ CollectionWithPagingInfo getRenditions(String archivedId, Parameters parameters); + + /** + * Gets a presigned URL to directly access content. + * + * @param archivedId The node id for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}, {@code true} by default. + * @return A direct access {@code URL} object for the content. + */ + default DirectAccessUrl requestContentDirectUrl(String archivedId, boolean attachment) + { + return requestContentDirectUrl(archivedId, attachment, null); + } + + /** + * Gets a presigned URL to directly access content. + * + * @param archivedId The node id for which to obtain the direct access {@code URL} + * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}, {@code true} by default. + * @param validFor The time at which the direct access {@code URL} will expire. + * @return A direct access {@code URL} object for the content. + */ + DirectAccessUrl requestContentDirectUrl(String archivedId, boolean attachment, Long validFor); + } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java index 2398a37067..969d4f83aa 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -55,6 +55,7 @@ import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; import org.alfresco.rest.framework.tools.RecognizedParamsExtractor; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.StoreRef; @@ -244,4 +245,15 @@ public class DeletedNodesImpl implements DeletedNodes, RecognizedParamsExtractor NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE, archivedId); return renditions.getRenditions(nodeRef, parameters); } + + /** + * {@inheritDoc} + */ + @Override + public DirectAccessUrl requestContentDirectUrl(String originalNodeId, boolean attachment, Long validFor) + { + //First check the node is valid and has been archived. + NodeRef validatedNodeRef = nodes.validateNode(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE, originalNodeId); + return nodes.requestContentDirectUrl(validatedNodeRef, attachment, validFor); + } } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java index 1a831ef320..60abf8da32 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -28,7 +28,10 @@ package org.alfresco.rest.api.trashcan; import javax.servlet.http.HttpServletResponse; +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; import org.alfresco.rest.api.DeletedNodes; +import org.alfresco.rest.api.DirectAccessUrlHelper; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.Node; import org.alfresco.rest.api.model.NodeTargetAssoc; import org.alfresco.rest.framework.BinaryProperties; @@ -36,6 +39,7 @@ import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; import org.alfresco.rest.framework.WebApiParam; import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException; import org.alfresco.rest.framework.resource.EntityResource; import org.alfresco.rest.framework.resource.actions.interfaces.BinaryResourceAction; @@ -44,6 +48,7 @@ import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; import org.alfresco.rest.framework.webscripts.WithResponse; +import org.alfresco.service.cmr.repository.DirectAccessUrl; /** * An implementation of an Entity Resource for handling archived content @@ -55,12 +60,18 @@ public class TrashcanEntityResource implements EntityResourceAction.ReadById, EntityResourceAction.Read, EntityResourceAction.Delete, BinaryResourceAction.Read { private DeletedNodes deletedNodes; + private DirectAccessUrlHelper directAccessUrlHelper; public void setDeletedNodes(DeletedNodes deletedNodes) { this.deletedNodes = deletedNodes; } + public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper) + { + this.directAccessUrlHelper = directAccessUrlHelper; + } + @Override public CollectionWithPagingInfo readAll(Parameters params) { @@ -89,6 +100,27 @@ public class TrashcanEntityResource implements return deletedNodes.getContent(nodeId, null, parameters); } + @Operation("requestDeletedNodeDirectAccessUrl") + @WebApiParam(name = "requestDeletedNodeDirectAccessUrl", title = "Request direct access url", description = "Request direct access url", kind = ResourceParameter.KIND.HTTP_BODY_OBJECT) + @WebApiDescription(title = "Request content url", + description="Generates a direct access URL.", + successStatus = HttpServletResponse.SC_OK) + public DirectAccessUrl requestContentDirectUrl(String originalNodeId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) + { + boolean attachment = directAccessUrlHelper.getAttachment(directAccessUrlRequest); + Long validFor = directAccessUrlHelper.getDefaultExpiryTimeInSec(); + DirectAccessUrl directAccessUrl; + try + { + directAccessUrl = deletedNodes.requestContentDirectUrl(originalNodeId, attachment, validFor); + } + catch (DirectAccessUrlDisabledException ex) + { + throw new DisabledServiceException(ex.getMessage()); + } + return directAccessUrl; + } + @Override public void delete(String nodeId, Parameters parameters) { diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index 6c75c154e8..5e826848d5 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -995,9 +995,9 @@ + - From c86d82e9cdb9f0d8fc037161f5ac3138b7b98588 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 23 Aug 2021 11:02:03 +0000 Subject: [PATCH 073/177] [maven-release-plugin][skip ci] prepare release 11.115 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 25a2461206..6f523f1a92 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.115-SNAPSHOT + 11.115 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 37bfdaae18..c8dacb1b48 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.115-SNAPSHOT + 11.115 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 7b9dd1eb9d..ff93ad742a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index fc3d2be65a..7cef4b6dc2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.115-SNAPSHOT + 11.115 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index fed02069c2..e335bd84ca 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.115-SNAPSHOT + 11.115 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index a397f50cdf..7b2e2bb3b8 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.115-SNAPSHOT + 11.115 diff --git a/amps/pom.xml b/amps/pom.xml index 7dc7963093..357c44226f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index eec73b92b9..259d3689e5 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.115-SNAPSHOT + 11.115 diff --git a/core/pom.xml b/core/pom.xml index 41bbde89c8..25f204302b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/data-model/pom.xml b/data-model/pom.xml index 0fb8fec275..762b1e7ae5 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 56df7f9126..3979e118c9 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 665ae60467..d5119e0b9c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/pom.xml b/packaging/pom.xml index 02d8f18b64..a5bf80b558 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index fd5321a5ed..030dbc5147 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 53aecb4cce..d7b252760a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 3d7c6c6022..6068c73d72 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 50308cfdb4..dc3fa0d8d3 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index eb84946d4a..06cc5b809d 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b22c50bef0..3ef132d54c 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115-SNAPSHOT + 11.115 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 3825331a64..2fcac10b27 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115-SNAPSHOT + 11.115 diff --git a/pom.xml b/pom.xml index 38a48e5d94..7124b6784d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.115-SNAPSHOT + 11.115 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.115 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1e7f5ddc28..e678226695 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 diff --git a/repository/pom.xml b/repository/pom.xml index 1271cf71e8..fdadf6fdf4 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115-SNAPSHOT + 11.115 From 7267ea584674e325d5397f39719dffbf71cb010e Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 23 Aug 2021 11:02:06 +0000 Subject: [PATCH 074/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6f523f1a92..703f9d0825 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.115 + 11.116-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index c8dacb1b48..1ccdd3c9cf 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.115 + 11.116-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index ff93ad742a..8e5a1077ba 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 7cef4b6dc2..e0e79aa0cc 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.115 + 11.116-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e335bd84ca..808934172a 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.115 + 11.116-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7b2e2bb3b8..2bfdce6a21 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.115 + 11.116-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 357c44226f..c121ca7783 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 259d3689e5..4e0ba31142 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.115 + 11.116-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 25f204302b..3e0cf0ca86 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 762b1e7ae5..74cf69d696 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 3979e118c9..9031aa4834 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d5119e0b9c..b5c7e7f1c0 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index a5bf80b558..36c34974b8 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 030dbc5147..ec71ff0a47 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d7b252760a..f63dd3056c 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 6068c73d72..44627fc9f0 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index dc3fa0d8d3..be32c79f97 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 06cc5b809d..2268262779 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 3ef132d54c..5accf855b2 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.115 + 11.116-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 2fcac10b27..10b2fa2137 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.115 + 11.116-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7124b6784d..d61171fe39 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.115 + 11.116-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.115 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e678226695..975854c99d 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index fdadf6fdf4..a0d09e4949 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.115 + 11.116-SNAPSHOT From 924f64409e43c51d951f437fc5aeb6add72ae4ef Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Tue, 24 Aug 2021 09:25:04 +0300 Subject: [PATCH 075/177] end to end tests for APPS-1004 and APPS-1005 (#674) * end to end tests for governance service issues APPS-1004 and APPS-1005 --- .../model/record/RecordProperties.java | 4 + .../RecordCategoryChildProperties.java | 3 +- .../MoveRecCategoriesWithRSTests.java | 268 ++++++++++++++++++ 3 files changed, 274 insertions(+), 1 deletion(-) create mode 100644 amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/MoveRecCategoriesWithRSTests.java diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/record/RecordProperties.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/record/RecordProperties.java index 4616e7d474..b9fda4f696 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/record/RecordProperties.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/record/RecordProperties.java @@ -55,6 +55,7 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_AS_OF; import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_NAME; import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_AUTHORITY; +import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS; import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS_ELIGIBLE; import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS; import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_PERIOD; @@ -248,6 +249,9 @@ public class RecordProperties extends TestModel @JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS_ELIGIBLE) private Boolean recordSearchDispositionEventsEligible; + @JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS) + private List recordSearchDispositionEvents; + @JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS) private String recordSearchDispositionInstructions; diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/recordcategory/RecordCategoryChildProperties.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/recordcategory/RecordCategoryChildProperties.java index 9494bf37c9..c3b28748ec 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/recordcategory/RecordCategoryChildProperties.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/recordcategory/RecordCategoryChildProperties.java @@ -47,6 +47,7 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_VITAL_RECORD_INDICATOR; import java.util.Date; +import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; @@ -134,7 +135,7 @@ public class RecordCategoryChildProperties extends TestModel private String recordSearchDispositionInstructions; @JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS) - private Boolean recordSearchDispositionEvents; + private List recordSearchDispositionEvents; @JsonProperty (PROPERTIES_OWNER) private Owner owner; diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/MoveRecCategoriesWithRSTests.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/MoveRecCategoriesWithRSTests.java new file mode 100644 index 0000000000..6f904b527d --- /dev/null +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/MoveRecCategoriesWithRSTests.java @@ -0,0 +1,268 @@ +/*- + * #%L + * Alfresco Records Management Module + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * - + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * - + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * - + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * - + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.rm.community.recordcategories; + +import static org.alfresco.rest.rm.community.model.recordcategory.RetentionPeriodProperty.CREATED_DATE; +import static org.alfresco.rest.rm.community.model.recordcategory.RetentionPeriodProperty.CUT_OFF_DATE; +import static org.alfresco.rest.rm.community.model.recordcategory.RetentionPeriodProperty.DATE_FILED; +import static org.alfresco.rest.rm.community.utils.CoreUtil.createBodyForMoveCopy; +import static org.alfresco.rest.rm.community.utils.CoreUtil.toContentModel; +import static org.alfresco.utility.data.RandomData.getRandomName; +import static org.alfresco.utility.report.log.Step.STEP; +import static org.springframework.http.HttpStatus.OK; +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertTrue; + +import org.alfresco.rest.core.v0.BaseAPI.RM_ACTIONS; +import org.alfresco.rest.core.v0.RMEvents; +import org.alfresco.rest.rm.community.base.BaseRMRestTest; +import org.alfresco.rest.rm.community.model.record.Record; +import org.alfresco.rest.rm.community.model.recordcategory.RecordCategory; +import org.alfresco.rest.rm.community.model.recordcategory.RecordCategoryChild; +import org.alfresco.rest.v0.service.DispositionScheduleService; +import org.alfresco.test.AlfrescoTest; +import org.springframework.beans.factory.annotation.Autowired; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +/** + * Tests for moving record categories between record categories with different retention schedule + */ +public class MoveRecCategoriesWithRSTests extends BaseRMRestTest +{ + private RecordCategory rootCategory, rootCategory2; + private Record elRecord, nonElRecord; + @Autowired + private DispositionScheduleService dispositionScheduleService; + + /** + * Create two root categories with some retention schedules on record level + */ + @BeforeMethod + private void setUpMoveRecCategoriesWithRSTests() + { + STEP("Create record category with retention schedule and apply it to records."); + rootCategory = createRootCategory(getRandomName("rootCategory1")); + dispositionScheduleService.createCategoryRetentionSchedule(rootCategory.getName(), true); + + STEP("Create record category with retention schedule and apply it to records."); + rootCategory2 = createRootCategory(getRandomName("rootCategory2")); + dispositionScheduleService.createCategoryRetentionSchedule(rootCategory2.getName(), true); + } + + /** + * Given following structure is created: + * rootCategory1 with RS applied on record level with cut off and destroy after 1 day + * - subCategory1 without RS + * - recFolder + * - incomplete electronic record + * - complete non-electronic record + * rootCategory2 with RS with retain and destroy both after 2 day + * When moving subcategory1 within rootCategory2 + * Then the records will inherit the RS from rootCategory2 + */ + @Test + @AlfrescoTest (jira = "APPS-1005") + public void testInheritWhenMoveToDifferentRSStep() throws Exception + { + STEP("Add retention schedule cut off step after 1 day period."); + dispositionScheduleService.addCutOffAfterPeriodStep(rootCategory.getName(), "day|1", CREATED_DATE); + + STEP("Add retention schedule destroy step after 1 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory.getName(), "day|1", CUT_OFF_DATE); + + STEP("Create a subcategory with a record folder and records."); + RecordCategoryChild subCategory = createSubCategoryWithRecords(); + + STEP("Add retention schedule retain step after 2 day period."); + dispositionScheduleService.addRetainAfterPeriodStep(rootCategory2.getName(), "day|2"); + + STEP("Add retention schedule destroy step after 2 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory2.getName(), "day|2", DATE_FILED); + + STEP("Move the subcategory within the rootCategory2."); + getRestAPIFactory().getNodeAPI(toContentModel(subCategory.getId())).move(createBodyForMoveCopy(rootCategory2.getId())); + assertStatusCode(OK); + + STEP("Check that both records inherit rootCategory2 retention schedule"); + elRecord = getRestAPIFactory().getRecordsAPI().getRecord(elRecord.getId()); + nonElRecord = getRestAPIFactory().getRecordsAPI().getRecord(nonElRecord.getId()); + assertTrue(elRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.END_RETENTION.getAction()), + "Disposition action should be retain"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("day"), + "Disposition period property should be day"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("2"), + "Disposition period expression should be 2"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.END_RETENTION.getAction()), + "Disposition action should be retain"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("day"), + "Disposition period property should be day"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("2"), + "Disposition period expression should be 2"); + } + + /** + * Given following structure is created: + * rootCategory1 with RS applied on record level with retain and destroy after 1 day + * - subCategory without RS + * - recFolder + * - incomplete electronic record + * - complete non-electronic record + * rootCategory2 with RS with cut off on event case closed and destroy both after 2 day + * When moving subcategory within rootCategory2 + * Then the records will inherit the RS from rootCategory2 + */ + @Test + @AlfrescoTest (jira = "APPS-1004") + public void testInheritWhenMoveToDifferentRSStepOnEventBase() throws Exception + { + STEP("Add retention schedule retain step after 1 day period."); + dispositionScheduleService.addRetainAfterPeriodStep(rootCategory.getName(), "day|1"); + + STEP("Add retention schedule destroy step after 1 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory.getName(), "day|1", CUT_OFF_DATE); + + STEP("Create a subcategory with a record folder and records."); + RecordCategoryChild subCategory = createSubCategoryWithRecords(); + + STEP("Add retention schedule cut off step on event case closed."); + dispositionScheduleService.addCutOffAfterEventStep(rootCategory2.getName(), RMEvents.CASE_CLOSED.getEventName()); + + STEP("Add retention schedule destroy step after 1 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory2.getName(), "day|2", DATE_FILED); + + STEP("Move the subcategory within the rootCategory2."); + getRestAPIFactory().getNodeAPI(toContentModel(subCategory.getId())).move(createBodyForMoveCopy(rootCategory2.getId())); + assertStatusCode(OK); + + STEP("Check that both records inherit rootCategory2 retention schedule"); + elRecord = getRestAPIFactory().getRecordsAPI().getRecord(elRecord.getId()); + nonElRecord = getRestAPIFactory().getRecordsAPI().getRecord(nonElRecord.getId()); + assertTrue(elRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.CUT_OFF.getAction()), + "Disposition action should be cut off"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("none"), + "Disposition period property should none"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("0"), + "Disposition period expression should be 0"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.CASE_CLOSED.getEventName()), + "Disposition event list doesn't contain case closed event"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.CUT_OFF.getAction()), + "Disposition action should be cut off"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("none"), + "Disposition period property should be none"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("0"), + "Disposition period expression should be 0"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.CASE_CLOSED.getEventName()), + "Disposition event list doesn't contain case closed event"); + } + + /** + * Given following structure is created: + * rootCategory1 with RS applied on record level with cut off on event case closed and destroy after 1 day + * - subCategory2 without RS + * - recFolder + * - incomplete electronic record + * - complete non-electronic record + * rootCategory2 with cut off on event Obsolete and destroy both after 2 day + * When moving subcategory2 within rootCategory2 + * Then the records will inherit the RS from rootCategory2 + */ + @Test + @AlfrescoTest (jira = "APPS-1004") + public void testInheritWhenMoveToSameStepDifferentEvent() throws Exception + { + STEP("Add retention schedule cut off on case closed."); + dispositionScheduleService.addCutOffAfterEventStep(rootCategory.getName(), RMEvents.CASE_CLOSED.getEventName()); + + STEP("Add retention schedule destroy step after 1 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory.getName(), "day|1", CUT_OFF_DATE); + + STEP("Create a subcategory with a record folder and records."); + RecordCategoryChild subCategory = createSubCategoryWithRecords(); + + STEP("Add retention schedule cut off step on event separation."); + dispositionScheduleService.addCutOffAfterEventStep(rootCategory2.getName(), RMEvents.OBSOLETE.getEventName()); + + STEP("Add retention schedule destroy step after 2 Day period."); + dispositionScheduleService.addDestroyWithGhostingAfterPeriodStep(rootCategory2.getName(), "day|2", DATE_FILED); + + STEP("Move the subcategory within the rootCategory2."); + getRestAPIFactory().getNodeAPI(toContentModel(subCategory.getId())).move(createBodyForMoveCopy(rootCategory2.getId())); + assertStatusCode(OK); + + STEP("Check that both records inherit rootCategory2 retention schedule"); + elRecord = getRestAPIFactory().getRecordsAPI().getRecord(elRecord.getId()); + nonElRecord = getRestAPIFactory().getRecordsAPI().getRecord(nonElRecord.getId()); + assertTrue(elRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.CUT_OFF.getAction()), + "Disposition action should be cut off"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("none"), + "Disposition period property should be none"); + assertTrue(elRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("0"), + "Disposition period expression should be 0"); + assertFalse(elRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.CASE_CLOSED.getEventName()), + "Event list contain the event from the previous RS "); + assertTrue(elRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.OBSOLETE.getEventName()), + "Event list doesn't contain the event from the current RS "); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionActionName().equalsIgnoreCase(RM_ACTIONS.CUT_OFF.getAction()), + "Disposition action should be cut off"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriod().equalsIgnoreCase("none"), + "Disposition period property should be none"); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionPeriodExpression().equalsIgnoreCase("0"), + "Disposition period expression should be 0"); + assertFalse(nonElRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.CASE_CLOSED.getEventName()), + "Event list contain the event from the previous RS "); + assertTrue(nonElRecord.getProperties().getRecordSearchDispositionEvents().contains(RMEvents.OBSOLETE.getEventName()), + "Event list doesn't contain the event from the current RS "); + } + + @AfterMethod (alwaysRun = true) + public void cleanupMoveRecCategoriesWithRSTests() + { + getRestAPIFactory().getRecordCategoryAPI().deleteRecordCategory(rootCategory.getId()); + getRestAPIFactory().getRecordCategoryAPI().deleteRecordCategory(rootCategory2.getId()); + } + + /** + * Helper method to create a sub-category with a folder, an incomplete electronic record and a complete + * electronic record + * @return + */ + private RecordCategoryChild createSubCategoryWithRecords() + { + STEP("Create a subcategory with a record folder"); + RecordCategoryChild subCategory = createRecordCategory(rootCategory.getId(), getRandomName("subCategory")); + RecordCategoryChild recFolder = createFolder(subCategory.getId(), getRandomName("recFolder")); + + STEP("Create 2 records in the record folder. Complete one of them."); + elRecord = createElectronicRecord(recFolder.getId(), getRandomName("elRecord")); + nonElRecord = createNonElectronicRecord(recFolder.getId(), getRandomName("nonElRecord")); + getRestAPIFactory().getRecordsAPI().completeRecord(nonElRecord.getId()); + return subCategory; + } + +} From 1b7bada294ce13e774150b3137513a1a86f26b33 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 24 Aug 2021 07:14:18 +0000 Subject: [PATCH 076/177] [maven-release-plugin][skip ci] prepare release 11.116 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 703f9d0825..2f0cadeaa9 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.116-SNAPSHOT + 11.116 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 1ccdd3c9cf..2a892ec043 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.116-SNAPSHOT + 11.116 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8e5a1077ba..a764dd49b5 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index e0e79aa0cc..2f9bf8ad31 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.116-SNAPSHOT + 11.116 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 808934172a..72594a0506 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.116-SNAPSHOT + 11.116 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 2bfdce6a21..74682c864b 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.116-SNAPSHOT + 11.116 diff --git a/amps/pom.xml b/amps/pom.xml index c121ca7783..92f17ccd94 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4e0ba31142..60be61b002 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.116-SNAPSHOT + 11.116 diff --git a/core/pom.xml b/core/pom.xml index 3e0cf0ca86..85a2d598b9 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/data-model/pom.xml b/data-model/pom.xml index 74cf69d696..b4f6f87aec 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 9031aa4834..bd4d03f91d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b5c7e7f1c0..f147705cfa 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/pom.xml b/packaging/pom.xml index 36c34974b8..67fc4893d0 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ec71ff0a47..2d33591daa 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f63dd3056c..6a8b8fb6db 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 44627fc9f0..8d700c9b12 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index be32c79f97..1c14b2bd9e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 2268262779..3c4535ed71 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5accf855b2..87fc8d0754 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116-SNAPSHOT + 11.116 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 10b2fa2137..138307324a 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116-SNAPSHOT + 11.116 diff --git a/pom.xml b/pom.xml index d61171fe39..08657e85f9 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.116-SNAPSHOT + 11.116 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.116 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 975854c99d..d8a51b4833 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 diff --git a/repository/pom.xml b/repository/pom.xml index a0d09e4949..2fc2657a07 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116-SNAPSHOT + 11.116 From 6d48c0979e38bfcf6c7caf92a9234469bfef6586 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 24 Aug 2021 07:14:21 +0000 Subject: [PATCH 077/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 2f0cadeaa9..23318c2186 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.116 + 11.117-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 2a892ec043..39cafd4e2b 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.116 + 11.117-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index a764dd49b5..a64a0bcdc4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 2f9bf8ad31..0adde6d110 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.116 + 11.117-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 72594a0506..7c93f284aa 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.116 + 11.117-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 74682c864b..311a8ec4dc 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.116 + 11.117-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 92f17ccd94..b86679b7b4 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 60be61b002..2c0d9a24d0 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.116 + 11.117-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 85a2d598b9..54273d489a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index b4f6f87aec..caa3d5abb3 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index bd4d03f91d..d6db3173fc 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index f147705cfa..7e010db84a 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 67fc4893d0..540af5388e 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2d33591daa..23c1e0fb5b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 6a8b8fb6db..d0d5378715 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 8d700c9b12..fb846416e9 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1c14b2bd9e..4372e8560e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 3c4535ed71..78c62869ba 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 87fc8d0754..f8383c42a6 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.116 + 11.117-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 138307324a..18e0a8e654 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.116 + 11.117-SNAPSHOT diff --git a/pom.xml b/pom.xml index 08657e85f9..d3c5b56e00 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.116 + 11.117-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.116 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index d8a51b4833..94e2b5e036 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 2fc2657a07..7e12b38c38 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.116 + 11.117-SNAPSHOT From f8b40d3cc0a0393114edaa9a63729a8427999de2 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 24 Aug 2021 09:13:03 +0100 Subject: [PATCH 078/177] ACS-566 Fix Poms (#677) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d3c5b56e00..af66a05113 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ 3.2.1.3 1.4.0.1 - 7.0.0 + 7.1.0-SNAPSHOT 2.2.0 42.2.20 From d7758d55098a54f825e847e4ea980b1ddd60200a Mon Sep 17 00:00:00 2001 From: Sara Aspery Date: Tue, 24 Aug 2021 15:24:02 +0100 Subject: [PATCH 079/177] update api-explorer version to 7.1.0-A1 in community-repo pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index af66a05113..e582410de5 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ 3.2.1.3 1.4.0.1 - 7.1.0-SNAPSHOT + 7.1.0-A1 2.2.0 42.2.20 From d237e51bb23887c6dd8b13a025fa9859e2751010 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 24 Aug 2021 15:11:32 +0000 Subject: [PATCH 080/177] [maven-release-plugin][skip ci] prepare release 11.117 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 23318c2186..29ea448172 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.117-SNAPSHOT + 11.117 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 39cafd4e2b..8350004b41 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.117-SNAPSHOT + 11.117 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index a64a0bcdc4..879cee6d2e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 0adde6d110..b83ad22ee2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.117-SNAPSHOT + 11.117 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 7c93f284aa..d0ccdaa90c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.117-SNAPSHOT + 11.117 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 311a8ec4dc..65fb43c512 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.117-SNAPSHOT + 11.117 diff --git a/amps/pom.xml b/amps/pom.xml index b86679b7b4..37d7ec99d9 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 2c0d9a24d0..c9c1bf8fb8 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.117-SNAPSHOT + 11.117 diff --git a/core/pom.xml b/core/pom.xml index 54273d489a..518f37cb69 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/data-model/pom.xml b/data-model/pom.xml index caa3d5abb3..82f75fc964 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index d6db3173fc..b0b87d17a3 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 7e010db84a..4194c1a48e 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/pom.xml b/packaging/pom.xml index 540af5388e..3c754c5117 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 23c1e0fb5b..1d605d1af8 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d0d5378715..319e97c4ae 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index fb846416e9..9671ff292f 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 4372e8560e..98fa761eda 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 78c62869ba..bd68c7cb8b 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index f8383c42a6..53ca193479 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117-SNAPSHOT + 11.117 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 18e0a8e654..b49939da3b 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117-SNAPSHOT + 11.117 diff --git a/pom.xml b/pom.xml index e582410de5..c81c275136 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.117-SNAPSHOT + 11.117 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.117 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 94e2b5e036..a2876ac50c 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 diff --git a/repository/pom.xml b/repository/pom.xml index 7e12b38c38..7f03100615 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117-SNAPSHOT + 11.117 From a9f19de31ccb99d53627911c8b2237d93c76d30b Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 24 Aug 2021 15:11:35 +0000 Subject: [PATCH 081/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 29ea448172..10ea2351a8 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.117 + 11.118-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8350004b41..31de58fdfe 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.117 + 11.118-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 879cee6d2e..4f11b38a3d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index b83ad22ee2..dc5014be9e 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.117 + 11.118-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index d0ccdaa90c..4b5a063ddc 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.117 + 11.118-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 65fb43c512..0e8b85894c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.117 + 11.118-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 37d7ec99d9..e3b7e54834 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c9c1bf8fb8..3c359dd255 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.117 + 11.118-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 518f37cb69..593c6e420c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 82f75fc964..a56f9a6bef 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index b0b87d17a3..78cd153c43 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 4194c1a48e..9d9601bf27 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 3c754c5117..5f219dcbf9 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 1d605d1af8..8d3134831d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 319e97c4ae..7abb217348 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 9671ff292f..d0c7756119 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 98fa761eda..75ca5aa7a8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bd68c7cb8b..7726a1e7f6 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 53ca193479..ae07f09654 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.117 + 11.118-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index b49939da3b..0894cbad71 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.117 + 11.118-SNAPSHOT diff --git a/pom.xml b/pom.xml index c81c275136..4b41db1263 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.117 + 11.118-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.117 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index a2876ac50c..f0f64d5df6 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 7f03100615..d0dbb0556b 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.117 + 11.118-SNAPSHOT From 439a9254a38ece716b7b2bdd2c2ef7906d8982e6 Mon Sep 17 00:00:00 2001 From: alandavis Date: Wed, 25 Aug 2021 11:46:25 +0100 Subject: [PATCH 082/177] Remove double spaces in log messages [skip ci] --- .../repo/rendition2/LocalSynchronousTransformClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/src/main/java/org/alfresco/repo/rendition2/LocalSynchronousTransformClient.java b/repository/src/main/java/org/alfresco/repo/rendition2/LocalSynchronousTransformClient.java index 281b76adf3..60388f9be4 100644 --- a/repository/src/main/java/org/alfresco/repo/rendition2/LocalSynchronousTransformClient.java +++ b/repository/src/main/java/org/alfresco/repo/rendition2/LocalSynchronousTransformClient.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2019 Alfresco Software Limited + * Copyright (C) 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -120,21 +120,21 @@ public class LocalSynchronousTransformClient implements SynchronousTransformClie if (logger.isDebugEnabled()) { - logger.debug(TRANSFORM + " requested " + renditionName); + logger.debug(TRANSFORM + "requested " + renditionName); } transform.transform(reader, writer, actualOptions, renditionName, sourceNodeRef); if (logger.isDebugEnabled()) { - logger.debug(TRANSFORM + " created " + renditionName); + logger.debug(TRANSFORM + "created " + renditionName); } } catch (Exception e) { if (logger.isDebugEnabled()) { - logger.debug(TRANSFORM + " failed " + renditionName, e); + logger.debug(TRANSFORM + "failed " + renditionName, e); } throw e; } From c7c40b06e1690f9d1044588ba81bbbfe3b4cd4e7 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Aug 2021 17:22:59 +0100 Subject: [PATCH 083/177] Feature/acs 1904 fix node ref vs content url (#680) * ACS-1904 Fix NodeRef vs ContentUrl and remove deprecated methods * ACS-1904 remove unused imports --- .../alfresco/repo/content/ContentStore.java | 33 ++----------------- .../repo/content/ContentServiceImpl.java | 9 +---- .../content/caching/CachingContentStore.java | 4 +-- .../replication/AggregatingContentStore.java | 6 ++-- .../cmr/repository/ContentService.java | 18 ---------- .../caching/CachingContentStoreTest.java | 6 ++-- .../AggregatingContentStoreTest.java | 2 +- 7 files changed, 12 insertions(+), 66 deletions(-) diff --git a/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java b/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java index 4344a15c87..56a43858f7 100644 --- a/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java +++ b/data-model/src/main/java/org/alfresco/repo/content/ContentStore.java @@ -25,8 +25,6 @@ */ package org.alfresco.repo.content; -import java.util.Date; - import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.cmr.repository.ContentAccessor; import org.alfresco.service.cmr.repository.ContentIOException; @@ -34,7 +32,6 @@ import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentStreamListener; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.DirectAccessUrl; -import org.alfresco.service.cmr.repository.NodeRef; /** @@ -254,9 +251,10 @@ public interface ContentStore /** * Checks if the store supports the retrieving of a direct access URL for the given node. * + * @param contentUrl the {@code URL} of the content for which to request a direct access {@code URL} * @return {@code true} if direct access URLs retrieving is supported for the node, {@code false} otherwise */ - default boolean isContentDirectUrlEnabled(NodeRef nodeRef) + default boolean isContentDirectUrlEnabled(String contentUrl) { return false; } @@ -292,31 +290,4 @@ public interface ContentStore throw new UnsupportedOperationException( "Retrieving direct access URLs is not supported by this content store."); } - - /** - * Gets a presigned URL to directly access a binary content. It is up to the actual store - * implementation if it can fulfil this request with an expiry time or not. - * - * @param contentUrl A content store URL - * @param expiresAt An optional expiry date, so the direct access url would become invalid when the expiry date is reached - * @return A direct access URL object for a binary content - * @throws UnsupportedOperationException if the store is unable to provide the information - */ - @Deprecated - default DirectAccessUrl getDirectAccessUrl(String contentUrl, Date expiresAt) - { - throw new UnsupportedOperationException( - "Retrieving direct access URLs is not supported by this content store."); - } - - /** - * Checks if the store supports the retrieving of direct access URLs. - * - * @return true if direct access URLs retrieving is supported, false otherwise - */ - @Deprecated - default boolean isDirectAccessSupported() - { - return false; - } } diff --git a/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java b/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java index 158306bed0..8337bdd02d 100644 --- a/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java +++ b/repository/src/main/java/org/alfresco/repo/content/ContentServiceImpl.java @@ -27,7 +27,6 @@ package org.alfresco.repo.content; import java.io.Serializable; import java.util.Collection; -import java.util.Date; import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -520,12 +519,6 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa return tempStore.getWriter(ContentContext.NULL_CONTEXT); } - @Deprecated - public DirectAccessUrl getDirectAccessUrl(NodeRef nodeRef, Date expiresAt) - { - return requestContentDirectUrl(nodeRef, true, null); - } - /** * Ensures that, upon closure of the output stream, the node is updated with * the latest URL of the content to which it refers. @@ -612,7 +605,7 @@ public class ContentServiceImpl implements ContentService, ApplicationContextAwa throw new IllegalArgumentException("The supplied nodeRef " + nodeRef + " has no content."); } - contentDirectUrlEnabled = (store.isContentDirectUrlEnabled(nodeRef)); + contentDirectUrlEnabled = (store.isContentDirectUrlEnabled(getContentUrl(nodeRef))); } return contentDirectUrlEnabled; diff --git a/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java b/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java index 77e7851547..c2b498391a 100644 --- a/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java +++ b/repository/src/main/java/org/alfresco/repo/content/caching/CachingContentStore.java @@ -489,9 +489,9 @@ public class CachingContentStore implements ContentStore, ApplicationEventPublis /** * {@inheritDoc} */ - public boolean isContentDirectUrlEnabled(NodeRef nodeRef) + public boolean isContentDirectUrlEnabled(String contentUrl) { - return backingStore.isContentDirectUrlEnabled(nodeRef); + return backingStore.isContentDirectUrlEnabled(contentUrl); } /** diff --git a/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java b/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java index 6c700e0572..342a299f5b 100644 --- a/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java +++ b/repository/src/main/java/org/alfresco/repo/content/replication/AggregatingContentStore.java @@ -294,10 +294,10 @@ public class AggregatingContentStore extends AbstractContentStore /** * @return Returns {@code true} if at least one store supports direct access URL for node */ - public boolean isContentDirectUrlEnabled(NodeRef nodeRef) + public boolean isContentDirectUrlEnabled(String contentUrl) { // Check the primary store - boolean isContentDirectUrlEnabled = primaryStore.isContentDirectUrlEnabled(nodeRef); + boolean isContentDirectUrlEnabled = primaryStore.isContentDirectUrlEnabled(contentUrl); if (!isContentDirectUrlEnabled) { @@ -305,7 +305,7 @@ public class AggregatingContentStore extends AbstractContentStore // other stores for (ContentStore store : secondaryStores) { - isContentDirectUrlEnabled = store.isContentDirectUrlEnabled(nodeRef); + isContentDirectUrlEnabled = store.isContentDirectUrlEnabled(contentUrl); if (isContentDirectUrlEnabled) { diff --git a/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java b/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java index ce73035374..ae899c6d53 100644 --- a/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java +++ b/repository/src/main/java/org/alfresco/service/cmr/repository/ContentService.java @@ -25,7 +25,6 @@ */ package org.alfresco.service.cmr.repository; -import java.util.Date; import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.Auditable; @@ -155,23 +154,6 @@ public interface ContentService @Auditable public ContentWriter getTempWriter(); - /** - * Gets a presigned URL to directly access a binary content. It is up to the - * content store if it can fulfil this request with an expiry time (in - * milliseconds) or not. - * - * @param nodeRef - * a reference to a node having a content property - * @param expiresAt - * an optional expiry date, so the direct access url would become - * invalid when the expiry date is reached - * @return A direct access URL object for a binary content or returns null if not supported - * @throws IllegalArgumentException if there is no binary content for the node - */ - @Deprecated - @Auditable(parameters = {"nodeRef", "expiresAt"}) - public DirectAccessUrl getDirectAccessUrl(NodeRef nodeRef, Date expiresAt); - /** * Checks if the system and at least one store supports the retrieving of direct access URLs. * diff --git a/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java b/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java index f35d0b08d4..e7cec2bbe0 100644 --- a/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java +++ b/repository/src/test/java/org/alfresco/repo/content/caching/CachingContentStoreTest.java @@ -492,7 +492,7 @@ public class CachingContentStoreTest } @Test - public void isDirectAccessSupported() + public void isContentDirectUrlSupported() { assertFalse(cachingStore.isContentDirectUrlEnabled()); @@ -501,7 +501,7 @@ public class CachingContentStoreTest } @Test - public void getDirectAccessUrlUnsupported() + public void getRequestContentDirectUrlUnsupported() { try { @@ -516,7 +516,7 @@ public class CachingContentStoreTest } @Test - public void getDirectAccessUrl() + public void getRequestContentDirectUrl() { when(backingStore.requestContentDirectUrl(anyString(), eq(true), anyString(), anyLong())).thenReturn(new DirectAccessUrl()); cachingStore.requestContentDirectUrl("url", true,"someFile", 30L); diff --git a/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java b/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java index 585843f155..ccf627474c 100644 --- a/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java +++ b/repository/src/test/java/org/alfresco/repo/content/replication/AggregatingContentStoreTest.java @@ -216,7 +216,7 @@ public class AggregatingContentStoreTest extends AbstractWritableContentStoreTes } @Test - public void testGetDirectAccessUrl() + public void testRequestContentDirectUrl() { // Create the aggregating store AggregatingContentStore aggStore = new AggregatingContentStore(); From 16f0714e9911115212ba69d0ea2df07cbd478091 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 25 Aug 2021 17:12:41 +0000 Subject: [PATCH 084/177] [maven-release-plugin][skip ci] prepare release 11.118 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 10ea2351a8..5716614c2c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.118-SNAPSHOT + 11.118 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 31de58fdfe..15a608f62c 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.118-SNAPSHOT + 11.118 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 4f11b38a3d..e0b2b25328 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index dc5014be9e..451a2a5ba2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.118-SNAPSHOT + 11.118 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 4b5a063ddc..377e4e7dc2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.118-SNAPSHOT + 11.118 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0e8b85894c..58946aafcd 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.118-SNAPSHOT + 11.118 diff --git a/amps/pom.xml b/amps/pom.xml index e3b7e54834..8012e6c335 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3c359dd255..681ee3def2 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.118-SNAPSHOT + 11.118 diff --git a/core/pom.xml b/core/pom.xml index 593c6e420c..d8b05931c2 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/data-model/pom.xml b/data-model/pom.xml index a56f9a6bef..32cdc317d6 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 78cd153c43..cc1dbe1c46 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 9d9601bf27..b1eb91eaa3 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/pom.xml b/packaging/pom.xml index 5f219dcbf9..46d6e70706 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 8d3134831d..ff671fd468 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 7abb217348..400fee187f 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index d0c7756119..96625b2a0f 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 75ca5aa7a8..dd94b46bba 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 7726a1e7f6..1e8776cce5 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index ae07f09654..165db5b57a 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118-SNAPSHOT + 11.118 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 0894cbad71..abb4c7497d 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118-SNAPSHOT + 11.118 diff --git a/pom.xml b/pom.xml index 4b41db1263..11c06e9ecb 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.118-SNAPSHOT + 11.118 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.118 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f0f64d5df6..b82066b537 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 diff --git a/repository/pom.xml b/repository/pom.xml index d0dbb0556b..32f0f26d09 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118-SNAPSHOT + 11.118 From 472710ffd48438ba4b1f23a08a2f2d84dc678d48 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 25 Aug 2021 17:12:43 +0000 Subject: [PATCH 085/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5716614c2c..688750f772 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.118 + 11.119-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 15a608f62c..36bc2eb0c0 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.118 + 11.119-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e0b2b25328..703c823f6b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 451a2a5ba2..dc8c508e82 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.118 + 11.119-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 377e4e7dc2..cd3addedb8 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.118 + 11.119-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 58946aafcd..2fc680c98f 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.118 + 11.119-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 8012e6c335..b05101f84e 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 681ee3def2..ef0a38c439 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.118 + 11.119-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index d8b05931c2..666fa79065 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 32cdc317d6..4781561e27 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index cc1dbe1c46..c746f8be7a 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index b1eb91eaa3..aded818786 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 46d6e70706..e5352c9996 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ff671fd468..ef15a172e8 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 400fee187f..09c6ffc659 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 96625b2a0f..853ad7a75e 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index dd94b46bba..712521be2a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 1e8776cce5..0f9058346c 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 165db5b57a..76fcf883b7 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.118 + 11.119-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index abb4c7497d..888ff96dbb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.118 + 11.119-SNAPSHOT diff --git a/pom.xml b/pom.xml index 11c06e9ecb..7e63dd83e8 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.118 + 11.119-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.118 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index b82066b537..9e77f75a21 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 32f0f26d09..f4d4f1c7f0 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.118 + 11.119-SNAPSHOT From 77691ec5fd2f39754a86e920edd2e9d743a0955a Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Aug 2021 20:14:16 +0100 Subject: [PATCH 086/177] ACS-1913 Fix endpoint operation labels (#682) * ACS-1913 Fix endpoint operation labels * ACS-1913 Update tests * ACS-1913 Update tests --- .../alfresco/rest/api/nodes/NodeRenditionsRelation.java | 2 +- .../rest/api/nodes/NodeVersionRenditionsRelation.java | 2 +- .../alfresco/rest/api/nodes/NodeVersionsRelation.java | 2 +- .../org/alfresco/rest/api/nodes/NodesEntityResource.java | 2 +- .../rest/api/trashcan/TrashcanEntityResource.java | 2 +- .../org/alfresco/rest/api/tests/AbstractBaseApiTest.java | 4 ++-- .../java/org/alfresco/rest/api/tests/NodeApiTest.java | 9 ++++----- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java index f2faf3ef4a..9a6e48fd50 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java @@ -119,7 +119,7 @@ public class NodeRenditionsRelation implements RelationshipResourceAction.Read Date: Wed, 25 Aug 2021 20:01:27 +0000 Subject: [PATCH 087/177] [maven-release-plugin][skip ci] prepare release 11.119 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 688750f772..775ecc00bd 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.119-SNAPSHOT + 11.119 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 36bc2eb0c0..7bef62509f 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.119-SNAPSHOT + 11.119 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 703c823f6b..580dd9fa5e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index dc8c508e82..6f50a9e578 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.119-SNAPSHOT + 11.119 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index cd3addedb8..810a2ca793 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.119-SNAPSHOT + 11.119 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 2fc680c98f..83c1581269 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.119-SNAPSHOT + 11.119 diff --git a/amps/pom.xml b/amps/pom.xml index b05101f84e..aa8c70f00f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index ef0a38c439..0ddadb1938 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.119-SNAPSHOT + 11.119 diff --git a/core/pom.xml b/core/pom.xml index 666fa79065..c732be073c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/data-model/pom.xml b/data-model/pom.xml index 4781561e27..7c8d8719ed 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index c746f8be7a..0adc09e491 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index aded818786..eab7666b7d 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/pom.xml b/packaging/pom.xml index e5352c9996..7156fb6364 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ef15a172e8..1c994b6251 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 09c6ffc659..079b8dc6f9 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 853ad7a75e..078dbe6dc5 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 712521be2a..35be94b11f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 0f9058346c..f3133f8767 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 76fcf883b7..b2fc3601e3 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119-SNAPSHOT + 11.119 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 888ff96dbb..b9c5a1d2b9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119-SNAPSHOT + 11.119 diff --git a/pom.xml b/pom.xml index 7e63dd83e8..7a22f126ae 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.119-SNAPSHOT + 11.119 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.119 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 9e77f75a21..eab0cdefa3 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 diff --git a/repository/pom.xml b/repository/pom.xml index f4d4f1c7f0..0877f776b7 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119-SNAPSHOT + 11.119 From 01b5fb559302d1617ff602d7176a8c82c5dc51f2 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 25 Aug 2021 20:01:30 +0000 Subject: [PATCH 088/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 775ecc00bd..8a1bbc20c4 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.119 + 11.120-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 7bef62509f..278f0683e6 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.119 + 11.120-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 580dd9fa5e..7ecb2c426a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 6f50a9e578..9cef755363 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.119 + 11.120-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 810a2ca793..b0157c497b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.119 + 11.120-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 83c1581269..83355d8c52 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.119 + 11.120-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index aa8c70f00f..f4b18d52ff 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 0ddadb1938..efbd5ba6ba 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.119 + 11.120-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index c732be073c..30ce6244d5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 7c8d8719ed..0828fef890 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 0adc09e491..83b0d12c20 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index eab7666b7d..fbc6eba22c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 7156fb6364..944e61adf3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 1c994b6251..9c96a5f909 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 079b8dc6f9..0ca680db37 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 078dbe6dc5..faf3a25fa1 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 35be94b11f..7170909f64 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f3133f8767..22947fc4c3 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b2fc3601e3..330000bd39 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.119 + 11.120-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index b9c5a1d2b9..03b6a840bb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.119 + 11.120-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7a22f126ae..0f52a1f921 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.119 + 11.120-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.119 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index eab0cdefa3..7943cfd28c 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 0877f776b7..377a4c4dbe 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.119 + 11.120-SNAPSHOT From 85fa4b5a9305e04ee691c1a701cf0f78fb37b5a8 Mon Sep 17 00:00:00 2001 From: Stefan Kopf Date: Wed, 25 Aug 2021 23:05:33 +0200 Subject: [PATCH 089/177] ACS-1907 TMDQ against MySql throws SQLException in certain situations (#679) * Added alternative approach for DBQueryEngine to page through the entire query using "LIMIT" requests instead of result set streaming * Use the alternative approach for MySql --- .travis.yml | 6 +- .../search/impl/querymodel/QueryEngine.java | 2 +- .../impl/querymodel/impl/db/DBQuery.java | 70 +++++++++------ .../querymodel/impl/db/DBQueryEngine.java | 90 ++++++++++++++++++- .../metadata-query-common-SqlMap.xml | 5 +- .../Search/common-search-context.xml | 31 ++++++- .../org/alfresco/AllDBTestsTestSuite.java | 4 +- .../impl/querymodel/impl/db/ACS1907Test.java | 79 ++++++++++++++-- 8 files changed, 241 insertions(+), 46 deletions(-) diff --git a/.travis.yml b/.travis.yml index fab7f4a49e..e6a004cfa1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -145,7 +145,7 @@ jobs: script: travis_wait 20 mvn -B test -pl repository -Dtest=AllDBTestsTestSuite -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver - name: "Repository - MariaDB 10.6 tests" - if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip db\]/ AND type != pull_request) OR commit_message =~ /\[db\]/ + if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip db\]/ AND type != pull_request) OR commit_message =~ /\[db\]/ OR commit_message =~ /\[latest db\]/ before_script: - docker run -d -p 3307:3306 --name mariadb -e MYSQL_ROOT_PASSWORD=alfresco -e MYSQL_USER=alfresco -e MYSQL_DATABASE=alfresco -e MYSQL_PASSWORD=alfresco mariadb:10.6 --transaction-isolation=READ-COMMITTED --max-connections=300 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 @@ -159,7 +159,7 @@ jobs: script: travis_wait 20 mvn -B test -pl repository -Dtest=AllDBTestsTestSuite -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - MySQL 8 tests" - if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip db\]/ AND type != pull_request) OR commit_message =~ /\[db\]/ + if: (branch =~ /(release\/.*$|master)/ AND commit_message !~ /\[skip db\]/ AND type != pull_request) OR commit_message =~ /\[db\]/ OR commit_message =~ /\[latest db\]/ before_script: - docker run -d -p 3307:3306 -e MYSQL_ROOT_PASSWORD=alfresco -e MYSQL_USER=alfresco -e MYSQL_DATABASE=alfresco -e MYSQL_PASSWORD=alfresco mysql:8 --transaction-isolation='READ-COMMITTED' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 @@ -210,7 +210,7 @@ jobs: - name: "Repository - PostgreSQL 13.3 tests" # We only run DB tests on the latest version of PostgreSQL on feature branches - if: commit_message !~ /\[skip db\]/ + if: commit_message !~ /\[skip db\]/ OR commit_message =~ /\[latest db\]/ before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 diff --git a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java index e543104e5f..b39cbd572e 100644 --- a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java +++ b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java @@ -2,7 +2,7 @@ * #%L * Alfresco Data model classes * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java index fd98d9bc77..abb7c40efe 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java @@ -1,28 +1,28 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2016 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ package org.alfresco.repo.search.impl.querymodel.impl.db; import java.util.ArrayList; @@ -74,6 +74,10 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent Set selectorGroup; + private int limit = 0; + + private int offset = 0; + /** * @param source Source * @param constraint Constraint @@ -133,6 +137,22 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent this.sinceTxId = sinceTxId; } + public int getLimit() { + return limit; + } + + public void setLimit(int limit) { + this.limit = limit; + } + + public int getOffset() { + return offset; + } + + public void setOffset(int offset) { + this.offset = offset; + } + public List getJoins() { HashMap singleJoins = new HashMap(); diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java index 612f958a65..96ca208c73 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java @@ -76,8 +76,10 @@ import org.alfresco.service.namespace.QName; import org.alfresco.util.Pair; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.ibatis.executor.result.DefaultResultContext; import org.apache.ibatis.session.ResultContext; import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; import org.mybatis.spring.SqlSessionTemplate; /** @@ -89,7 +91,11 @@ public class DBQueryEngine implements QueryEngine protected static final Log logger = LogFactory.getLog(DBQueryEngine.class); protected static final String SELECT_BY_DYNAMIC_QUERY = "alfresco.metadata.query.select_byDynamicQuery"; - + + private static final int DEFAULT_MIN_PAGING_BATCH_SIZE = 2500; + + private static final int DEFAULT_MAX_PAGING_BATCH_SIZE = 10000; + protected SqlSessionTemplate template; protected QNameDAO qnameDAO; @@ -114,6 +120,12 @@ public class DBQueryEngine implements QueryEngine private boolean maxPermissionCheckEnabled; + private boolean usePagingQuery = false; + + private int minPagingBatchSize = DEFAULT_MIN_PAGING_BATCH_SIZE; + + private int maxPagingBatchSize = DEFAULT_MAX_PAGING_BATCH_SIZE; + protected EntityLookupCache nodesCache; private List> stores; @@ -149,7 +161,31 @@ public class DBQueryEngine implements QueryEngine { this.permissionService = permissionService; } - + + public boolean isUsePagingQuery() { + return usePagingQuery; + } + + public void setUsePagingQuery(boolean usePagingQuery) { + this.usePagingQuery = usePagingQuery; + } + + public int getMinPagingBatchSize() { + return minPagingBatchSize; + } + + public void setMinPagingBatchSize(int minPagingBatchSize) { + this.minPagingBatchSize = minPagingBatchSize; + } + + public int getMaxPagingBatchSize() { + return maxPagingBatchSize; + } + + public void setMaxPagingBatchSize(int maxPagingBatchSize) { + this.maxPagingBatchSize = maxPagingBatchSize; + } + public void setMetadataIndexCheck2(OptionalPatchApplicationCheckBootstrapBean metadataIndexCheck2) { this.metadataIndexCheck2 = metadataIndexCheck2; @@ -331,7 +367,7 @@ public class DBQueryEngine implements QueryEngine int requiredNodes = computeRequiredNodesCount(options); logger.debug("- query sent to the database"); - template.select(pickQueryTemplate(options, dbQuery), dbQuery, new ResultHandler() + performTmdqSelect(pickQueryTemplate(options, dbQuery), dbQuery, requiredNodes, new ResultHandler() { @Override public void handleResult(ResultContext context) @@ -399,6 +435,54 @@ public class DBQueryEngine implements QueryEngine return frs; } + private void performTmdqSelect(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) + { + if (usePagingQuery) + { + performTmdqSelectPaging(statement, dbQuery, requiredNodes, handler); + } + else + { + performTmdqSelectStreaming(statement, dbQuery, handler); + } + } + + private void performTmdqSelectStreaming(String statement, DBQuery dbQuery, ResultHandler handler) + { + template.select(statement, dbQuery, handler); + } + + private void performTmdqSelectPaging(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) + { + int batchStart = 0; + int batchSize = requiredNodes * 2; + batchSize = Math.min(Math.max(batchSize, minPagingBatchSize), maxPagingBatchSize); + DefaultResultContext resultCtx = new DefaultResultContext<>(); + while (!resultCtx.isStopped()) + { + dbQuery.setOffset(batchStart); + dbQuery.setLimit(batchSize); + List batch = template.selectList(statement, dbQuery); + for (Node node : batch) + { + resultCtx.nextResultObject(node); + handler.handleResult(resultCtx); + if (resultCtx.isStopped()) + { + break; + } + } + if (batch.size() < batchSize) + { + resultCtx.stop(); + } + else + { + batchStart += batchSize; + } + } + } + private DBResultSet createResultSet(QueryOptions options, List nodes, int numberFound) { DBResultSet dbResultSet = new DBResultSet(options.getAsSearchParmeters(), nodes, nodeDAO, nodeService, tenantService, Integer.MAX_VALUE); diff --git a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml index 8230226816..ecc97b3451 100644 --- a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml +++ b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml @@ -177,7 +177,8 @@ - - + + limit #{offset}, #{limit} + \ No newline at end of file diff --git a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml index 7410e27f2b..932c4a06ef 100644 --- a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml +++ b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml @@ -105,8 +105,35 @@ - - + + + + search.dbQueryEngineImpl.#bean.dialect# + + + org.alfresco.repo.search.impl.querymodel.QueryEngine + + + org.alfresco.repo.domain.dialect.Dialect + + + + + + + + + + + + + + + + + diff --git a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java index ec7aa1105a..1737976f0e 100644 --- a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java +++ b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2017 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -80,7 +80,7 @@ import org.junit.runners.Suite; // ACS-1907 org.alfresco.repo.search.impl.querymodel.impl.db.ACS1907Test.class, - // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL + // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL // Moved at the bottom of the suite because DbNodeServiceImplTest.testNodeCleanupRegistry() takes a long time on a clean DB. org.alfresco.repo.node.db.DbNodeServiceImplTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java index 65e4741147..50232978e9 100644 --- a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java +++ b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java @@ -28,6 +28,7 @@ package org.alfresco.repo.search.impl.querymodel.impl.db; import junit.framework.TestCase; import org.alfresco.model.ContentModel; import org.alfresco.repo.cache.TransactionalCache; +import org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory; import org.alfresco.repo.security.authentication.AuthenticationComponent; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.MutableAuthenticationDao; @@ -36,21 +37,23 @@ import org.alfresco.repo.transaction.RetryingTransactionHelper; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.StoreRef; -import org.alfresco.service.cmr.search.ResultSet; -import org.alfresco.service.cmr.search.ResultSetRow; -import org.alfresco.service.cmr.search.SearchParameters; -import org.alfresco.service.cmr.search.SearchService; +import org.alfresco.service.cmr.search.*; import org.alfresco.service.cmr.security.MutableAuthenticationService; import org.alfresco.service.cmr.security.PermissionService; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; +import org.alfresco.test_category.OwnJVMTestsCategory; import org.alfresco.util.ApplicationContextHelper; +import org.alfresco.util.testing.category.DBTests; +import org.junit.experimental.categories.Category; import org.springframework.context.ApplicationContext; import java.io.Serializable; import java.util.HashMap; +import java.util.HashSet; import java.util.Map; +@Category({OwnJVMTestsCategory.class, DBTests.class}) public class ACS1907Test extends TestCase { @@ -64,6 +67,7 @@ public class ACS1907Test extends TestCase private PermissionService pubPermissionService; private TransactionService transactionService; private RetryingTransactionHelper txnHelper; + private DBQueryEngine queryEngine; private TransactionalCache aclCache; private TransactionalCache aclEntityCache; @@ -101,7 +105,16 @@ public class ACS1907Test extends TestCase aclCache = (TransactionalCache) ctx.getBean("aclCache"); aclEntityCache = (TransactionalCache) ctx.getBean("aclEntityCache"); permissionEntityCache = (TransactionalCache) ctx.getBean("permissionEntityCache"); - txnHelper = transactionService.getRetryingTransactionHelper(); + SwitchableApplicationContextFactory searchContextFactory = (SwitchableApplicationContextFactory) ctx.getBean("Search"); + ApplicationContext searchCtx = searchContextFactory.getApplicationContext(); + queryEngine = (DBQueryEngine) searchCtx.getBean("search.dbQueryEngineImpl"); + txnHelper = new RetryingTransactionHelper(); + txnHelper.setTransactionService(transactionService); + txnHelper.setReadOnly(false); + txnHelper.setMaxRetries(1); + txnHelper.setMinRetryWaitMs(1); + txnHelper.setMaxRetryWaitMs(10); + txnHelper.setRetryWaitIncrementMs(1); } private void setupTestUser(String userName) @@ -127,7 +140,7 @@ public class ACS1907Test extends TestCase private void setupTestContent() { - for(int f = 0; f < 100; f++) + for(int f = 0; f < 5; f++) { final int ff = f; txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { @@ -142,7 +155,7 @@ public class ACS1907Test extends TestCase ContentModel.TYPE_FOLDER, testFolderProps ).getChildRef(); - for(int c = 0; c < 1000; c++) + for(int c = 0; c < 5; c++) { Map testContentProps = new HashMap<>(); testContentProps.put(ContentModel.PROP_NAME, "content"+c); @@ -179,12 +192,15 @@ public class ACS1907Test extends TestCase public Object doWork() throws Exception { SearchParameters sp = new SearchParameters(); sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); - sp.setLanguage(SearchService.LANGUAGE_LUCENE); + sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); + sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); sp.setQuery("TYPE:\"cm:content\""); ResultSet rs = pubSearchService.query(sp); + int cnt = 0; for (ResultSetRow row : rs) { assertNotNull(row.getValue(ContentModel.PROP_NAME)); + cnt++; } return null; } @@ -194,4 +210,51 @@ public class ACS1907Test extends TestCase }, false, false); } + public void testPaging() + { + HashSet resultPageSize2 = queryNodes(2); + HashSet resultPageSize5 = queryNodes(5); + HashSet resultPageSize10 = queryNodes(10); + HashSet resultPageSizeAll = queryNodes(10000); + // all result sets must be equal, independent of page size used to retrieve them + assertTrue(resultPageSize2.size() >= 25); + assertTrue(resultPageSize5.size() >= 25); + assertTrue(resultPageSize10.size() >= 25); + assertTrue(resultPageSizeAll.size() >= 25); + assertTrue(resultPageSize2.containsAll(resultPageSize5)); + assertTrue(resultPageSize2.containsAll(resultPageSize10)); + assertTrue(resultPageSize2.containsAll(resultPageSizeAll)); + assertTrue(resultPageSize5.containsAll(resultPageSize2)); + assertTrue(resultPageSize5.containsAll(resultPageSize10)); + assertTrue(resultPageSize5.containsAll(resultPageSizeAll)); + assertTrue(resultPageSize10.containsAll(resultPageSize2)); + assertTrue(resultPageSize10.containsAll(resultPageSize5)); + assertTrue(resultPageSize10.containsAll(resultPageSizeAll)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize2)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize5)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize10)); + // reset + queryEngine.setMinPagingBatchSize(2500); + queryEngine.setMaxPagingBatchSize(10000); + } + + HashSet queryNodes(int pageSize) + { + queryEngine.setMinPagingBatchSize(pageSize); + queryEngine.setMaxPagingBatchSize(pageSize); + HashSet result = new HashSet<>(); + SearchParameters sp = new SearchParameters(); + sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); + sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); + sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); + sp.setQuery("TYPE:\"cm:content\""); + ResultSet rs = pubSearchService.query(sp); + int cnt = 0; + for (ResultSetRow row : rs) + { + result.add(row.getNodeRef()); + } + return result; + } + } From af24fef02ba445b55650d01516f0ae79107f9285 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 25 Aug 2021 22:17:34 +0000 Subject: [PATCH 090/177] [maven-release-plugin][skip ci] prepare release 11.120 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 8a1bbc20c4..de17e6aec0 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.120-SNAPSHOT + 11.120 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 278f0683e6..cbf6e4a20e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.120-SNAPSHOT + 11.120 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 7ecb2c426a..22d99a0946 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 9cef755363..b6dae5aef1 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.120-SNAPSHOT + 11.120 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index b0157c497b..81a5c22b0c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.120-SNAPSHOT + 11.120 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 83355d8c52..bf65591fd6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.120-SNAPSHOT + 11.120 diff --git a/amps/pom.xml b/amps/pom.xml index f4b18d52ff..7f534744c6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index efbd5ba6ba..e9862c0a62 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.120-SNAPSHOT + 11.120 diff --git a/core/pom.xml b/core/pom.xml index 30ce6244d5..249668e3de 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/data-model/pom.xml b/data-model/pom.xml index 0828fef890..386653c3e9 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 83b0d12c20..8e8d861be7 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index fbc6eba22c..0851639b7c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/pom.xml b/packaging/pom.xml index 944e61adf3..ee2671b155 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 9c96a5f909..b89e3206ab 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 0ca680db37..417141cf55 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index faf3a25fa1..20c574f5cc 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 7170909f64..fbcbbe0ad3 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 22947fc4c3..b6f27eba1e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 330000bd39..e9e6b32b56 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120-SNAPSHOT + 11.120 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 03b6a840bb..7c5fdbf8ef 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120-SNAPSHOT + 11.120 diff --git a/pom.xml b/pom.xml index 0f52a1f921..110faa910f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.120-SNAPSHOT + 11.120 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.120 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 7943cfd28c..98add698ef 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 diff --git a/repository/pom.xml b/repository/pom.xml index 377a4c4dbe..539ad92fc2 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120-SNAPSHOT + 11.120 From b26d03cc0cb9ca92913b5d08474db90e36d88529 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 25 Aug 2021 22:17:37 +0000 Subject: [PATCH 091/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index de17e6aec0..6742237b43 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.120 + 11.121-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index cbf6e4a20e..c193a1ca44 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.120 + 11.121-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 22d99a0946..c47af063ba 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index b6dae5aef1..1db0a49186 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.120 + 11.121-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 81a5c22b0c..9249c6e7ef 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.120 + 11.121-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index bf65591fd6..3058cdbfd6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.120 + 11.121-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 7f534744c6..8010c3a48a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index e9862c0a62..331e88d593 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.120 + 11.121-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 249668e3de..b4d2515b80 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 386653c3e9..4ec1a23cb4 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 8e8d861be7..33b112e6a3 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 0851639b7c..a2ee39e68a 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index ee2671b155..9a0b6a1b4d 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index b89e3206ab..c9d9b7b018 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 417141cf55..f5bcc3f72f 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 20c574f5cc..8e848d5b9d 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index fbcbbe0ad3..13247218dd 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index b6f27eba1e..ee722e1018 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index e9e6b32b56..62cc84cdb1 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.120 + 11.121-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 7c5fdbf8ef..dfaa62e31c 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.120 + 11.121-SNAPSHOT diff --git a/pom.xml b/pom.xml index 110faa910f..deeb2919ef 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.120 + 11.121-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.120 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 98add698ef..fdd9b5ad0d 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 539ad92fc2..cecd20994f 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.120 + 11.121-SNAPSHOT From 83097d452b65eaa199cf9edccf63f1f39143218e Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 26 Aug 2021 01:18:19 +0100 Subject: [PATCH 092/177] Revert "ACS-1907 TMDQ against MySql throws SQLException in certain situations (#679)" Kept the travis changes. This reverts commit 85fa4b5a9305e04ee691c1a701cf0f78fb37b5a8. --- .../search/impl/querymodel/QueryEngine.java | 2 +- .../impl/querymodel/impl/db/DBQuery.java | 70 ++++++--------- .../querymodel/impl/db/DBQueryEngine.java | 90 +------------------ .../metadata-query-common-SqlMap.xml | 5 +- .../Search/common-search-context.xml | 31 +------ .../org/alfresco/AllDBTestsTestSuite.java | 4 +- .../impl/querymodel/impl/db/ACS1907Test.java | 79 ++-------------- 7 files changed, 43 insertions(+), 238 deletions(-) diff --git a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java index b39cbd572e..e543104e5f 100644 --- a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java +++ b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java @@ -2,7 +2,7 @@ * #%L * Alfresco Data model classes * %% - * Copyright (C) 2005 - 2021 Alfresco Software Limited + * Copyright (C) 2005 - 2016 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java index abb7c40efe..fd98d9bc77 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java @@ -1,28 +1,28 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2016 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ package org.alfresco.repo.search.impl.querymodel.impl.db; import java.util.ArrayList; @@ -74,10 +74,6 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent Set selectorGroup; - private int limit = 0; - - private int offset = 0; - /** * @param source Source * @param constraint Constraint @@ -137,22 +133,6 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent this.sinceTxId = sinceTxId; } - public int getLimit() { - return limit; - } - - public void setLimit(int limit) { - this.limit = limit; - } - - public int getOffset() { - return offset; - } - - public void setOffset(int offset) { - this.offset = offset; - } - public List getJoins() { HashMap singleJoins = new HashMap(); diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java index 96ca208c73..612f958a65 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java @@ -76,10 +76,8 @@ import org.alfresco.service.namespace.QName; import org.alfresco.util.Pair; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.ibatis.executor.result.DefaultResultContext; import org.apache.ibatis.session.ResultContext; import org.apache.ibatis.session.ResultHandler; -import org.apache.ibatis.session.RowBounds; import org.mybatis.spring.SqlSessionTemplate; /** @@ -91,11 +89,7 @@ public class DBQueryEngine implements QueryEngine protected static final Log logger = LogFactory.getLog(DBQueryEngine.class); protected static final String SELECT_BY_DYNAMIC_QUERY = "alfresco.metadata.query.select_byDynamicQuery"; - - private static final int DEFAULT_MIN_PAGING_BATCH_SIZE = 2500; - - private static final int DEFAULT_MAX_PAGING_BATCH_SIZE = 10000; - + protected SqlSessionTemplate template; protected QNameDAO qnameDAO; @@ -120,12 +114,6 @@ public class DBQueryEngine implements QueryEngine private boolean maxPermissionCheckEnabled; - private boolean usePagingQuery = false; - - private int minPagingBatchSize = DEFAULT_MIN_PAGING_BATCH_SIZE; - - private int maxPagingBatchSize = DEFAULT_MAX_PAGING_BATCH_SIZE; - protected EntityLookupCache nodesCache; private List> stores; @@ -161,31 +149,7 @@ public class DBQueryEngine implements QueryEngine { this.permissionService = permissionService; } - - public boolean isUsePagingQuery() { - return usePagingQuery; - } - - public void setUsePagingQuery(boolean usePagingQuery) { - this.usePagingQuery = usePagingQuery; - } - - public int getMinPagingBatchSize() { - return minPagingBatchSize; - } - - public void setMinPagingBatchSize(int minPagingBatchSize) { - this.minPagingBatchSize = minPagingBatchSize; - } - - public int getMaxPagingBatchSize() { - return maxPagingBatchSize; - } - - public void setMaxPagingBatchSize(int maxPagingBatchSize) { - this.maxPagingBatchSize = maxPagingBatchSize; - } - + public void setMetadataIndexCheck2(OptionalPatchApplicationCheckBootstrapBean metadataIndexCheck2) { this.metadataIndexCheck2 = metadataIndexCheck2; @@ -367,7 +331,7 @@ public class DBQueryEngine implements QueryEngine int requiredNodes = computeRequiredNodesCount(options); logger.debug("- query sent to the database"); - performTmdqSelect(pickQueryTemplate(options, dbQuery), dbQuery, requiredNodes, new ResultHandler() + template.select(pickQueryTemplate(options, dbQuery), dbQuery, new ResultHandler() { @Override public void handleResult(ResultContext context) @@ -435,54 +399,6 @@ public class DBQueryEngine implements QueryEngine return frs; } - private void performTmdqSelect(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) - { - if (usePagingQuery) - { - performTmdqSelectPaging(statement, dbQuery, requiredNodes, handler); - } - else - { - performTmdqSelectStreaming(statement, dbQuery, handler); - } - } - - private void performTmdqSelectStreaming(String statement, DBQuery dbQuery, ResultHandler handler) - { - template.select(statement, dbQuery, handler); - } - - private void performTmdqSelectPaging(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) - { - int batchStart = 0; - int batchSize = requiredNodes * 2; - batchSize = Math.min(Math.max(batchSize, minPagingBatchSize), maxPagingBatchSize); - DefaultResultContext resultCtx = new DefaultResultContext<>(); - while (!resultCtx.isStopped()) - { - dbQuery.setOffset(batchStart); - dbQuery.setLimit(batchSize); - List batch = template.selectList(statement, dbQuery); - for (Node node : batch) - { - resultCtx.nextResultObject(node); - handler.handleResult(resultCtx); - if (resultCtx.isStopped()) - { - break; - } - } - if (batch.size() < batchSize) - { - resultCtx.stop(); - } - else - { - batchStart += batchSize; - } - } - } - private DBResultSet createResultSet(QueryOptions options, List nodes, int numberFound) { DBResultSet dbResultSet = new DBResultSet(options.getAsSearchParmeters(), nodes, nodeDAO, nodeService, tenantService, Integer.MAX_VALUE); diff --git a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml index ecc97b3451..8230226816 100644 --- a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml +++ b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml @@ -177,8 +177,7 @@ - - limit #{offset}, #{limit} - + + \ No newline at end of file diff --git a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml index 932c4a06ef..7410e27f2b 100644 --- a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml +++ b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml @@ -105,35 +105,8 @@ - - - - search.dbQueryEngineImpl.#bean.dialect# - - - org.alfresco.repo.search.impl.querymodel.QueryEngine - - - org.alfresco.repo.domain.dialect.Dialect - - - - - - - - - - - - - - - - - + + diff --git a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java index 1737976f0e..ec7aa1105a 100644 --- a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java +++ b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2021 Alfresco Software Limited + * Copyright (C) 2005 - 2017 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -80,7 +80,7 @@ import org.junit.runners.Suite; // ACS-1907 org.alfresco.repo.search.impl.querymodel.impl.db.ACS1907Test.class, - // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL + // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL // Moved at the bottom of the suite because DbNodeServiceImplTest.testNodeCleanupRegistry() takes a long time on a clean DB. org.alfresco.repo.node.db.DbNodeServiceImplTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java index 50232978e9..65e4741147 100644 --- a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java +++ b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java @@ -28,7 +28,6 @@ package org.alfresco.repo.search.impl.querymodel.impl.db; import junit.framework.TestCase; import org.alfresco.model.ContentModel; import org.alfresco.repo.cache.TransactionalCache; -import org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory; import org.alfresco.repo.security.authentication.AuthenticationComponent; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.MutableAuthenticationDao; @@ -37,23 +36,21 @@ import org.alfresco.repo.transaction.RetryingTransactionHelper; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.StoreRef; -import org.alfresco.service.cmr.search.*; +import org.alfresco.service.cmr.search.ResultSet; +import org.alfresco.service.cmr.search.ResultSetRow; +import org.alfresco.service.cmr.search.SearchParameters; +import org.alfresco.service.cmr.search.SearchService; import org.alfresco.service.cmr.security.MutableAuthenticationService; import org.alfresco.service.cmr.security.PermissionService; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; -import org.alfresco.test_category.OwnJVMTestsCategory; import org.alfresco.util.ApplicationContextHelper; -import org.alfresco.util.testing.category.DBTests; -import org.junit.experimental.categories.Category; import org.springframework.context.ApplicationContext; import java.io.Serializable; import java.util.HashMap; -import java.util.HashSet; import java.util.Map; -@Category({OwnJVMTestsCategory.class, DBTests.class}) public class ACS1907Test extends TestCase { @@ -67,7 +64,6 @@ public class ACS1907Test extends TestCase private PermissionService pubPermissionService; private TransactionService transactionService; private RetryingTransactionHelper txnHelper; - private DBQueryEngine queryEngine; private TransactionalCache aclCache; private TransactionalCache aclEntityCache; @@ -105,16 +101,7 @@ public class ACS1907Test extends TestCase aclCache = (TransactionalCache) ctx.getBean("aclCache"); aclEntityCache = (TransactionalCache) ctx.getBean("aclEntityCache"); permissionEntityCache = (TransactionalCache) ctx.getBean("permissionEntityCache"); - SwitchableApplicationContextFactory searchContextFactory = (SwitchableApplicationContextFactory) ctx.getBean("Search"); - ApplicationContext searchCtx = searchContextFactory.getApplicationContext(); - queryEngine = (DBQueryEngine) searchCtx.getBean("search.dbQueryEngineImpl"); - txnHelper = new RetryingTransactionHelper(); - txnHelper.setTransactionService(transactionService); - txnHelper.setReadOnly(false); - txnHelper.setMaxRetries(1); - txnHelper.setMinRetryWaitMs(1); - txnHelper.setMaxRetryWaitMs(10); - txnHelper.setRetryWaitIncrementMs(1); + txnHelper = transactionService.getRetryingTransactionHelper(); } private void setupTestUser(String userName) @@ -140,7 +127,7 @@ public class ACS1907Test extends TestCase private void setupTestContent() { - for(int f = 0; f < 5; f++) + for(int f = 0; f < 100; f++) { final int ff = f; txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { @@ -155,7 +142,7 @@ public class ACS1907Test extends TestCase ContentModel.TYPE_FOLDER, testFolderProps ).getChildRef(); - for(int c = 0; c < 5; c++) + for(int c = 0; c < 1000; c++) { Map testContentProps = new HashMap<>(); testContentProps.put(ContentModel.PROP_NAME, "content"+c); @@ -192,15 +179,12 @@ public class ACS1907Test extends TestCase public Object doWork() throws Exception { SearchParameters sp = new SearchParameters(); sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); - sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); - sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); + sp.setLanguage(SearchService.LANGUAGE_LUCENE); sp.setQuery("TYPE:\"cm:content\""); ResultSet rs = pubSearchService.query(sp); - int cnt = 0; for (ResultSetRow row : rs) { assertNotNull(row.getValue(ContentModel.PROP_NAME)); - cnt++; } return null; } @@ -210,51 +194,4 @@ public class ACS1907Test extends TestCase }, false, false); } - public void testPaging() - { - HashSet resultPageSize2 = queryNodes(2); - HashSet resultPageSize5 = queryNodes(5); - HashSet resultPageSize10 = queryNodes(10); - HashSet resultPageSizeAll = queryNodes(10000); - // all result sets must be equal, independent of page size used to retrieve them - assertTrue(resultPageSize2.size() >= 25); - assertTrue(resultPageSize5.size() >= 25); - assertTrue(resultPageSize10.size() >= 25); - assertTrue(resultPageSizeAll.size() >= 25); - assertTrue(resultPageSize2.containsAll(resultPageSize5)); - assertTrue(resultPageSize2.containsAll(resultPageSize10)); - assertTrue(resultPageSize2.containsAll(resultPageSizeAll)); - assertTrue(resultPageSize5.containsAll(resultPageSize2)); - assertTrue(resultPageSize5.containsAll(resultPageSize10)); - assertTrue(resultPageSize5.containsAll(resultPageSizeAll)); - assertTrue(resultPageSize10.containsAll(resultPageSize2)); - assertTrue(resultPageSize10.containsAll(resultPageSize5)); - assertTrue(resultPageSize10.containsAll(resultPageSizeAll)); - assertTrue(resultPageSizeAll.containsAll(resultPageSize2)); - assertTrue(resultPageSizeAll.containsAll(resultPageSize5)); - assertTrue(resultPageSizeAll.containsAll(resultPageSize10)); - // reset - queryEngine.setMinPagingBatchSize(2500); - queryEngine.setMaxPagingBatchSize(10000); - } - - HashSet queryNodes(int pageSize) - { - queryEngine.setMinPagingBatchSize(pageSize); - queryEngine.setMaxPagingBatchSize(pageSize); - HashSet result = new HashSet<>(); - SearchParameters sp = new SearchParameters(); - sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); - sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); - sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); - sp.setQuery("TYPE:\"cm:content\""); - ResultSet rs = pubSearchService.query(sp); - int cnt = 0; - for (ResultSetRow row : rs) - { - result.add(row.getNodeRef()); - } - return result; - } - } From b6a50ae6e166d3127bff788bc20e5917034465cf Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 06:35:01 +0000 Subject: [PATCH 093/177] [maven-release-plugin][skip ci] prepare release 11.121 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6742237b43..feb92b58be 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.121-SNAPSHOT + 11.121 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index c193a1ca44..941059f79a 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.121-SNAPSHOT + 11.121 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c47af063ba..123ce4c37d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 1db0a49186..881afcdca9 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.121-SNAPSHOT + 11.121 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 9249c6e7ef..90e58d2cb2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.121-SNAPSHOT + 11.121 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 3058cdbfd6..75a635ba14 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.121-SNAPSHOT + 11.121 diff --git a/amps/pom.xml b/amps/pom.xml index 8010c3a48a..5e261fd88c 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 331e88d593..255fdd45b4 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.121-SNAPSHOT + 11.121 diff --git a/core/pom.xml b/core/pom.xml index b4d2515b80..8cfe90cdc7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/data-model/pom.xml b/data-model/pom.xml index 4ec1a23cb4..2f80a85111 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 33b112e6a3..6b14e99900 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index a2ee39e68a..477f11f6d3 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/pom.xml b/packaging/pom.xml index 9a0b6a1b4d..58e1a5b84b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c9d9b7b018..3bccc42728 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f5bcc3f72f..dcebda6bd4 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 8e848d5b9d..c48cacbe37 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 13247218dd..5fac18a212 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index ee722e1018..e3e620585e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 62cc84cdb1..8314046726 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121-SNAPSHOT + 11.121 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index dfaa62e31c..2585c6b349 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121-SNAPSHOT + 11.121 diff --git a/pom.xml b/pom.xml index deeb2919ef..042c63c866 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.121-SNAPSHOT + 11.121 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.121 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index fdd9b5ad0d..318f9c42c2 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 diff --git a/repository/pom.xml b/repository/pom.xml index cecd20994f..fc1b6469b2 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121-SNAPSHOT + 11.121 From 279ff3a0d855ac8577b3065d5bdb0792d170115f Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 06:35:05 +0000 Subject: [PATCH 094/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index feb92b58be..159a4ed59d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.121 + 11.122-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 941059f79a..bfe2e36896 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.121 + 11.122-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 123ce4c37d..4cdef23803 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 881afcdca9..bdc9df0c09 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.121 + 11.122-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 90e58d2cb2..46da59303d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.121 + 11.122-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 75a635ba14..514a705969 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.121 + 11.122-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 5e261fd88c..d5a8a269c7 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 255fdd45b4..e42ddf5663 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.121 + 11.122-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 8cfe90cdc7..fa6fe2e3b0 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 2f80a85111..021b2e46dc 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 6b14e99900..a7d92c002b 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 477f11f6d3..505ec2faf0 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 58e1a5b84b..5690ae64eb 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3bccc42728..2ce2822cf0 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index dcebda6bd4..0313ec8214 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c48cacbe37..3645bd5428 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 5fac18a212..c3871fc857 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index e3e620585e..5781b02cff 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8314046726..0a0b4cc383 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.121 + 11.122-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 2585c6b349..a8037cf4ae 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.121 + 11.122-SNAPSHOT diff --git a/pom.xml b/pom.xml index 042c63c866..fd0db53642 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.121 + 11.122-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.121 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 318f9c42c2..6ac6b154ed 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index fc1b6469b2..47fa4d622e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.121 + 11.122-SNAPSHOT From a8a06f4b1f8c77775a3462dd103d6d79ee357f1b Mon Sep 17 00:00:00 2001 From: Davide Date: Thu, 26 Aug 2021 09:59:06 +0200 Subject: [PATCH 095/177] SEARCH-2833 Add field for association Qname in NodeResource and ChildAssociationResource (#678) --- pom.xml | 2 +- .../ChildAssociationEventConsolidator.java | 4 ++-- .../repo/event2/NodeResourceHelper.java | 19 +++++++++++++++++ .../event2/AbstractContextAwareRepoEvent.java | 21 ++++++++++++++++++- .../event2/ChildAssociationRepoEventIT.java | 12 ++++++----- .../repo/event2/CreateRepoEventIT.java | 6 ++++-- .../repo/event2/DeleteRepoEventIT.java | 4 +++- .../repo/event2/UpdateRepoEventIT.java | 10 +++++++-- 8 files changed, 64 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index fd0db53642..5ef44dfdb2 100644 --- a/pom.xml +++ b/pom.xml @@ -53,7 +53,7 @@ 5.23.0 1.4.0 6.2 - 0.0.12 + 0.0.13 5.3.9 3.5.2 diff --git a/repository/src/main/java/org/alfresco/repo/event2/ChildAssociationEventConsolidator.java b/repository/src/main/java/org/alfresco/repo/event2/ChildAssociationEventConsolidator.java index 8837f3648e..d09833b74e 100644 --- a/repository/src/main/java/org/alfresco/repo/event2/ChildAssociationEventConsolidator.java +++ b/repository/src/main/java/org/alfresco/repo/event2/ChildAssociationEventConsolidator.java @@ -27,7 +27,6 @@ package org.alfresco.repo.event2; import java.util.ArrayDeque; import java.util.Deque; - import org.alfresco.repo.event.v1.model.ChildAssociationResource; import org.alfresco.repo.event.v1.model.DataAttributes; import org.alfresco.repo.event.v1.model.EventData; @@ -117,8 +116,9 @@ public class ChildAssociationEventConsolidator implements ChildAssociationEventS { String parentId = childAssociationRef.getParentRef().getId(); String childId = childAssociationRef.getChildRef().getId(); + String assocQName = helper.getQNamePrefixString(childAssociationRef.getQName()); String assocType = helper.getQNamePrefixString(childAssociationRef.getTypeQName()); - return new ChildAssociationResource(parentId, childId, assocType); + return new ChildAssociationResource(parentId, childId, assocType, assocQName); } /** diff --git a/repository/src/main/java/org/alfresco/repo/event2/NodeResourceHelper.java b/repository/src/main/java/org/alfresco/repo/event2/NodeResourceHelper.java index 7ce7e40d21..9212f2a1b8 100644 --- a/repository/src/main/java/org/alfresco/repo/event2/NodeResourceHelper.java +++ b/repository/src/main/java/org/alfresco/repo/event2/NodeResourceHelper.java @@ -46,6 +46,7 @@ import org.alfresco.repo.event2.filter.NodePropertyFilter; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.permissions.AccessDeniedException; import org.alfresco.service.cmr.dictionary.DictionaryService; +import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.ContentData; import org.alfresco.service.cmr.repository.MLText; import org.alfresco.service.cmr.repository.NodeRef; @@ -148,6 +149,7 @@ public class NodeResourceHelper implements InitializingBean .setModifiedByUser(getUserInfo((String) properties.get(ContentModel.PROP_MODIFIER), mapUserCache)) .setModifiedAt(getZonedDateTime((Date)properties.get(ContentModel.PROP_MODIFIED))) .setContent(getContentInfo(properties)) + .setPrimaryAssocQName(getPrimaryAssocQName(nodeRef)) .setPrimaryHierarchy(PathUtil.getNodeIdsInReverse(path, false)) .setProperties(mapToNodeProperties(properties)) .setAspectNames(getMappedAspects(nodeRef)); @@ -158,6 +160,23 @@ public class NodeResourceHelper implements InitializingBean return dictionaryService.isSubClass(className, ofClassQName); } + private String getPrimaryAssocQName(NodeRef nodeRef) + { + String result = null; + try + { + ChildAssociationRef primaryParent = nodeService.getPrimaryParent(nodeRef); + if(primaryParent != null && primaryParent.getQName() != null) + { + result = primaryParent.getQName().getPrefixedQName(namespaceService).getPrefixString(); + } + } catch (NamespaceException namespaceException) + { + LOGGER.error("Cannot return a valid primary association QName: " + namespaceException.getMessage()); + } + return result; + } + private UserInfo getUserInfo(String userName, Map mapUserCache) { UserInfo userInfo = mapUserCache.get(userName); diff --git a/repository/src/test/java/org/alfresco/repo/event2/AbstractContextAwareRepoEvent.java b/repository/src/test/java/org/alfresco/repo/event2/AbstractContextAwareRepoEvent.java index c5f3f9248f..995bec4cfe 100644 --- a/repository/src/test/java/org/alfresco/repo/event2/AbstractContextAwareRepoEvent.java +++ b/repository/src/test/java/org/alfresco/repo/event2/AbstractContextAwareRepoEvent.java @@ -36,6 +36,7 @@ import java.util.List; import javax.jms.ConnectionFactory; import org.alfresco.model.ContentModel; +import org.alfresco.repo.dictionary.NamespaceDAO; import org.alfresco.repo.event.v1.model.ChildAssociationResource; import org.alfresco.repo.event.v1.model.DataAttributes; import org.alfresco.repo.event.v1.model.EventType; @@ -114,6 +115,9 @@ public abstract class AbstractContextAwareRepoEvent extends BaseSpringTest @Qualifier("eventGeneratorQueue") protected EventGeneratorQueue eventQueue; + @Autowired + private NamespaceDAO namespaceDAO; + protected NodeRef rootNodeRef; @BeforeClass @@ -152,9 +156,19 @@ public abstract class AbstractContextAwareRepoEvent extends BaseSpringTest return nodeService.getRootNode(storeRef); }); + initTestNamespacePrefixMapping(); + flushSpuriousEvents(); } + protected void initTestNamespacePrefixMapping() { + if(namespaceDAO.getNamespaceURI("ce") == null) + { + namespaceDAO.addURI(TEST_NAMESPACE); + namespaceDAO.addPrefix("ce", TEST_NAMESPACE); + } + } + /* * When running with an empty database some events related to the creation may * creep up here making the test fails. After attempting several other @@ -207,11 +221,16 @@ public abstract class AbstractContextAwareRepoEvent extends BaseSpringTest } protected NodeRef createNode(QName contentType, PropertyMap propertyMap) + { + return createNode(contentType, GUID.generate(), propertyMap); + } + + protected NodeRef createNode(QName contentType, String localName, PropertyMap propertyMap) { return retryingTransactionHelper.doInTransaction(() -> nodeService.createNode( rootNodeRef, ContentModel.ASSOC_CHILDREN, - QName.createQName(TEST_NAMESPACE, GUID.generate()), + QName.createQName(TEST_NAMESPACE, localName), contentType, propertyMap).getChildRef()); } diff --git a/repository/src/test/java/org/alfresco/repo/event2/ChildAssociationRepoEventIT.java b/repository/src/test/java/org/alfresco/repo/event2/ChildAssociationRepoEventIT.java index d7db0e007a..11b6bcf77d 100644 --- a/repository/src/test/java/org/alfresco/repo/event2/ChildAssociationRepoEventIT.java +++ b/repository/src/test/java/org/alfresco/repo/event2/ChildAssociationRepoEventIT.java @@ -50,6 +50,7 @@ public class ChildAssociationRepoEventIT extends AbstractContextAwareRepoEvent @Test public void testAddChildAssociation() { + String assocLocalName = GUID.generate(); final NodeRef parentNodeRef = createNode(ContentModel.TYPE_FOLDER); final NodeRef childNodeRef = createNode(ContentModel.TYPE_CONTENT); @@ -64,11 +65,11 @@ public class ChildAssociationRepoEventIT extends AbstractContextAwareRepoEvent resultRepoEvent.getType()); retryingTransactionHelper.doInTransaction(() -> - nodeService.addChild( - parentNodeRef, - childNodeRef, - ContentModel.ASSOC_CONTAINS, - QName.createQName(TEST_NAMESPACE, GUID.generate()))); + nodeService.addChild( + parentNodeRef, + childNodeRef, + ContentModel.ASSOC_CONTAINS, + QName.createQName(TEST_NAMESPACE, assocLocalName))); List childAssociationRefs = retryingTransactionHelper.doInTransaction(() -> nodeService.getChildAssocs(parentNodeRef)); @@ -101,6 +102,7 @@ public class ChildAssociationRepoEventIT extends AbstractContextAwareRepoEvent assertEquals("Wrong parent", parentNodeRef.getId(), childAssociationResource.getParent().getId()); assertEquals("Wrong child", childNodeRef.getId(), childAssociationResource.getChild().getId()); assertEquals("Wrong assoc type", "cm:contains", childAssociationResource.getAssocType()); + assertEquals("Wrong assoc name", "ce:" + assocLocalName, childAssociationResource.getAssocQName()); } @Test diff --git a/repository/src/test/java/org/alfresco/repo/event2/CreateRepoEventIT.java b/repository/src/test/java/org/alfresco/repo/event2/CreateRepoEventIT.java index db6b592c70..1e801ad206 100644 --- a/repository/src/test/java/org/alfresco/repo/event2/CreateRepoEventIT.java +++ b/repository/src/test/java/org/alfresco/repo/event2/CreateRepoEventIT.java @@ -53,16 +53,17 @@ public class CreateRepoEventIT extends AbstractContextAwareRepoEvent @Autowired private NodeDAO nodeDAO; - + @Test public void testCreateEvent() { // Create a node without content final String name = "TestFile-" + System.currentTimeMillis() + ".txt"; + String localName = GUID.generate(); PropertyMap propertyMap = new PropertyMap(); propertyMap.put(ContentModel.PROP_TITLE, "test title"); propertyMap.put(ContentModel.PROP_NAME, name); - final NodeRef nodeRef = createNode(ContentModel.TYPE_CONTENT, propertyMap); + final NodeRef nodeRef = createNode(ContentModel.TYPE_CONTENT, localName, propertyMap); final RepoEvent> resultRepoEvent = getRepoEvent(1); // Repo event attributes @@ -103,6 +104,7 @@ public class CreateRepoEventIT extends AbstractContextAwareRepoEvent assertEquals("Wrong node modifier display name.", "Administrator", nodeResource.getModifiedByUser().getDisplayName()); assertNotNull("Missing modifiedAt property.", nodeResource.getModifiedAt()); + assertEquals("Wrong primaryAssocQName prefix.", "ce:" + localName, nodeResource.getPrimaryAssocQName()); } @Test diff --git a/repository/src/test/java/org/alfresco/repo/event2/DeleteRepoEventIT.java b/repository/src/test/java/org/alfresco/repo/event2/DeleteRepoEventIT.java index 52a69434af..d7115c6677 100644 --- a/repository/src/test/java/org/alfresco/repo/event2/DeleteRepoEventIT.java +++ b/repository/src/test/java/org/alfresco/repo/event2/DeleteRepoEventIT.java @@ -45,9 +45,10 @@ public class DeleteRepoEventIT extends AbstractContextAwareRepoEvent @Test public void testDeleteContent() { + String localName = GUID.generate(); PropertyMap propertyMap = new PropertyMap(); propertyMap.put(ContentModel.PROP_TITLE, "test title"); - NodeRef nodeRef = createNode(ContentModel.TYPE_CONTENT, propertyMap); + NodeRef nodeRef = createNode(ContentModel.TYPE_CONTENT, localName, propertyMap); NodeResource createdResource = getNodeResource(1); @@ -64,6 +65,7 @@ public class DeleteRepoEventIT extends AbstractContextAwareRepoEvent assertEquals("Repo event type:", EventType.NODE_DELETED.getType(), resultRepoEvent.getType()); assertEquals(createdResource.getId(), getNodeResource(resultRepoEvent).getId()); + assertEquals("Wrong primaryAssocQName prefix.", "ce:" + localName, createdResource.getPrimaryAssocQName()); // There should be no resourceBefore EventData eventData = getEventData(resultRepoEvent); diff --git a/repository/src/test/java/org/alfresco/repo/event2/UpdateRepoEventIT.java b/repository/src/test/java/org/alfresco/repo/event2/UpdateRepoEventIT.java index 413fa7d395..6075c2fd0c 100644 --- a/repository/src/test/java/org/alfresco/repo/event2/UpdateRepoEventIT.java +++ b/repository/src/test/java/org/alfresco/repo/event2/UpdateRepoEventIT.java @@ -33,7 +33,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; - import org.alfresco.model.ContentModel; import org.alfresco.repo.content.MimetypeMap; import org.alfresco.repo.dictionary.M2Model; @@ -59,6 +58,7 @@ import org.junit.Test; */ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent { + @Test public void testUpdateNodeResourceContent() { @@ -138,6 +138,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test @@ -198,6 +199,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test @@ -274,6 +276,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test @@ -539,6 +542,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test @@ -574,6 +578,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent NodeResource nodeResource = getNodeResource(resultRepoEvent); assertEquals("Incorrect node type was found", "cm:dictionaryModel", nodeResource.getNodeType()); + initTestNamespacePrefixMapping(); final NodeRef nodeRef = createNode(ContentModel.TYPE_CONTENT); // old node's type assertEquals(ContentModel.TYPE_CONTENT, nodeService.getType(nodeRef)); @@ -613,7 +618,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); - + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test @@ -660,6 +665,7 @@ public class UpdateRepoEventIT extends AbstractContextAwareRepoEvent assertNull(resourceBefore.getProperties()); assertNull(resourceBefore.getAspectNames()); assertNull(resourceBefore.getPrimaryHierarchy()); + assertNull(resourceBefore.getPrimaryAssocQName()); } @Test From 6159bee521a4a96d31c822333a22c6b0ee2b18f9 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 08:45:06 +0000 Subject: [PATCH 096/177] [maven-release-plugin][skip ci] prepare release 11.122 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 159a4ed59d..525d520f05 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.122-SNAPSHOT + 11.122 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index bfe2e36896..ae0dfd996f 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.122-SNAPSHOT + 11.122 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 4cdef23803..b9e7e085c8 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index bdc9df0c09..2753860c94 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.122-SNAPSHOT + 11.122 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 46da59303d..68615b532c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.122-SNAPSHOT + 11.122 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 514a705969..3f86a77b5b 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.122-SNAPSHOT + 11.122 diff --git a/amps/pom.xml b/amps/pom.xml index d5a8a269c7..4c7298667f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index e42ddf5663..9b08af132c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.122-SNAPSHOT + 11.122 diff --git a/core/pom.xml b/core/pom.xml index fa6fe2e3b0..208ed196cb 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/data-model/pom.xml b/data-model/pom.xml index 021b2e46dc..bd7db16789 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index a7d92c002b..593d55c5cd 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 505ec2faf0..8beb979cc4 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/pom.xml b/packaging/pom.xml index 5690ae64eb..8c09b27381 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2ce2822cf0..5f4bc90034 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 0313ec8214..eb2fa71f62 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 3645bd5428..47f425a6ac 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index c3871fc857..cfc1ffefc5 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 5781b02cff..0e5292beed 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0a0b4cc383..d45a04899c 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122-SNAPSHOT + 11.122 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index a8037cf4ae..244139299c 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122-SNAPSHOT + 11.122 diff --git a/pom.xml b/pom.xml index 5ef44dfdb2..d92d850380 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.122-SNAPSHOT + 11.122 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.122 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6ac6b154ed..e439851d12 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 diff --git a/repository/pom.xml b/repository/pom.xml index 47fa4d622e..64b9809ea3 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122-SNAPSHOT + 11.122 From 89adfacca62d4d0c1babf7f0f02fd4b9e21f7c29 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 08:45:09 +0000 Subject: [PATCH 097/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 525d520f05..8e384e8e49 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.122 + 11.123-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index ae0dfd996f..8868a67f8c 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.122 + 11.123-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index b9e7e085c8..6c16cd2614 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 2753860c94..3d276241ba 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.122 + 11.123-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 68615b532c..75af9eec1b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.122 + 11.123-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 3f86a77b5b..663662ef88 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.122 + 11.123-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 4c7298667f..e23bb9e31d 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 9b08af132c..b61e91becf 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.122 + 11.123-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 208ed196cb..d46521f6ef 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index bd7db16789..aa8ed9ef83 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 593d55c5cd..3b2c4d39d8 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 8beb979cc4..17ce0880ad 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 8c09b27381..102a72f2a3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 5f4bc90034..cd287f4a4e 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index eb2fa71f62..54abc8b7e5 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 47f425a6ac..6675cc3591 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index cfc1ffefc5..61e8a4cb8a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 0e5292beed..bdb517f9b8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d45a04899c..3ec1b3cbbc 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.122 + 11.123-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 244139299c..9e0ffa5820 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.122 + 11.123-SNAPSHOT diff --git a/pom.xml b/pom.xml index d92d850380..149440ee8b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.122 + 11.123-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.122 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e439851d12..0a286f7539 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 64b9809ea3..46c7d95a23 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.122 + 11.123-SNAPSHOT From 48045c8c38f74464041cd462d0fbab8df40e6348 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 26 Aug 2021 12:20:08 +0100 Subject: [PATCH 098/177] ACS-1788 Implement RestApi endpoint for deleted renditions (#681) * ACS-1788 deleted renditions * ACS-1913 Fix endpoint operation labels * ACS-1788 Updates from review --- .../org/alfresco/rest/api/DeletedNodes.java | 8 ++-- .../rest/api/impl/DeletedNodesImpl.java | 12 +++++- .../api/trashcan/TrashcanEntityResource.java | 2 +- .../trashcan/TrashcanRenditionsRelation.java | 42 +++++++++++++++++-- .../alfresco/public-rest-context.xml | 1 + 5 files changed, 56 insertions(+), 9 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java b/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java index ef26600d7a..09609ae77d 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/DeletedNodes.java @@ -105,22 +105,24 @@ public interface DeletedNodes * Gets a presigned URL to directly access content. * * @param archivedId The node id for which to obtain the direct access {@code URL} + * @param renditionId The rendition id for which to obtain the direct access {@code URL} * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}, {@code true} by default. * @return A direct access {@code URL} object for the content. */ - default DirectAccessUrl requestContentDirectUrl(String archivedId, boolean attachment) + default DirectAccessUrl requestContentDirectUrl(String archivedId, String renditionId, boolean attachment) { - return requestContentDirectUrl(archivedId, attachment, null); + return requestContentDirectUrl(archivedId, renditionId, attachment, null); } /** * Gets a presigned URL to directly access content. * * @param archivedId The node id for which to obtain the direct access {@code URL} + * @param renditionId The rendition id for which to obtain the direct access {@code URL} * @param attachment {@code true} if an attachment {@code URL} is requested, {@code false} for an embedded {@code URL}, {@code true} by default. * @param validFor The time at which the direct access {@code URL} will expire. * @return A direct access {@code URL} object for the content. */ - DirectAccessUrl requestContentDirectUrl(String archivedId, boolean attachment, Long validFor); + DirectAccessUrl requestContentDirectUrl(String archivedId, String renditionId, boolean attachment, Long validFor); } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java index 969d4f83aa..f63de476e2 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/DeletedNodesImpl.java @@ -250,10 +250,18 @@ public class DeletedNodesImpl implements DeletedNodes, RecognizedParamsExtractor * {@inheritDoc} */ @Override - public DirectAccessUrl requestContentDirectUrl(String originalNodeId, boolean attachment, Long validFor) + public DirectAccessUrl requestContentDirectUrl(String originalNodeId, String renditionId, boolean attachment, Long validFor) { //First check the node is valid and has been archived. NodeRef validatedNodeRef = nodes.validateNode(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE, originalNodeId); - return nodes.requestContentDirectUrl(validatedNodeRef, attachment, validFor); + + if (renditionId != null) + { + return renditions.requestContentDirectUrl(validatedNodeRef, null, renditionId, attachment, validFor); + } + else + { + return nodes.requestContentDirectUrl(validatedNodeRef, attachment, validFor); + } } } diff --git a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java index a1b88ce1aa..424010b33b 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanEntityResource.java @@ -112,7 +112,7 @@ public class TrashcanEntityResource implements DirectAccessUrl directAccessUrl; try { - directAccessUrl = deletedNodes.requestContentDirectUrl(originalNodeId, attachment, validFor); + directAccessUrl = deletedNodes.requestContentDirectUrl(originalNodeId, null, attachment, validFor); } catch (DirectAccessUrlDisabledException ex) { diff --git a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanRenditionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanRenditionsRelation.java index 72d427c3ae..1ffeec113c 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanRenditionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/trashcan/TrashcanRenditionsRelation.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -25,18 +25,27 @@ */ package org.alfresco.rest.api.trashcan; +import javax.servlet.http.HttpServletResponse; + +import org.alfresco.repo.content.directurl.DirectAccessUrlDisabledException; import org.alfresco.rest.api.DeletedNodes; +import org.alfresco.rest.api.DirectAccessUrlHelper; +import org.alfresco.rest.api.model.DirectAccessUrlRequest; import org.alfresco.rest.api.model.Rendition; import org.alfresco.rest.framework.BinaryProperties; +import org.alfresco.rest.framework.Operation; import org.alfresco.rest.framework.WebApiDescription; -import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException; -import org.alfresco.rest.framework.core.exceptions.RelationshipResourceNotFoundException; +import org.alfresco.rest.framework.WebApiParam; +import org.alfresco.rest.framework.core.ResourceParameter; +import org.alfresco.rest.framework.core.exceptions.DisabledServiceException; import org.alfresco.rest.framework.resource.RelationshipResource; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceAction; import org.alfresco.rest.framework.resource.actions.interfaces.RelationshipResourceBinaryAction; import org.alfresco.rest.framework.resource.content.BinaryResource; import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo; import org.alfresco.rest.framework.resource.parameters.Parameters; +import org.alfresco.rest.framework.webscripts.WithResponse; +import org.alfresco.service.cmr.repository.DirectAccessUrl; import org.alfresco.util.ParameterCheck; import org.springframework.beans.factory.InitializingBean; @@ -46,12 +55,18 @@ public class TrashcanRenditionsRelation { private DeletedNodes deletedNodes; + private DirectAccessUrlHelper directAccessUrlHelper; public void setDeletedNodes(DeletedNodes deletedNodes) { this.deletedNodes = deletedNodes; } + public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper) + { + this.directAccessUrlHelper = directAccessUrlHelper; + } + @WebApiDescription(title = "List renditions", description = "List available (created) renditions") @Override public CollectionWithPagingInfo readAll(String nodeId, Parameters parameters) @@ -74,6 +89,27 @@ public class TrashcanRenditionsRelation return deletedNodes.getContent(nodeId, renditionId, parameters); } + @Operation ("request-direct-access-url") + @WebApiParam (name = "requestArchivedNodeRenditionDirectAccessUrl", title = "Request direct access url", description = "Request direct access url", kind = ResourceParameter.KIND.HTTP_BODY_OBJECT) + @WebApiDescription(title = "Request content url", + description="Generates a direct access URL.", + successStatus = HttpServletResponse.SC_OK) + public DirectAccessUrl requestContentDirectUrl(String originalNodeId, String renditionId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) + { + boolean attachment = directAccessUrlHelper.getAttachment(directAccessUrlRequest); + Long validFor = directAccessUrlHelper.getDefaultExpiryTimeInSec(); + DirectAccessUrl directAccessUrl; + try + { + directAccessUrl = deletedNodes.requestContentDirectUrl(originalNodeId, renditionId, attachment, validFor); + } + catch (DirectAccessUrlDisabledException ex) + { + throw new DisabledServiceException(ex.getMessage()); + } + return directAccessUrl; + } + @Override public void afterPropertiesSet() throws Exception { diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index 5e826848d5..6099ddced5 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1438,6 +1438,7 @@ + From 0c5498fba008f6c5f605c4dcca9dbb4159a6cdfd Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 12:08:30 +0000 Subject: [PATCH 099/177] [maven-release-plugin][skip ci] prepare release 11.123 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 8e384e8e49..44e984a034 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.123-SNAPSHOT + 11.123 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8868a67f8c..6b2e03a113 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.123-SNAPSHOT + 11.123 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6c16cd2614..c419aa6340 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 3d276241ba..74d60ad922 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.123-SNAPSHOT + 11.123 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 75af9eec1b..ec6402b99c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.123-SNAPSHOT + 11.123 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 663662ef88..e3bbeb34e3 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.123-SNAPSHOT + 11.123 diff --git a/amps/pom.xml b/amps/pom.xml index e23bb9e31d..342ff07a87 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index b61e91becf..8683de800a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.123-SNAPSHOT + 11.123 diff --git a/core/pom.xml b/core/pom.xml index d46521f6ef..70c19b51e7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/data-model/pom.xml b/data-model/pom.xml index aa8ed9ef83..42c8dbde2f 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 3b2c4d39d8..f688213dcb 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 17ce0880ad..af32ed6b76 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/pom.xml b/packaging/pom.xml index 102a72f2a3..9c3c29613a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index cd287f4a4e..8172798bd1 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 54abc8b7e5..e1b459b3e1 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 6675cc3591..cbda53c4a6 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 61e8a4cb8a..80574c4ea1 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bdb517f9b8..53938890d8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 3ec1b3cbbc..321076b069 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123-SNAPSHOT + 11.123 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 9e0ffa5820..38018a4b82 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123-SNAPSHOT + 11.123 diff --git a/pom.xml b/pom.xml index 149440ee8b..ed373af54f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.123-SNAPSHOT + 11.123 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.123 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 0a286f7539..b0cc668c51 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 diff --git a/repository/pom.xml b/repository/pom.xml index 46c7d95a23..75b735fc93 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123-SNAPSHOT + 11.123 From 1766ce6e3111eeb6a933792c7c40a63d8b169317 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 12:08:32 +0000 Subject: [PATCH 100/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 44e984a034..2f94541d92 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.123 + 11.124-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6b2e03a113..93137ed378 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.123 + 11.124-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c419aa6340..12aad2a14e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 74d60ad922..a26b01fc8f 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.123 + 11.124-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index ec6402b99c..23085132a1 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.123 + 11.124-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index e3bbeb34e3..8779f3cccb 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.123 + 11.124-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 342ff07a87..61269cfeba 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 8683de800a..decdfa795f 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.123 + 11.124-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 70c19b51e7..0e468286cf 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 42c8dbde2f..d54d0400c0 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index f688213dcb..1644b88523 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index af32ed6b76..ec82bba6ab 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 9c3c29613a..e363ce38fa 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 8172798bd1..453f914993 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index e1b459b3e1..ae59086700 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index cbda53c4a6..b585526a3c 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 80574c4ea1..6cf8d2fa20 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 53938890d8..4c6cb178a6 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 321076b069..e15973d3cc 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.123 + 11.124-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 38018a4b82..102a1b8967 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.123 + 11.124-SNAPSHOT diff --git a/pom.xml b/pom.xml index ed373af54f..7877e0838c 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.123 + 11.124-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.123 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index b0cc668c51..679a48a9fd 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 75b735fc93..028fbd9621 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.123 + 11.124-SNAPSHOT From bb58c4a2d95ba2291b911e4d8fe5344fa7117fa5 Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 26 Aug 2021 14:25:26 +0100 Subject: [PATCH 101/177] "ACS-1907 TMDQ against MySql throws SQLException in certain situations (#679)" This reverts commit 83097d452b65eaa199cf9edccf63f1f39143218e. --- .../search/impl/querymodel/QueryEngine.java | 2 +- .../impl/querymodel/impl/db/DBQuery.java | 70 +++++++++------ .../querymodel/impl/db/DBQueryEngine.java | 90 ++++++++++++++++++- .../metadata-query-common-SqlMap.xml | 5 +- .../Search/common-search-context.xml | 31 ++++++- .../org/alfresco/AllDBTestsTestSuite.java | 4 +- .../impl/querymodel/impl/db/ACS1907Test.java | 79 ++++++++++++++-- 7 files changed, 238 insertions(+), 43 deletions(-) diff --git a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java index e543104e5f..b39cbd572e 100644 --- a/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java +++ b/data-model/src/main/java/org/alfresco/repo/search/impl/querymodel/QueryEngine.java @@ -2,7 +2,7 @@ * #%L * Alfresco Data model classes * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java index fd98d9bc77..abb7c40efe 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQuery.java @@ -1,28 +1,28 @@ -/* - * #%L - * Alfresco Repository - * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ +/* + * #%L + * Alfresco Repository + * %% + * Copyright (C) 2005 - 2016 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ package org.alfresco.repo.search.impl.querymodel.impl.db; import java.util.ArrayList; @@ -74,6 +74,10 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent Set selectorGroup; + private int limit = 0; + + private int offset = 0; + /** * @param source Source * @param constraint Constraint @@ -133,6 +137,22 @@ public class DBQuery extends BaseQuery implements DBQueryBuilderComponent this.sinceTxId = sinceTxId; } + public int getLimit() { + return limit; + } + + public void setLimit(int limit) { + this.limit = limit; + } + + public int getOffset() { + return offset; + } + + public void setOffset(int offset) { + this.offset = offset; + } + public List getJoins() { HashMap singleJoins = new HashMap(); diff --git a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java index 612f958a65..96ca208c73 100644 --- a/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java +++ b/repository/src/main/java/org/alfresco/repo/search/impl/querymodel/impl/db/DBQueryEngine.java @@ -76,8 +76,10 @@ import org.alfresco.service.namespace.QName; import org.alfresco.util.Pair; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.ibatis.executor.result.DefaultResultContext; import org.apache.ibatis.session.ResultContext; import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; import org.mybatis.spring.SqlSessionTemplate; /** @@ -89,7 +91,11 @@ public class DBQueryEngine implements QueryEngine protected static final Log logger = LogFactory.getLog(DBQueryEngine.class); protected static final String SELECT_BY_DYNAMIC_QUERY = "alfresco.metadata.query.select_byDynamicQuery"; - + + private static final int DEFAULT_MIN_PAGING_BATCH_SIZE = 2500; + + private static final int DEFAULT_MAX_PAGING_BATCH_SIZE = 10000; + protected SqlSessionTemplate template; protected QNameDAO qnameDAO; @@ -114,6 +120,12 @@ public class DBQueryEngine implements QueryEngine private boolean maxPermissionCheckEnabled; + private boolean usePagingQuery = false; + + private int minPagingBatchSize = DEFAULT_MIN_PAGING_BATCH_SIZE; + + private int maxPagingBatchSize = DEFAULT_MAX_PAGING_BATCH_SIZE; + protected EntityLookupCache nodesCache; private List> stores; @@ -149,7 +161,31 @@ public class DBQueryEngine implements QueryEngine { this.permissionService = permissionService; } - + + public boolean isUsePagingQuery() { + return usePagingQuery; + } + + public void setUsePagingQuery(boolean usePagingQuery) { + this.usePagingQuery = usePagingQuery; + } + + public int getMinPagingBatchSize() { + return minPagingBatchSize; + } + + public void setMinPagingBatchSize(int minPagingBatchSize) { + this.minPagingBatchSize = minPagingBatchSize; + } + + public int getMaxPagingBatchSize() { + return maxPagingBatchSize; + } + + public void setMaxPagingBatchSize(int maxPagingBatchSize) { + this.maxPagingBatchSize = maxPagingBatchSize; + } + public void setMetadataIndexCheck2(OptionalPatchApplicationCheckBootstrapBean metadataIndexCheck2) { this.metadataIndexCheck2 = metadataIndexCheck2; @@ -331,7 +367,7 @@ public class DBQueryEngine implements QueryEngine int requiredNodes = computeRequiredNodesCount(options); logger.debug("- query sent to the database"); - template.select(pickQueryTemplate(options, dbQuery), dbQuery, new ResultHandler() + performTmdqSelect(pickQueryTemplate(options, dbQuery), dbQuery, requiredNodes, new ResultHandler() { @Override public void handleResult(ResultContext context) @@ -399,6 +435,54 @@ public class DBQueryEngine implements QueryEngine return frs; } + private void performTmdqSelect(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) + { + if (usePagingQuery) + { + performTmdqSelectPaging(statement, dbQuery, requiredNodes, handler); + } + else + { + performTmdqSelectStreaming(statement, dbQuery, handler); + } + } + + private void performTmdqSelectStreaming(String statement, DBQuery dbQuery, ResultHandler handler) + { + template.select(statement, dbQuery, handler); + } + + private void performTmdqSelectPaging(String statement, DBQuery dbQuery, int requiredNodes, ResultHandler handler) + { + int batchStart = 0; + int batchSize = requiredNodes * 2; + batchSize = Math.min(Math.max(batchSize, minPagingBatchSize), maxPagingBatchSize); + DefaultResultContext resultCtx = new DefaultResultContext<>(); + while (!resultCtx.isStopped()) + { + dbQuery.setOffset(batchStart); + dbQuery.setLimit(batchSize); + List batch = template.selectList(statement, dbQuery); + for (Node node : batch) + { + resultCtx.nextResultObject(node); + handler.handleResult(resultCtx); + if (resultCtx.isStopped()) + { + break; + } + } + if (batch.size() < batchSize) + { + resultCtx.stop(); + } + else + { + batchStart += batchSize; + } + } + } + private DBResultSet createResultSet(QueryOptions options, List nodes, int numberFound) { DBResultSet dbResultSet = new DBResultSet(options.getAsSearchParmeters(), nodes, nodeDAO, nodeService, tenantService, Integer.MAX_VALUE); diff --git a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml index 8230226816..ecc97b3451 100644 --- a/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml +++ b/repository/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/metadata-query-common-SqlMap.xml @@ -177,7 +177,8 @@ - - + + limit #{offset}, #{limit} + \ No newline at end of file diff --git a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml index 7410e27f2b..932c4a06ef 100644 --- a/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml +++ b/repository/src/main/resources/alfresco/subsystems/Search/common-search-context.xml @@ -105,8 +105,35 @@ - - + + + + search.dbQueryEngineImpl.#bean.dialect# + + + org.alfresco.repo.search.impl.querymodel.QueryEngine + + + org.alfresco.repo.domain.dialect.Dialect + + + + + + + + + + + + + + + + + diff --git a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java index ec7aa1105a..1737976f0e 100644 --- a/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java +++ b/repository/src/test/java/org/alfresco/AllDBTestsTestSuite.java @@ -2,7 +2,7 @@ * #%L * Alfresco Repository * %% - * Copyright (C) 2005 - 2017 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -80,7 +80,7 @@ import org.junit.runners.Suite; // ACS-1907 org.alfresco.repo.search.impl.querymodel.impl.db.ACS1907Test.class, - // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL + // REPO-2963 : Tests causing a cascade of failures in AllDBTestsTestSuite on PostgreSQL/MySQL // Moved at the bottom of the suite because DbNodeServiceImplTest.testNodeCleanupRegistry() takes a long time on a clean DB. org.alfresco.repo.node.db.DbNodeServiceImplTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java index 65e4741147..50232978e9 100644 --- a/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java +++ b/repository/src/test/java/org/alfresco/repo/search/impl/querymodel/impl/db/ACS1907Test.java @@ -28,6 +28,7 @@ package org.alfresco.repo.search.impl.querymodel.impl.db; import junit.framework.TestCase; import org.alfresco.model.ContentModel; import org.alfresco.repo.cache.TransactionalCache; +import org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory; import org.alfresco.repo.security.authentication.AuthenticationComponent; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.MutableAuthenticationDao; @@ -36,21 +37,23 @@ import org.alfresco.repo.transaction.RetryingTransactionHelper; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.StoreRef; -import org.alfresco.service.cmr.search.ResultSet; -import org.alfresco.service.cmr.search.ResultSetRow; -import org.alfresco.service.cmr.search.SearchParameters; -import org.alfresco.service.cmr.search.SearchService; +import org.alfresco.service.cmr.search.*; import org.alfresco.service.cmr.security.MutableAuthenticationService; import org.alfresco.service.cmr.security.PermissionService; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; +import org.alfresco.test_category.OwnJVMTestsCategory; import org.alfresco.util.ApplicationContextHelper; +import org.alfresco.util.testing.category.DBTests; +import org.junit.experimental.categories.Category; import org.springframework.context.ApplicationContext; import java.io.Serializable; import java.util.HashMap; +import java.util.HashSet; import java.util.Map; +@Category({OwnJVMTestsCategory.class, DBTests.class}) public class ACS1907Test extends TestCase { @@ -64,6 +67,7 @@ public class ACS1907Test extends TestCase private PermissionService pubPermissionService; private TransactionService transactionService; private RetryingTransactionHelper txnHelper; + private DBQueryEngine queryEngine; private TransactionalCache aclCache; private TransactionalCache aclEntityCache; @@ -101,7 +105,16 @@ public class ACS1907Test extends TestCase aclCache = (TransactionalCache) ctx.getBean("aclCache"); aclEntityCache = (TransactionalCache) ctx.getBean("aclEntityCache"); permissionEntityCache = (TransactionalCache) ctx.getBean("permissionEntityCache"); - txnHelper = transactionService.getRetryingTransactionHelper(); + SwitchableApplicationContextFactory searchContextFactory = (SwitchableApplicationContextFactory) ctx.getBean("Search"); + ApplicationContext searchCtx = searchContextFactory.getApplicationContext(); + queryEngine = (DBQueryEngine) searchCtx.getBean("search.dbQueryEngineImpl"); + txnHelper = new RetryingTransactionHelper(); + txnHelper.setTransactionService(transactionService); + txnHelper.setReadOnly(false); + txnHelper.setMaxRetries(1); + txnHelper.setMinRetryWaitMs(1); + txnHelper.setMaxRetryWaitMs(10); + txnHelper.setRetryWaitIncrementMs(1); } private void setupTestUser(String userName) @@ -127,7 +140,7 @@ public class ACS1907Test extends TestCase private void setupTestContent() { - for(int f = 0; f < 100; f++) + for(int f = 0; f < 5; f++) { final int ff = f; txnHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback() { @@ -142,7 +155,7 @@ public class ACS1907Test extends TestCase ContentModel.TYPE_FOLDER, testFolderProps ).getChildRef(); - for(int c = 0; c < 1000; c++) + for(int c = 0; c < 5; c++) { Map testContentProps = new HashMap<>(); testContentProps.put(ContentModel.PROP_NAME, "content"+c); @@ -179,12 +192,15 @@ public class ACS1907Test extends TestCase public Object doWork() throws Exception { SearchParameters sp = new SearchParameters(); sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); - sp.setLanguage(SearchService.LANGUAGE_LUCENE); + sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); + sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); sp.setQuery("TYPE:\"cm:content\""); ResultSet rs = pubSearchService.query(sp); + int cnt = 0; for (ResultSetRow row : rs) { assertNotNull(row.getValue(ContentModel.PROP_NAME)); + cnt++; } return null; } @@ -194,4 +210,51 @@ public class ACS1907Test extends TestCase }, false, false); } + public void testPaging() + { + HashSet resultPageSize2 = queryNodes(2); + HashSet resultPageSize5 = queryNodes(5); + HashSet resultPageSize10 = queryNodes(10); + HashSet resultPageSizeAll = queryNodes(10000); + // all result sets must be equal, independent of page size used to retrieve them + assertTrue(resultPageSize2.size() >= 25); + assertTrue(resultPageSize5.size() >= 25); + assertTrue(resultPageSize10.size() >= 25); + assertTrue(resultPageSizeAll.size() >= 25); + assertTrue(resultPageSize2.containsAll(resultPageSize5)); + assertTrue(resultPageSize2.containsAll(resultPageSize10)); + assertTrue(resultPageSize2.containsAll(resultPageSizeAll)); + assertTrue(resultPageSize5.containsAll(resultPageSize2)); + assertTrue(resultPageSize5.containsAll(resultPageSize10)); + assertTrue(resultPageSize5.containsAll(resultPageSizeAll)); + assertTrue(resultPageSize10.containsAll(resultPageSize2)); + assertTrue(resultPageSize10.containsAll(resultPageSize5)); + assertTrue(resultPageSize10.containsAll(resultPageSizeAll)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize2)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize5)); + assertTrue(resultPageSizeAll.containsAll(resultPageSize10)); + // reset + queryEngine.setMinPagingBatchSize(2500); + queryEngine.setMaxPagingBatchSize(10000); + } + + HashSet queryNodes(int pageSize) + { + queryEngine.setMinPagingBatchSize(pageSize); + queryEngine.setMaxPagingBatchSize(pageSize); + HashSet result = new HashSet<>(); + SearchParameters sp = new SearchParameters(); + sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); + sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO); + sp.setQueryConsistency(QueryConsistency.TRANSACTIONAL); + sp.setQuery("TYPE:\"cm:content\""); + ResultSet rs = pubSearchService.query(sp); + int cnt = 0; + for (ResultSetRow row : rs) + { + result.add(row.getNodeRef()); + } + return result; + } + } From 6cb00d8e3b00db38013961d03d7a32e9a0cd94dd Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 15:04:17 +0000 Subject: [PATCH 102/177] [maven-release-plugin][skip ci] prepare release 11.124 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 2f94541d92..9a09a63bc9 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.124-SNAPSHOT + 11.124 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 93137ed378..b581b3726e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.124-SNAPSHOT + 11.124 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 12aad2a14e..e2c397d7e7 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a26b01fc8f..de66b4633d 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.124-SNAPSHOT + 11.124 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 23085132a1..5a9d19dcb9 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.124-SNAPSHOT + 11.124 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 8779f3cccb..297532ab4c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.124-SNAPSHOT + 11.124 diff --git a/amps/pom.xml b/amps/pom.xml index 61269cfeba..b0ffd0fcd6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index decdfa795f..302d51a95c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.124-SNAPSHOT + 11.124 diff --git a/core/pom.xml b/core/pom.xml index 0e468286cf..91e9ecae1b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/data-model/pom.xml b/data-model/pom.xml index d54d0400c0..e0c4b9c5ad 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 1644b88523..9e6189ee66 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index ec82bba6ab..76a2e08513 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/pom.xml b/packaging/pom.xml index e363ce38fa..c6eb60740a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 453f914993..678ecc6bda 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index ae59086700..2785c024a2 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index b585526a3c..862e270ce4 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 6cf8d2fa20..a8331fa57b 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4c6cb178a6..9855da9baf 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index e15973d3cc..098bbc5e0c 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124-SNAPSHOT + 11.124 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 102a1b8967..466b4a3a69 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124-SNAPSHOT + 11.124 diff --git a/pom.xml b/pom.xml index 7877e0838c..778cc7ba3a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.124-SNAPSHOT + 11.124 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.124 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 679a48a9fd..6e1efa8695 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 diff --git a/repository/pom.xml b/repository/pom.xml index 028fbd9621..8f54f0e89a 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124-SNAPSHOT + 11.124 From 57e8ee2c76af21d5c1a621ef281d732b44e43bbc Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 26 Aug 2021 15:04:19 +0000 Subject: [PATCH 103/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 9a09a63bc9..48d061ccbd 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.124 + 11.125-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b581b3726e..74e15bbfbf 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.124 + 11.125-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e2c397d7e7..52c2952256 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index de66b4633d..fc1a0a7023 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.124 + 11.125-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 5a9d19dcb9..899ec729a0 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.124 + 11.125-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 297532ab4c..774308923e 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.124 + 11.125-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index b0ffd0fcd6..c9e699fcaf 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 302d51a95c..70bb6d9936 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.124 + 11.125-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 91e9ecae1b..c817e5fd5f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index e0c4b9c5ad..50d205511f 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 9e6189ee66..30ffed7c5d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 76a2e08513..ee3381836b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index c6eb60740a..0a0e36c9fa 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 678ecc6bda..c88506a893 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 2785c024a2..2d59eab781 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 862e270ce4..cd54af22bc 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index a8331fa57b..56c2fd544e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 9855da9baf..e86b5d5185 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 098bbc5e0c..e9805f90c3 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.124 + 11.125-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 466b4a3a69..b6b98c7e33 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.124 + 11.125-SNAPSHOT diff --git a/pom.xml b/pom.xml index 778cc7ba3a..49039fd380 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.124 + 11.125-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.124 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 6e1efa8695..092cb51fd3 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 8f54f0e89a..63b925ddc4 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.124 + 11.125-SNAPSHOT From 8652c9d644a218519e02afdeae89b2726df07db4 Mon Sep 17 00:00:00 2001 From: Ayman Harake <42536841+aymanthefirst@users.noreply.github.com> Date: Fri, 27 Aug 2021 12:43:59 +0300 Subject: [PATCH 104/177] ATS-956: Bump T-core to use 2.5.3 (#683) --- .travis.yml | 18 +++++++++--------- amps/ags/rm-community/rm-community-repo/.env | 2 +- packaging/tests/environment/.env | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index e6a004cfa1..5ab883176c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=AppContext01TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - AppContext02TestSuite" @@ -70,7 +70,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=AppContext03TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - AppContext04TestSuite" @@ -78,7 +78,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=AppContext04TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - AppContext05TestSuite" @@ -97,7 +97,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=AppContext06TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - AppContextExtraTestSuite" @@ -105,7 +105,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=AppContextExtraTestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - MiscContextTestSuite" @@ -113,7 +113,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl repository -Dtest=MiscContextTestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Repository - SearchTestSuite" @@ -234,7 +234,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl remote-api -Dtest=AppContext02TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Remote-api - AppContext03TestSuite" @@ -242,7 +242,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl remote-api -Dtest=AppContext03TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Remote-api - AppContext04TestSuite" @@ -250,7 +250,7 @@ jobs: before_script: - docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco postgres:13.3 postgres -c 'max_connections=300' - docker run -d -p 61616:61616 -p 5672:5672 alfresco/alfresco-activemq:5.16.1 - - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.2 + - docker run -d -p 8090:8090 -e JAVA_OPTS=" -Xms256m -Xmx256m" alfresco/alfresco-transform-core-aio:2.5.3 script: travis_wait 20 mvn -B test -pl remote-api -Dtest=AppContext04TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco - name: "Remote-api - AppContextExtraTestSuite" diff --git a/amps/ags/rm-community/rm-community-repo/.env b/amps/ags/rm-community/rm-community-repo/.env index ace4179284..469ec19f29 100644 --- a/amps/ags/rm-community/rm-community-repo/.env +++ b/amps/ags/rm-community/rm-community-repo/.env @@ -1,4 +1,4 @@ -TRANSFORMERS_TAG=2.5.2 +TRANSFORMERS_TAG=2.5.3 SOLR6_TAG=2.0.2-RC1 POSTGRES_TAG=13.3 ACTIVEMQ_TAG=5.16.1 diff --git a/packaging/tests/environment/.env b/packaging/tests/environment/.env index be995ae8fd..dcd9add520 100644 --- a/packaging/tests/environment/.env +++ b/packaging/tests/environment/.env @@ -1,4 +1,4 @@ -TRANSFORMERS_TAG=2.5.2 +TRANSFORMERS_TAG=2.5.3 SOLR6_TAG=2.0.2 POSTGRES_TAG=13.3 ACTIVEMQ_TAG=5.16.1 From 1f608b1eb5ffbb77716bd4d7a8a0a33c67e1012c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 27 Aug 2021 10:31:23 +0000 Subject: [PATCH 105/177] [maven-release-plugin][skip ci] prepare release 11.125 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 48d061ccbd..ca8a8ef21e 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.125-SNAPSHOT + 11.125 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 74e15bbfbf..9fcdbdcf06 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.125-SNAPSHOT + 11.125 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 52c2952256..9beac872ff 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index fc1a0a7023..89ea7377c2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.125-SNAPSHOT + 11.125 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 899ec729a0..4952dad137 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.125-SNAPSHOT + 11.125 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 774308923e..0a5010d5e6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.125-SNAPSHOT + 11.125 diff --git a/amps/pom.xml b/amps/pom.xml index c9e699fcaf..d21a98da1f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 70bb6d9936..77e9546420 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.125-SNAPSHOT + 11.125 diff --git a/core/pom.xml b/core/pom.xml index c817e5fd5f..474407478e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/data-model/pom.xml b/data-model/pom.xml index 50d205511f..bb0fd6addc 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 30ffed7c5d..340ac0d13f 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index ee3381836b..665b4f36ac 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/pom.xml b/packaging/pom.xml index 0a0e36c9fa..c28d3fe41f 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c88506a893..52ee68b094 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 2d59eab781..caa335acfa 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index cd54af22bc..310dac9e0d 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 56c2fd544e..1ef6d9f5c3 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index e86b5d5185..fce7be27f8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index e9805f90c3..261d5aa9b1 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125-SNAPSHOT + 11.125 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index b6b98c7e33..bfd224d590 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125-SNAPSHOT + 11.125 diff --git a/pom.xml b/pom.xml index 49039fd380..8b1f2139c7 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.125-SNAPSHOT + 11.125 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.125 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 092cb51fd3..c490310634 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 diff --git a/repository/pom.xml b/repository/pom.xml index 63b925ddc4..67c9a2daed 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125-SNAPSHOT + 11.125 From 4bfb26a660e91b2411ae60a5c6c903a45352370d Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 27 Aug 2021 10:31:26 +0000 Subject: [PATCH 106/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index ca8a8ef21e..bdfb95495b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.125 + 11.126-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 9fcdbdcf06..737a867a6e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.125 + 11.126-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 9beac872ff..52fafbb177 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 89ea7377c2..d601d889a9 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.125 + 11.126-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 4952dad137..5e7cce028b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.125 + 11.126-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0a5010d5e6..3fe6d72f7b 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.125 + 11.126-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index d21a98da1f..ed047d2fe9 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 77e9546420..1baa90e3e1 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.125 + 11.126-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 474407478e..375efbb90b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index bb0fd6addc..5cd83070eb 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 340ac0d13f..ec841544bf 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 665b4f36ac..49bd953d21 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index c28d3fe41f..6f431b1924 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 52ee68b094..9923f3f9a6 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index caa335acfa..fc41f489a3 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 310dac9e0d..88150da4f5 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1ef6d9f5c3..c2881902fd 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index fce7be27f8..572a5d0527 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 261d5aa9b1..b91f384e13 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.125 + 11.126-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index bfd224d590..a9ba0cd4f0 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.125 + 11.126-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8b1f2139c7..66d3e79bcb 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.125 + 11.126-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.125 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index c490310634..4ca3261da6 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 67c9a2daed..bc1136aa75 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.125 + 11.126-SNAPSHOT From ea854b55a4f132fb44be1f7973660d3347344889 Mon Sep 17 00:00:00 2001 From: antoniojfelix Date: Fri, 27 Aug 2021 15:48:08 +0100 Subject: [PATCH 107/177] PRODSEC-5480 - Bump jsoup version from 1.13.1 to 1.14.2 (#684) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 66d3e79bcb..fe5e251012 100644 --- a/pom.xml +++ b/pom.xml @@ -638,7 +638,7 @@ org.jsoup jsoup - 1.13.1 + 1.14.2 From 646419c0739e9394671ba50ceae6a9f89b11bac1 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 27 Aug 2021 15:39:27 +0000 Subject: [PATCH 108/177] [maven-release-plugin][skip ci] prepare release 11.126 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index bdfb95495b..1883bd6103 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.126-SNAPSHOT + 11.126 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 737a867a6e..b0613329f0 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.126-SNAPSHOT + 11.126 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 52fafbb177..c59ff68648 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index d601d889a9..510020e4ca 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.126-SNAPSHOT + 11.126 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 5e7cce028b..e9066af7c8 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.126-SNAPSHOT + 11.126 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 3fe6d72f7b..910ba41cf8 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.126-SNAPSHOT + 11.126 diff --git a/amps/pom.xml b/amps/pom.xml index ed047d2fe9..f9cf9ff150 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 1baa90e3e1..28b18dfcb8 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.126-SNAPSHOT + 11.126 diff --git a/core/pom.xml b/core/pom.xml index 375efbb90b..059941b84b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/data-model/pom.xml b/data-model/pom.xml index 5cd83070eb..6e037770a2 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index ec841544bf..35f136c1b4 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 49bd953d21..1e441894b9 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/pom.xml b/packaging/pom.xml index 6f431b1924..a55a6c6c23 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 9923f3f9a6..154167825b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index fc41f489a3..03d9f1b198 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 88150da4f5..a0bbf067a2 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index c2881902fd..cd3478431a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 572a5d0527..3691d75056 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b91f384e13..8b64c0b261 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126-SNAPSHOT + 11.126 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index a9ba0cd4f0..bcb5624a07 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126-SNAPSHOT + 11.126 diff --git a/pom.xml b/pom.xml index fe5e251012..b1e752af1a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.126-SNAPSHOT + 11.126 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.126 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 4ca3261da6..1ab1d1d9b6 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 diff --git a/repository/pom.xml b/repository/pom.xml index bc1136aa75..465d434ee2 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126-SNAPSHOT + 11.126 From 84824edffa45bee25cbc78040c89e8fa54908fa0 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 27 Aug 2021 15:39:29 +0000 Subject: [PATCH 109/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 1883bd6103..36b6feb064 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.126 + 11.127-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b0613329f0..ac42994247 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.126 + 11.127-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c59ff68648..e0c7bcda40 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 510020e4ca..6edd362785 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.126 + 11.127-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e9066af7c8..8ea6f3fd89 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.126 + 11.127-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 910ba41cf8..f877fbb012 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.126 + 11.127-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index f9cf9ff150..9c007987cd 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 28b18dfcb8..bfe1194dff 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.126 + 11.127-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 059941b84b..9a519e0284 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 6e037770a2..71b358860c 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 35f136c1b4..9a007a5638 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 1e441894b9..a4dad84290 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index a55a6c6c23..a0a44f7829 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 154167825b..8df7f7633b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 03d9f1b198..d05583dd87 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index a0bbf067a2..94901a9108 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index cd3478431a..9683aef4fd 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 3691d75056..68af2c3167 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8b64c0b261..14bbf84ac4 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.126 + 11.127-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index bcb5624a07..9e124cbc59 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.126 + 11.127-SNAPSHOT diff --git a/pom.xml b/pom.xml index b1e752af1a..7aa6d4de9d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.126 + 11.127-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.126 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1ab1d1d9b6..512a493fd7 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 465d434ee2..7a8a133a40 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.126 + 11.127-SNAPSHOT From 2af2e7b868c1c71f146f5c721e44dbf7fa527d2e Mon Sep 17 00:00:00 2001 From: mikolajbrzezinski <86791239+mikolajbrzezinski@users.noreply.github.com> Date: Tue, 31 Aug 2021 08:07:42 -0400 Subject: [PATCH 110/177] Feature/acs 1834 test dau for deleted nodes (#686) * Deleted Nodes DAU Test * Deleted Nodes DAU Test Moved * DAU Test Modification * Copyright * Unused import --- .../org/alfresco/rest/DeletedNodesTest.java | 30 ++++++++++++++++++- .../rest/api/tests/AbstractBaseApiTest.java | 7 ++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java b/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java index fcbe066ffc..0fb7f53415 100644 --- a/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2020 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -704,6 +704,34 @@ public class DeletedNodesTest extends AbstractSingleNetworkSiteTest assertNull("We don't show the parent id for a deleted node",aNode.getParentId()); } + @Test + public void testRequestArchivedContentDirectUrl() throws Exception + { + setRequestContext(user1); + + String myNodeId = getMyNodeId(); + + String fileName = "TestDocumentToArchive.txt"; + Document testDocumentToArchive = new Document(); + testDocumentToArchive.setName(fileName); + testDocumentToArchive.setNodeType(TYPE_CM_CONTENT); + + // create *empty* text file + HttpResponse response = post(getNodeChildrenUrl(myNodeId), toJsonAsStringNonNull(testDocumentToArchive), 201); + Document document = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + + final String contentNodeId = document.getId(); + deleteNode(contentNodeId); + + // Check the upload response + assertEquals(fileName, document.getName()); + ContentInfo contentInfo = document.getContent(); + assertNotNull(contentInfo); + assertEquals(MimetypeMap.MIMETYPE_TEXT_PLAIN, contentInfo.getMimeType()); + + HttpResponse dauResponse = post(getRequestArchivedContentDirectUrl(contentNodeId), null, null, null, null, 501); + } + private String getDeletedNodeRenditionsUrl(String nodeId) { return URL_DELETED_NODES + "/" + nodeId + "/" + URL_RENDITIONS; diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java index 0090c4de2d..568ad7c667 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java @@ -68,7 +68,6 @@ import org.junit.After; import org.junit.Before; import org.junit.experimental.categories.Category; import org.springframework.util.ResourceUtils; -import org.alfresco.service.cmr.repository.DirectAccessUrl; import java.io.ByteArrayInputStream; import java.io.File; @@ -97,6 +96,7 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi private static final String RESOURCE_PREFIX = "publicapi/upload/"; protected static final String URL_NODES = "nodes"; + protected static final String URL_DELETED_NODES = "deleted-nodes"; protected static final String URL_RENDITIONS = "renditions"; protected static final String URL_VERSIONS = "versions"; @@ -219,6 +219,11 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi return URL_NODES + "/" + nodeId + "/" + REQUEST_DIRECT_ACCESS_URL; } + protected String getRequestArchivedContentDirectUrl(String nodeId) + { + return URL_DELETED_NODES + "/" + nodeId + "/" + REQUEST_DIRECT_ACCESS_URL; + } + /** * The api scope. either public or private * From 19a7239612b422a38fa29d5b27ddc02ab6736b45 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 31 Aug 2021 14:11:23 +0000 Subject: [PATCH 111/177] [maven-release-plugin][skip ci] prepare release 11.127 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 36b6feb064..4b91738e3d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.127-SNAPSHOT + 11.127 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index ac42994247..c8ae487ef3 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.127-SNAPSHOT + 11.127 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e0c7bcda40..a08d74c3f6 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 6edd362785..cd0d908a94 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.127-SNAPSHOT + 11.127 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8ea6f3fd89..d779f264e9 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.127-SNAPSHOT + 11.127 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f877fbb012..3249f447d0 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.127-SNAPSHOT + 11.127 diff --git a/amps/pom.xml b/amps/pom.xml index 9c007987cd..4e6fdc0329 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index bfe1194dff..3500aaab03 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.127-SNAPSHOT + 11.127 diff --git a/core/pom.xml b/core/pom.xml index 9a519e0284..4dc8089f9b 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/data-model/pom.xml b/data-model/pom.xml index 71b358860c..5c1bc2b2eb 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 9a007a5638..7a3a07f548 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index a4dad84290..19fbf945ad 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/pom.xml b/packaging/pom.xml index a0a44f7829..12007953b2 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 8df7f7633b..5e2cd0b09b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d05583dd87..c8f0f8d794 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 94901a9108..379de4d244 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 9683aef4fd..2585bcfea4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 68af2c3167..7e73478275 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 14bbf84ac4..1736294ca1 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127-SNAPSHOT + 11.127 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 9e124cbc59..05d6990130 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127-SNAPSHOT + 11.127 diff --git a/pom.xml b/pom.xml index 7aa6d4de9d..4274fd7a52 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.127-SNAPSHOT + 11.127 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.127 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 512a493fd7..5c505fd042 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 diff --git a/repository/pom.xml b/repository/pom.xml index 7a8a133a40..9480427e3f 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127-SNAPSHOT + 11.127 From df98ad9e92f2c8400c8279bd17c144d5448e2a7c Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 31 Aug 2021 14:11:26 +0000 Subject: [PATCH 112/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 4b91738e3d..7421d17069 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.127 + 11.128-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index c8ae487ef3..f0e54ae1ee 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.127 + 11.128-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index a08d74c3f6..7c77444078 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index cd0d908a94..b9335a3bec 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.127 + 11.128-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index d779f264e9..779da814cc 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.127 + 11.128-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 3249f447d0..9d004750db 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.127 + 11.128-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 4e6fdc0329..580f21fe15 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3500aaab03..0d6699ffaa 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.127 + 11.128-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 4dc8089f9b..10d544bedf 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 5c1bc2b2eb..3a96f2b374 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 7a3a07f548..25e1836c9e 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 19fbf945ad..bcd11c4ca2 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 12007953b2..1139023445 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 5e2cd0b09b..2812837a84 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index c8f0f8d794..192e4747e8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 379de4d244..7f7a7d4294 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 2585bcfea4..1c32ab2ab0 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 7e73478275..6ca9dc2a71 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 1736294ca1..b8238c6185 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.127 + 11.128-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 05d6990130..b55d1d2a12 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.127 + 11.128-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4274fd7a52..6888c81031 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.127 + 11.128-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.127 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 5c505fd042..b6cd4d7dee 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 9480427e3f..6ec8536e5d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.127 + 11.128-SNAPSHOT From d97510dfbaf94953e5e3cb72b735366a7d6d0a85 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 1 Sep 2021 14:42:22 +0100 Subject: [PATCH 113/177] ACS-1880 handle defaults for missing properties (#687) * ACS-1880 handle defaults for missing properties * ACS-1880 handle defaults for missing properties --- .../src/main/resources/alfresco/public-rest-context.xml | 4 ++-- .../main/resources/alfresco/content-services-context.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index 6099ddced5..51c33fd95a 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1080,8 +1080,8 @@ - - + + diff --git a/repository/src/main/resources/alfresco/content-services-context.xml b/repository/src/main/resources/alfresco/content-services-context.xml index a086db2e41..dfbdf56633 100644 --- a/repository/src/main/resources/alfresco/content-services-context.xml +++ b/repository/src/main/resources/alfresco/content-services-context.xml @@ -360,9 +360,9 @@ - - - + + + From 015e3213af38bc7cbbeb9a0cdabca367d4f49faf Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 1 Sep 2021 18:37:35 +0100 Subject: [PATCH 114/177] Feature/acs 1924 remove version renditions end point (#688) * Revert "ACS-1833 - Test requestContentDirectUrl for Versions Renditions REST API endpoint (#675)" This reverts commit 4aaae012 * ACS-1924 Remove endpoint for version rendition DAUs * ACS-1924 Correct WebApiParams To restore the direct access url version renditions code, do not just revert the whole commit. Instead: * Restore commit 4aaae012 (this is the api test for direct access url version renditions) * Revert commit 44ecb9d (this is the endpoint for version rendition DAUs) * Do not revert commit 7157328 (This is a correction the WebApiParams for several direct access url endpoints) --- .../api/nodes/NodeRenditionsRelation.java | 2 +- .../nodes/NodeVersionRenditionsRelation.java | 41 ------- .../rest/api/nodes/NodeVersionsRelation.java | 2 +- .../rest/api/nodes/NodesEntityResource.java | 2 +- .../api/trashcan/TrashcanEntityResource.java | 2 +- .../trashcan/TrashcanRenditionsRelation.java | 2 +- .../alfresco/public-rest-context.xml | 1 - .../alfresco/rest/api/tests/NodeApiTest.java | 109 ------------------ 8 files changed, 5 insertions(+), 156 deletions(-) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java index 9a6e48fd50..54cd41747b 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/nodes/NodeRenditionsRelation.java @@ -120,7 +120,7 @@ public class NodeRenditionsRelation implements RelationshipResourceAction.Read - diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java index 434caff1de..ca61d3e22d 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeApiTest.java @@ -141,8 +141,6 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest private String groupA = null; private String groupB = null; - private final static long DELAY_IN_MS = 500; - @Before public void setup() throws Exception { @@ -6368,112 +6366,5 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest HttpResponse dauResponse = post(getRequestContentDirectUrl(contentNodeId), null, null, null, null, 501); } - - - @Test - public void testCreateRenditionForNewVersion() throws Exception - { - setRequestContext(user1); - - RepoService.TestNetwork networkN1; - RepoService.TestPerson userOneN1; - Site userOneN1Site; - - networkN1 = repoService.createNetworkWithAlias("ping", true); - networkN1.create(); - userOneN1 = networkN1.createUser(); - - setRequestContext(networkN1.getId(), userOneN1.getId(), null); - - String siteTitle = "RandomSite" + System.currentTimeMillis(); - userOneN1Site = createSite(siteTitle, SiteVisibility.PRIVATE); - - String PROP_LTM = "cm:lastThumbnailModification"; - - String RENDITION_NAME = "imgpreview"; - - String userId = userOneN1.getId(); - setRequestContext(networkN1.getId(), userOneN1.getId(), null); - - // Create a folder within the site document's library - String folderName = "folder" + System.currentTimeMillis(); - String parentId = getSiteContainerNodeId(userOneN1Site.getId(), "documentLibrary"); - String folder_Id = createNode(parentId, folderName, TYPE_CM_FOLDER, null).getId(); - - // Create multipart request - pdf file - String fileName = "quick.pdf"; - File file = getResourceFile(fileName); - MultiPartRequest reqBody = MultiPartBuilder.create() - .setFileData(new FileData(fileName, file)) - .build(); - Map params = Collections.singletonMap("include", "properties"); - - // Upload quick.pdf file into 'folder' - do not include request to create 'doclib' thumbnail - HttpResponse response = post(getNodeChildrenUrl(folder_Id), reqBody.getBody(), params, null, "alfresco", reqBody.getContentType(), 201); - Document document1 = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); - String contentNodeId = document1.getId(); - assertNotNull(document1.getProperties()); - - // pause briefly - Thread.sleep(DELAY_IN_MS); - - // Get rendition (not created yet) information for node - response = getSingle(getNodeRenditionsUrl(contentNodeId), RENDITION_NAME, 200); - Rendition rendition = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Rendition.class); - assertNotNull(rendition); - assertEquals(Rendition.RenditionStatus.NOT_CREATED, rendition.getStatus()); - - params = new HashMap<>(); - params.put("placeholder", "false"); - getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 404); - - // Create and get 'imgpreview' rendition - rendition = createAndGetRendition(contentNodeId, RENDITION_NAME); - assertNotNull(rendition); - - params = new HashMap<>(); - params.put("placeholder", "false"); - response = getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 200); - - byte[] renditionBytes1 = response.getResponseAsBytes(); - assertNotNull(renditionBytes1); - - // check node details ... - params = Collections.singletonMap("include", "properties"); - response = getSingle(NodesEntityResource.class, contentNodeId, params, 200); - Document document1b = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); - assertEquals(document1b.getModifiedByUser().getId(), document1.getModifiedByUser().getId()); - - // upload another version of "quick.pdf" and check again - fileName = "quick-2.pdf"; - file = getResourceFile(fileName); - reqBody = MultiPartBuilder.create() - .setFileData(new FileData("quick.pdf", file)) - .setOverwrite(true) - .build(); - - response = post(getNodeChildrenUrl(folder_Id), reqBody.getBody(), null, null, "alfresco", reqBody.getContentType(), 201); - Document document2 = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); - assertEquals(contentNodeId, document2.getId()); - - // wait to allow new version of the rendition to be created ... - Thread.sleep(DELAY_IN_MS * 4); - - params = new HashMap<>(); - params.put("placeholder", "false"); - response = getSingle(getNodeRenditionsUrl(contentNodeId), (RENDITION_NAME+"/content"), params, 200); - assertNotNull(response.getResponseAsBytes()); - - // check rendition binary has changed - assertNotEquals(renditionBytes1, response.getResponseAsBytes()); - - params = Collections.singletonMap("include", "properties"); - response = getSingle(NodesEntityResource.class, contentNodeId, params, 200); - Document document2b = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); - - String contentNodeId2b = document2b.getId(); - HttpResponse dauResponse = post(getRequestContentDirectUrl(contentNodeId2b), null, null, null, null, 501); - - } } From ec72000380508cde43267b64056d9265c6fecf10 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 1 Sep 2021 19:00:45 +0000 Subject: [PATCH 115/177] [maven-release-plugin][skip ci] prepare release 11.128 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7421d17069..58c2d14bc5 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.128-SNAPSHOT + 11.128 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index f0e54ae1ee..7c1d34c5e6 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.128-SNAPSHOT + 11.128 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 7c77444078..997d069be9 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index b9335a3bec..1de2270cf6 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.128-SNAPSHOT + 11.128 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 779da814cc..692ff393b7 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.128-SNAPSHOT + 11.128 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 9d004750db..6f0cd67751 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.128-SNAPSHOT + 11.128 diff --git a/amps/pom.xml b/amps/pom.xml index 580f21fe15..4fa120fef6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 0d6699ffaa..cc7d7af8bf 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.128-SNAPSHOT + 11.128 diff --git a/core/pom.xml b/core/pom.xml index 10d544bedf..810acc27d9 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/data-model/pom.xml b/data-model/pom.xml index 3a96f2b374..e9926f86d9 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 25e1836c9e..75b1cedcec 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index bcd11c4ca2..6b40ec4770 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/pom.xml b/packaging/pom.xml index 1139023445..434a13bb8a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2812837a84..f424a4c014 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 192e4747e8..90b3a5bd8c 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 7f7a7d4294..dd34b24049 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1c32ab2ab0..f4bf5ffa39 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 6ca9dc2a71..a0bf0fed69 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b8238c6185..8faf9205f6 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128-SNAPSHOT + 11.128 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index b55d1d2a12..dde2411630 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128-SNAPSHOT + 11.128 diff --git a/pom.xml b/pom.xml index 6888c81031..5a84df59de 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.128-SNAPSHOT + 11.128 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.128 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index b6cd4d7dee..7b4b48b3ef 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 diff --git a/repository/pom.xml b/repository/pom.xml index 6ec8536e5d..d91532304e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128-SNAPSHOT + 11.128 From aac73e2064acbfca3fc70680c87dd9723a903084 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 1 Sep 2021 19:00:48 +0000 Subject: [PATCH 116/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 58c2d14bc5..2a492093be 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.128 + 11.129-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 7c1d34c5e6..5e182f6462 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.128 + 11.129-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 997d069be9..8c105246b5 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 1de2270cf6..dabd76efbc 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.128 + 11.129-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 692ff393b7..ec991b877d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.128 + 11.129-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 6f0cd67751..826376f448 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.128 + 11.129-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 4fa120fef6..0dda260ab1 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index cc7d7af8bf..636ac6f68b 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.128 + 11.129-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 810acc27d9..0c66f52d56 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index e9926f86d9..066b5ee237 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 75b1cedcec..5a74004381 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 6b40ec4770..acc38e4b11 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 434a13bb8a..726a3aa551 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index f424a4c014..21d85f33a7 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 90b3a5bd8c..cb73dc4b89 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index dd34b24049..103aa9be30 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index f4bf5ffa39..47faecd9bc 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index a0bf0fed69..9c344d7d35 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8faf9205f6..96e2dcf5a2 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.128 + 11.129-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index dde2411630..86fd7ceea0 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.128 + 11.129-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5a84df59de..f7d21fec18 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.128 + 11.129-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.128 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 7b4b48b3ef..1af7d88ab5 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index d91532304e..5df65a3bae 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.128 + 11.129-SNAPSHOT From 031d1c740c2752e370f1a5eff88399c1d105776b Mon Sep 17 00:00:00 2001 From: alandavis Date: Wed, 1 Sep 2021 21:58:19 +0100 Subject: [PATCH 117/177] ACS-1924 Pick up api-explorer 7.1.0-A4 Includes changes for other Direct Access URI tickets --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f7d21fec18..b94d81cfa7 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ 3.2.1.3 1.4.0.1 - 7.1.0-A1 + 7.1.0-A4 2.2.0 42.2.20 From ac08612183a80cabbf5d2f43989b493dba7dcbda Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 1 Sep 2021 22:17:39 +0000 Subject: [PATCH 118/177] [maven-release-plugin][skip ci] prepare release 11.129 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 2a492093be..237f12cc8e 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.129-SNAPSHOT + 11.129 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5e182f6462..8f3b1f2c3e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.129-SNAPSHOT + 11.129 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8c105246b5..77a6b82558 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index dabd76efbc..5b91dccea0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.129-SNAPSHOT + 11.129 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index ec991b877d..300b630b90 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.129-SNAPSHOT + 11.129 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 826376f448..50646b7cc0 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.129-SNAPSHOT + 11.129 diff --git a/amps/pom.xml b/amps/pom.xml index 0dda260ab1..b8a0022fc9 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 636ac6f68b..c5293f241d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.129-SNAPSHOT + 11.129 diff --git a/core/pom.xml b/core/pom.xml index 0c66f52d56..34ec26edcc 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/data-model/pom.xml b/data-model/pom.xml index 066b5ee237..48f984d497 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 5a74004381..bf65ac526b 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index acc38e4b11..1c88853308 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/pom.xml b/packaging/pom.xml index 726a3aa551..0295bf9864 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 21d85f33a7..3f3acf9f16 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index cb73dc4b89..89dc9f8517 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 103aa9be30..8a101e924b 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 47faecd9bc..97c5a12ee5 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 9c344d7d35..3539253045 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 96e2dcf5a2..5a28cccd81 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129-SNAPSHOT + 11.129 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 86fd7ceea0..244e830f1c 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129-SNAPSHOT + 11.129 diff --git a/pom.xml b/pom.xml index b94d81cfa7..fe25bbd523 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.129-SNAPSHOT + 11.129 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.129 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1af7d88ab5..af83c0d15d 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 diff --git a/repository/pom.xml b/repository/pom.xml index 5df65a3bae..655b9b3206 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129-SNAPSHOT + 11.129 From 30a2bff92aa4058583fb4fd5b94bd19b4ae331fc Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 1 Sep 2021 22:17:42 +0000 Subject: [PATCH 119/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 237f12cc8e..8b1955c95a 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.129 + 11.130-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 8f3b1f2c3e..2482ec74fa 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.129 + 11.130-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 77a6b82558..f883d1fa81 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5b91dccea0..90d2bf3fa4 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.129 + 11.130-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 300b630b90..1191cc1e81 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.129 + 11.130-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 50646b7cc0..e86c6ca505 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.129 + 11.130-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index b8a0022fc9..7978e01bcd 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c5293f241d..86c3f9e50f 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.129 + 11.130-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 34ec26edcc..f92dd04d75 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 48f984d497..bb7adcddae 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index bf65ac526b..bcaf8550c3 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 1c88853308..d6a0566037 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 0295bf9864..db6f0a7b5a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3f3acf9f16..5acf8623c0 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 89dc9f8517..c991efa4e5 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 8a101e924b..d617abb7ed 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 97c5a12ee5..4d653d38fb 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 3539253045..0c63086026 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 5a28cccd81..514021b512 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.129 + 11.130-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 244e830f1c..703296e827 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.129 + 11.130-SNAPSHOT diff --git a/pom.xml b/pom.xml index fe25bbd523..35bd3f1ce0 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.129 + 11.130-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.129 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index af83c0d15d..de6ba965ee 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 655b9b3206..8dd16f4903 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.129 + 11.130-SNAPSHOT From d540bb319be1afb173b702f48ebc354aab9d88ea Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 2 Sep 2021 09:48:07 +0100 Subject: [PATCH 120/177] Pick up latest tas-restapi 1.64 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 35bd3f1ce0..3701cfbc04 100644 --- a/pom.xml +++ b/pom.xml @@ -114,7 +114,7 @@ 2.7.2 3.0.45 3.3.0 - 1.63 + 1.64 1.30 1.8 1.6 From 6cb8e84ee4e41ea51574e79e28a668f7ad310111 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 09:09:33 +0000 Subject: [PATCH 121/177] [maven-release-plugin][skip ci] prepare release 11.130 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 8b1955c95a..34b2ce99b3 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.130-SNAPSHOT + 11.130 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 2482ec74fa..80d1a31d25 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.130-SNAPSHOT + 11.130 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index f883d1fa81..5c9a010997 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 90d2bf3fa4..4b970f1208 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.130-SNAPSHOT + 11.130 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 1191cc1e81..0abe19d5fc 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.130-SNAPSHOT + 11.130 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index e86c6ca505..cdeb9ca78c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.130-SNAPSHOT + 11.130 diff --git a/amps/pom.xml b/amps/pom.xml index 7978e01bcd..f4774ae3b3 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 86c3f9e50f..a95156f8ee 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.130-SNAPSHOT + 11.130 diff --git a/core/pom.xml b/core/pom.xml index f92dd04d75..81a5be52bd 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/data-model/pom.xml b/data-model/pom.xml index bb7adcddae..575e54e051 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index bcaf8550c3..7903397ae1 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d6a0566037..62245495cc 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/pom.xml b/packaging/pom.xml index db6f0a7b5a..3b2013164f 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 5acf8623c0..c1dd638b64 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index c991efa4e5..338df82cdc 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index d617abb7ed..be32cf9f03 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 4d653d38fb..0eea4c8d0b 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 0c63086026..085b799882 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 514021b512..1ef462bf2d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130-SNAPSHOT + 11.130 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 703296e827..ac4f2388f8 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130-SNAPSHOT + 11.130 diff --git a/pom.xml b/pom.xml index 3701cfbc04..d8cc362c67 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.130-SNAPSHOT + 11.130 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.130 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index de6ba965ee..1bd23a7a3e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 diff --git a/repository/pom.xml b/repository/pom.xml index 8dd16f4903..930d6fe615 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130-SNAPSHOT + 11.130 From 9ee56762fb2a12e2a96dad30769607e494369630 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 09:09:36 +0000 Subject: [PATCH 122/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 34b2ce99b3..139a559100 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.130 + 11.131-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 80d1a31d25..7a2b399454 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.130 + 11.131-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 5c9a010997..9f52f642b7 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 4b970f1208..3eaa85c12e 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.130 + 11.131-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0abe19d5fc..8f776e9d6f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.130 + 11.131-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index cdeb9ca78c..087e193f97 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.130 + 11.131-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index f4774ae3b3..e6c73e3fec 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a95156f8ee..cf4d03abed 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.130 + 11.131-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 81a5be52bd..2575d96cf2 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 575e54e051..8da9dd8b92 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 7903397ae1..c030df45ee 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 62245495cc..bcdc8b2c19 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 3b2013164f..78b04565c8 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c1dd638b64..b8e7f17948 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 338df82cdc..bce486a5ea 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index be32cf9f03..4eba391921 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0eea4c8d0b..d39da32937 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 085b799882..be4538166d 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 1ef462bf2d..a5df3de3cb 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.130 + 11.131-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index ac4f2388f8..8a498295e9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.130 + 11.131-SNAPSHOT diff --git a/pom.xml b/pom.xml index d8cc362c67..c42d49cad0 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.130 + 11.131-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.130 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1bd23a7a3e..f5712c6515 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 930d6fe615..faba7373b3 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.130 + 11.131-SNAPSHOT From 59b641474face87c9af122d45fe62395a17cefba Mon Sep 17 00:00:00 2001 From: Gloria Camino Date: Thu, 2 Sep 2021 12:47:01 +0100 Subject: [PATCH 123/177] LOC-329 - Fixed, updated UI files in 15 languages as per RM-6941 (#691) --- .../messages/action-service_cs.properties | 2 +- .../messages/action-service_da.properties | 2 +- .../messages/action-service_de.properties | 2 +- .../messages/action-service_es.properties | 2 +- .../messages/action-service_fi.properties | 2 +- .../messages/action-service_fr.properties | 2 +- .../messages/action-service_it.properties | 2 +- .../messages/action-service_ja.properties | 2 +- .../messages/action-service_nb.properties | 2 +- .../messages/action-service_nl.properties | 2 +- .../messages/action-service_pl.properties | 2 +- .../messages/action-service_pt_BR.properties | 2 +- .../messages/action-service_ru.properties | 2 +- .../messages/action-service_sv.properties | 2 +- .../messages/action-service_zh_CN.properties | 2 +- .../resources/alfresco/messages/content-model_da.properties | 2 +- .../main/resources/alfresco/messages/iptc-model_da.properties | 4 ++-- .../resources/alfresco/messages/system-messages_de.properties | 2 +- .../resources/alfresco/messages/system-messages_es.properties | 2 +- .../resources/alfresco/messages/system-messages_fr.properties | 2 +- .../resources/alfresco/messages/system-messages_it.properties | 2 +- .../resources/alfresco/messages/system-messages_ja.properties | 2 +- .../resources/alfresco/messages/system-messages_nb.properties | 2 +- .../resources/alfresco/messages/system-messages_nl.properties | 2 +- .../alfresco/messages/system-messages_pt_BR.properties | 2 +- .../resources/alfresco/messages/system-messages_ru.properties | 2 +- .../alfresco/messages/system-messages_zh_CN.properties | 2 +- 27 files changed, 28 insertions(+), 28 deletions(-) diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_cs.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_cs.properties index 170edacbd7..f35b08ebfa 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_cs.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_cs.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Nelze vytv\u00e1\u0159et rm.action.create.transfer.child-error-message=Nelze vytv\u00e1\u0159et polo\u017eky ve slo\u017ece p\u0159enosu. rm.action.create.record.folder.child-error-message=Z\u00e1znamy je mo\u017en\u00e9 vytv\u00e1\u0159et pouze ve slo\u017ek\u00e1ch z\u00e1znam\u016f a toto bylo {0}. rm.action.transfer-non-editable=Nelze upravovat metadata kontejneru nebo slo\u017eky pro p\u0159enos. - +rm.action.node.frozen.error-message=Akci {0} nelze prov\u00e9st, proto\u017ee uzel je zablokovan\u00fd nebo m\u00e1 zablokovan\u00e9 pod\u0159\u00edzen\u00e9 prvky. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_da.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_da.properties index a28e721da7..9964ea265f 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_da.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_da.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Du kan ikke oprette elem rm.action.create.transfer.child-error-message=Du kan ikke oprette elementer i Overf\u00f8r-mapper. rm.action.create.record.folder.child-error-message=Du kan kun oprette poster i postmapper, og dette var en {0}. rm.action.transfer-non-editable=Du kan ikke redigere overf\u00f8rselsmappe- eller container-metadata. - +rm.action.node.frozen.error-message=Handlingen kan ikke udf\u00f8res {0}, fordi noden er l\u00e5st eller har l\u00e5ste underordnede noder. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_de.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_de.properties index 03b0890712..82932abbbf 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_de.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_de.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Sie k\u00f6nnen keine El rm.action.create.transfer.child-error-message=Sie k\u00f6nnen keine Elemente in \u00dcbertragungsordnern erstellen. rm.action.create.record.folder.child-error-message=In Record-Ordnern k\u00f6nnen Sie nur Records erstellen. Das war aber ein {0}. rm.action.transfer-non-editable=Sie k\u00f6nnen Metadaten von \u00dcbertragungsordnern oder -containern nicht bearbeiten. - +rm.action.node.frozen.error-message=Die Aktion ''{0}'' kann nicht ausgef\u00fchrt werden, da der Knoten oder untergeordnete Elemente von ihm festgefahren ist bzw. sind. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_es.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_es.properties index 5ea2ca053c..070323ce99 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_es.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_es.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=No se pueden crear eleme rm.action.create.transfer.child-error-message=No se pueden crear elementos en las carpetas de transferencia. rm.action.create.record.folder.child-error-message=Solo puede crear documentos de archivo en carpetas de documentos de archivo. {0} no se puede crear aqu\u00ed. rm.action.transfer-non-editable=No se puede editar una carpeta de transferencia ni los metadatos de un contenedor. - +rm.action.node.frozen.error-message=No se puede realizar la acci\u00f3n {0} porque el nodo est\u00e1 congelado o tiene elementos secundarios congelados. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fi.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fi.properties index 2fb1c281ab..d255b6ec22 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fi.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fi.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Siirtos\u00e4ili\u00f6\u rm.action.create.transfer.child-error-message=Siirtokansioihin ei voi luoda kohteita. rm.action.create.record.folder.child-error-message=Tietuekansioihin voi luoda ainoastaan tietueita, mutta t\u00e4m\u00e4 oli {0}. rm.action.transfer-non-editable=Siirtokansion tai -s\u00e4ili\u00f6n metatietoja ei voi muokata. - +rm.action.node.frozen.error-message=Toimintoa {0} ei voitu suorittaa, koska solmu on j\u00e4\u00e4dytetty tai sill\u00e4 on j\u00e4\u00e4dytettyj\u00e4 alatasoja. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fr.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fr.properties index d7d4a3ab52..c2b2bd947a 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fr.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_fr.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Impossible de cr\u00e9er rm.action.create.transfer.child-error-message=Impossible de cr\u00e9er des \u00e9l\u00e9ments dans les dossiers de transfert. rm.action.create.record.folder.child-error-message=Vous ne pouvez cr\u00e9er des documents d''archives que dans les dossiers d''archives, dans le cas pr\u00e9sent {0}. rm.action.transfer-non-editable=Impossible de modifier les m\u00e9tadonn\u00e9es de dossier de transfert ou de contenant. - +rm.action.node.frozen.error-message=Impossible d''effectuer l''action {0} car le n\u0153ud ou ses enfants sont gel\u00e9s. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_it.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_it.properties index 81c2032be7..8fd5091f30 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_it.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_it.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Impossibile creare eleme rm.action.create.transfer.child-error-message=Impossibile creare elementi nelle cartelle Trasferimento. rm.action.create.record.folder.child-error-message=I record possono essere creati solo nelle cartelle dei record e questa era {0}. rm.action.transfer-non-editable=Impossibile modificare la cartella di trasferimento o i metadati dei contenitori. - +rm.action.node.frozen.error-message=Impossibile eseguire l''azione {0} poich\u00e9 il nodo \u00e8 congelato o presenta nodi figlio congelati. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ja.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ja.properties index 8be3966fa5..679424bcc4 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ja.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ja.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=\u8ee2\u9001\u30b3\u30f3 rm.action.create.transfer.child-error-message=\u8ee2\u9001\u30d5\u30a9\u30eb\u30c0\u5185\u3067\u306f\u30a2\u30a4\u30c6\u30e0\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002 rm.action.create.record.folder.child-error-message=\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3067\u304d\u308b\u306e\u306f\u30ec\u30b3\u30fc\u30c9\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u307f\u3067\u3001\u3053\u308c\u306f {0} \u3067\u3059\u3002 rm.action.transfer-non-editable=\u8ee2\u9001\u30d5\u30a9\u30eb\u30c0\u307e\u305f\u306f\u30b3\u30f3\u30c6\u30ca\u30e1\u30bf\u30c7\u30fc\u30bf\u306f\u7de8\u96c6\u3067\u304d\u307e\u305b\u3093\u3002 - +rm.action.node.frozen.error-message=\u30ce\u30fc\u30c9\u304c\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3044\u308b\u304b\u3001\u307e\u305f\u306f\u5b50\u304c\u51cd\u7d50\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30a2\u30af\u30b7\u30e7\u30f3 {0}\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093 diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nb.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nb.properties index 423c2f79c9..e5946ca805 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nb.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nb.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Elementer kan ikke oppre rm.action.create.transfer.child-error-message=Elementer kan ikke opprettes i overf\u00f8ringsmapper. rm.action.create.record.folder.child-error-message=Oppf\u00f8ringer kan bare opprettes i oppf\u00f8ringsmapper, og dette er en {0}. rm.action.transfer-non-editable=Overf\u00f8ringsmapper eller beholdermetadata kan ikke redigeres. - +rm.action.node.frozen.error-message=Kan ikke utf\u00f8re handlingen {0} fordi noden er frossen eller har frosne underordnede elementer. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nl.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nl.properties index 397f2ef9aa..70aeaf3026 100755 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nl.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_nl.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=U kunt geen onderdelen m rm.action.create.transfer.child-error-message=U kunt geen onderdelen maken in overdrachtsmappen. rm.action.create.record.folder.child-error-message=U kunt alleen archiefstukken maken in archiefmappen en dit was een {0}. rm.action.transfer-non-editable=U kunt metagegevens in een overdrachtsmap of -container niet bewerken. - +rm.action.node.frozen.error-message=Kan de actie {0} niet uitvoeren omdat de node geblokkeerd is of geblokkeerde onderliggende elementen heeft. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pl.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pl.properties index 56e2d2966f..755f8afee9 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pl.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pl.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Nie mo\u017cna utworzy\u rm.action.create.transfer.child-error-message=Nie mo\u017cna utworzy\u0107 pozycji w folderach przesy\u0142ania. rm.action.create.record.folder.child-error-message=W folderach rekord\u00f3w mo\u017cna tworzy\u0107 tylko rekordy, a to by\u0142o {0}. rm.action.transfer-non-editable=Nie mo\u017cna edytowa\u0107 folderu przesy\u0142ania ani metadanych kontenera. - +rm.action.node.frozen.error-message=Nie mo\u017cna wykona\u0107 czynno\u015bci {0}, poniewa\u017c w\u0119ze\u0142 jest zablokowany lub ma zablokowane elementy podrz\u0119dne. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pt_BR.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pt_BR.properties index b02afa69cd..b07b94ad1b 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pt_BR.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_pt_BR.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=N\u00e3o \u00e9 poss\u00 rm.action.create.transfer.child-error-message=N\u00e3o \u00e9 poss\u00edvel criar itens nas pastas de Transfer\u00eancia. rm.action.create.record.folder.child-error-message=\u00c9 poss\u00edvel apenas criar documentos arquiv\u00edsticos em pastas de documentos arquiv\u00edsticos; esta foi {0}. rm.action.transfer-non-editable=N\u00e3o \u00e9 poss\u00edvel editar os metadados das pastas de transfer\u00eancia ou cont\u00eainer. - +rm.action.node.frozen.error-message=N\u00e3o \u00e9 poss\u00edvel executar a a\u00e7\u00e3o {0} porque o n\u00f3 est\u00e1 congelado ou tem filhos congelados. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ru.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ru.properties index 01174e4738..be30f4cfd8 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ru.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_ru.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=\u041d\u0435\u0432\u043e rm.action.create.transfer.child-error-message=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438. rm.action.create.record.folder.child-error-message=\u0417\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0430 \u044d\u0442\u043e {0}. rm.action.transfer-non-editable=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438\u043b\u0438 \u043f\u0430\u043f\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438. - +rm.action.node.frozen.error-message=\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 {0}, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0437\u0435\u043b \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d \u0438\u043b\u0438 \u0438\u043c\u0435\u0435\u0442 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_sv.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_sv.properties index 6f22da4f88..9e5ea4b8f1 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_sv.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_sv.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=Du kan inte skapa objekt rm.action.create.transfer.child-error-message=Du kan inte skapa objekt i \u00d6verf\u00f6ringsmappar. rm.action.create.record.folder.child-error-message=Du kan endast skapa handlingar i handlingsmappar och detta var en {0}. rm.action.transfer-non-editable=Du kan inte redigera \u00f6verf\u00f6ringsmappen eller beh\u00e5llarens metadata. - +rm.action.node.frozen.error-message=Det gick inte att utf\u00f6ra \u00e5tg\u00e4rd {0} eftersom noden \u00e4r frusen eller har frysta underordnade. diff --git a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_zh_CN.properties b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_zh_CN.properties index 4ff55da979..326bde95fa 100644 --- a/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_zh_CN.properties +++ b/amps/ags/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/action-service_zh_CN.properties @@ -45,4 +45,4 @@ rm.action.create.transfer.container.child-error-message=\u60a8\u65e0\u6cd5\u5728 rm.action.create.transfer.child-error-message=\u60a8\u65e0\u6cd5\u5728 Transfer \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u9879\u76ee\u3002 rm.action.create.record.folder.child-error-message=\u60a8\u53ea\u80fd\u5728\u8bb0\u5f55\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bb0\u5f55\uff0c\u4e14\u8fd9\u662f\u4e00\u4e2a {0}\u3002 rm.action.transfer-non-editable=\u60a8\u65e0\u6cd5\u7f16\u8f91\u4f20\u8f93\u6587\u4ef6\u5939\u6216\u5bb9\u5668\u5143\u6570\u636e\u3002 - +rm.action.node.frozen.error-message=\u65e0\u6cd5\u6267\u884c\u64cd\u4f5c{0}\uff0c\u56e0\u4e3a\u8282\u70b9\u5df2\u51bb\u7ed3\u6216\u51bb\u7ed3\u7684\u5b50\u8282\u70b9\u3002 diff --git a/repository/src/main/resources/alfresco/messages/content-model_da.properties b/repository/src/main/resources/alfresco/messages/content-model_da.properties index d0cc7d281d..fc0f5bda22 100644 --- a/repository/src/main/resources/alfresco/messages/content-model_da.properties +++ b/repository/src/main/resources/alfresco/messages/content-model_da.properties @@ -125,7 +125,7 @@ cm_contentmodel.aspect.cm_auditable.title=Kan overv\u00e5ges cm_contentmodel.aspect.cm_auditable.description=Kan overv\u00e5ges cm_contentmodel.property.cm_created.title=Oprettelsesdato cm_contentmodel.property.cm_created.description=Oprettelsesdato -cm_contentmodel.property.cm_creator.title=Oprettet af +cm_contentmodel.property.cm_creator.title=Opretter cm_contentmodel.property.cm_creator.description=Den person, der oprettede elementet cm_contentmodel.property.cm_modified.title=\u00c6ndringsdato cm_contentmodel.property.cm_modified.description=Tidspunkt for, hvorn\u00e5r elementet senest blev \u00e6ndret diff --git a/repository/src/main/resources/alfresco/messages/iptc-model_da.properties b/repository/src/main/resources/alfresco/messages/iptc-model_da.properties index 3be0ce09bc..a74ab303f5 100644 --- a/repository/src/main/resources/alfresco/messages/iptc-model_da.properties +++ b/repository/src/main/resources/alfresco/messages/iptc-model_da.properties @@ -93,7 +93,7 @@ iptcxmp_iptcmodel.property.Iptc4xmpExt_DigitalSourcefileType.title=Originalfotos iptcxmp_iptcmodel.property.Iptc4xmpExt_DigitalSourcefileType.description=Kildens digitale filtype. iptcxmp_iptcmodel.property.Iptc4xmpExt_DigitalSourceType.title=Kildetype til dette foto iptcxmp_iptcmodel.property.Iptc4xmpExt_DigitalSourceType.description=Kildetype til dette digitale billede -iptcxmp_iptcmodel.property.Iptc4xmpExt_Event.title=Event +iptcxmp_iptcmodel.property.Iptc4xmpExt_Event.title=H\u00e6ndelse iptcxmp_iptcmodel.property.Iptc4xmpExt_Event.description=Navngiver eller beskriver den specifikke begivenhed indholdet relaterer til. iptcxmp_iptcmodel.property.plus_ImageSupplierID.title=Billedes leverand\u00f8r-ID iptcxmp_iptcmodel.property.plus_ImageSupplierID.description=Identificerer emnets den nyeste leverand\u00f8r, som ikke n\u00f8dvendigvis er ejer eller opretter. @@ -125,7 +125,7 @@ iptcxmp_iptcmodel.property.plus_LicensorCity.title=By iptcxmp_iptcmodel.property.plus_LicensorCity.description=By for en person eller virksomhed, der skal kontaktes for at f\u00e5 en licens til brug af emnet, eller som har licens p\u00e5 emnet. iptcxmp_iptcmodel.property.plus_LicensorCountry.title=Land iptcxmp_iptcmodel.property.plus_LicensorCountry.description=Land for en person eller virksomhed, der skal kontaktes for at f\u00e5 en licens til brug af emnet, eller som har licens p\u00e5 emnet. -iptcxmp_iptcmodel.property.plus_LicensorEmail.title=e-mail +iptcxmp_iptcmodel.property.plus_LicensorEmail.title=E-mailadresse iptcxmp_iptcmodel.property.plus_LicensorEmail.description=E-mail for en person eller virksomhed, der skal kontaktes for at f\u00e5 en licens til brug af emnet, eller som har licens p\u00e5 emnet. iptcxmp_iptcmodel.property.plus_LicensorExtendedAddress.title=Udviddet adresse iptcxmp_iptcmodel.property.plus_LicensorExtendedAddress.description=Udvidet adresse for en person eller virksomhed, der skal kontaktes for at f\u00e5 en licens til brug af emnet, eller som har licens p\u00e5 emnet. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_de.properties b/repository/src/main/resources/alfresco/messages/system-messages_de.properties index 46705571d4..dc2ee67561 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_de.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_de.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=Die folgenden Probleme werden behoben, sobald das lange Ausf\u00fchrungspatch ''{0}'' ausgef\u00fchrt wurde. # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_es.properties b/repository/src/main/resources/alfresco/messages/system-messages_es.properties index f78a5a9f07..9ccf8bb2a3 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_es.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_es.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=Los siguientes problemas se resolver\u00e1n una vez que se haya ejecutado el parche de larga duraci\u00f3n {0} # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_fr.properties b/repository/src/main/resources/alfresco/messages/system-messages_fr.properties index 16501e5c0d..290ebbaa74 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_fr.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_fr.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=Les probl\u00e8mes suivants seront r\u00e9solus une fois la longue ex\u00e9cution du correctif {0} termin\u00e9e # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_it.properties b/repository/src/main/resources/alfresco/messages/system-messages_it.properties index b9ed640c4c..71ba9be8b6 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_it.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_it.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=I problemi seguenti verranno risolti al termine dell''esecuzione della patch di lunga durata {0} # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_ja.properties b/repository/src/main/resources/alfresco/messages/system-messages_ja.properties index a367d3aa8f..1d8a8427f5 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_ja.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_ja.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=\u9577\u6642\u9593\u30d1\u30b9{0}\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u554f\u984c\u304c\u89e3\u6c7a\u3055\u308c\u307e\u3059 # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_nb.properties b/repository/src/main/resources/alfresco/messages/system-messages_nb.properties index 2f2a08c4f4..c681d4042b 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_nb.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_nb.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=F\u00f8lgende problemer vil bli l\u00f8st s\u00e5 snart den lengekj\u00f8rende oppdateringen {0} har blitt kj\u00f8rt # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_nl.properties b/repository/src/main/resources/alfresco/messages/system-messages_nl.properties index dca3bf4a2f..35ce63c7a6 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_nl.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_nl.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=De volgende problemen worden opgelost zodra de langlopende patch {0} is uitgevoerd # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_pt_BR.properties b/repository/src/main/resources/alfresco/messages/system-messages_pt_BR.properties index 3fa3581af7..a69825e0f8 100644 --- a/repository/src/main/resources/alfresco/messages/system-messages_pt_BR.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_pt_BR.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=Os seguintes problemas ser\u00e3o resolvidos ap\u00f3s o patch de longa execu\u00e7\u00e3o {0} ter sido executado # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_ru.properties b/repository/src/main/resources/alfresco/messages/system-messages_ru.properties index 6333cd4d9f..1ff9c950bb 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_ru.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_ru.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u0448\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f {0} # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. diff --git a/repository/src/main/resources/alfresco/messages/system-messages_zh_CN.properties b/repository/src/main/resources/alfresco/messages/system-messages_zh_CN.properties index 791476f720..89cc58c2d1 100755 --- a/repository/src/main/resources/alfresco/messages/system-messages_zh_CN.properties +++ b/repository/src/main/resources/alfresco/messages/system-messages_zh_CN.properties @@ -38,7 +38,7 @@ system.schema_comp.index_columns_validator=Number of columns in index doesn''t m system.schema_comp.column_names_validator=Column types do not match. Was {0}, but expected {1} system.schema_comp.schema_version_validator=version must be at least ''{0}'' # Optional long running patch messages... -system.schema_comp.patch_run_suggestion=The following problems will be resolved once the long running patch {0} has been run +system.schema_comp.patch_run_suggestion=\u4e00\u65e6\u8fd0\u884c\u4e86\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u4fee\u8865\u7a0b\u5e8f{0}\uff0c\u4ee5\u4e0b\u95ee\u9898\u5c06\u5f97\u5230\u89e3\u51b3 # Clustering system.cluster.license.not_enabled=License does not permit clustering: clustering is disabled. From d2bb3a980d16f363d20c92259f64ec571f72b7bb Mon Sep 17 00:00:00 2001 From: mikolajbrzezinski <86791239+mikolajbrzezinski@users.noreply.github.com> Date: Thu, 2 Sep 2021 07:50:17 -0400 Subject: [PATCH 124/177] Feature/acs 1835 test dau for deleted renditions (#689) * Deleted Renditions DAU Test Skeleton * Deleted Renditions DAU Test v1 * Deleted Renditions DAU Test v2 * Deleted Renditions DAU Test v3 * Deleted Renditions DAU Test v3.1 * Comments From Pull Request --- .../org/alfresco/rest/DeletedNodesTest.java | 41 ++++++++++++++++++- .../rest/api/tests/AbstractBaseApiTest.java | 5 +++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java b/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java index 0fb7f53415..b1d2f36d44 100644 --- a/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/DeletedNodesTest.java @@ -78,8 +78,6 @@ public class DeletedNodesTest extends AbstractSingleNetworkSiteTest protected static final String URL_DELETED_NODES = "deleted-nodes"; private static final String URL_RENDITIONS = "renditions"; - - private final static long DELAY_IN_MS = 500; @Override public void setup() throws Exception @@ -732,6 +730,45 @@ public class DeletedNodesTest extends AbstractSingleNetworkSiteTest HttpResponse dauResponse = post(getRequestArchivedContentDirectUrl(contentNodeId), null, null, null, null, 501); } + @Test + public void testRequestArchivedRenditionDirectUrl() throws Exception + { + setRequestContext(user1); + + // Create a folder within the site document's library + Date now = new Date(); + String folder1 = "folder" + now.getTime() + "_1"; + Folder createdFolder = createFolder(tDocLibNodeId, folder1, null); + assertNotNull(createdFolder); + String f1Id = createdFolder.getId(); + + // Create multipart request using an existing file + String fileName = "quick.pdf"; + File file = getResourceFile(fileName); + MultiPartBuilder multiPartBuilder = MultiPartBuilder.create().setFileData(new MultiPartBuilder.FileData(fileName, file)); + MultiPartBuilder.MultiPartRequest reqBody = multiPartBuilder.build(); + + // Upload quick.pdf file into 'folder' + HttpResponse response = post(getNodeChildrenUrl(f1Id), reqBody.getBody(), null, reqBody.getContentType(), 201); + Document document = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); + String contentNodeId = document.getId(); + + Rendition rendition = createAndGetRendition(contentNodeId, "doclib"); + assertNotNull(rendition); + String renditionID = rendition.getId(); + assertEquals(Rendition.RenditionStatus.CREATED, rendition.getStatus()); + + deleteNode(contentNodeId); + + HttpResponse dauResponse = post(getRequestArchivedRenditonContentDirectUrl(contentNodeId, renditionID), null, null, null, null, 501); + } + + private String addToDocumentLibrary(String name, String nodeType, String userId) throws Exception + { + String parentId = getSiteContainerNodeId(Nodes.PATH_MY, "documentLibrary"); + return createNode(parentId, name, nodeType, null).getId(); + } + private String getDeletedNodeRenditionsUrl(String nodeId) { return URL_DELETED_NODES + "/" + nodeId + "/" + URL_RENDITIONS; diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java index 568ad7c667..c6f0d16d77 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java @@ -224,6 +224,11 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi return URL_DELETED_NODES + "/" + nodeId + "/" + REQUEST_DIRECT_ACCESS_URL; } + protected String getRequestArchivedRenditonContentDirectUrl(String nodeId, String renditionID) + { + return URL_DELETED_NODES + "/" + nodeId + "/" + URL_RENDITIONS + "/" + renditionID + "/" + REQUEST_DIRECT_ACCESS_URL; + } + /** * The api scope. either public or private * From 65ba8b16e018250194281d9c7550682a7f34be6d Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 12:41:45 +0000 Subject: [PATCH 125/177] [maven-release-plugin][skip ci] prepare release 11.131 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 139a559100..8830597987 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.131-SNAPSHOT + 11.131 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 7a2b399454..73578aa5fd 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.131-SNAPSHOT + 11.131 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 9f52f642b7..82a389f86d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 3eaa85c12e..424ad02dc8 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.131-SNAPSHOT + 11.131 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8f776e9d6f..178eef588b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.131-SNAPSHOT + 11.131 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 087e193f97..4177c716d9 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.131-SNAPSHOT + 11.131 diff --git a/amps/pom.xml b/amps/pom.xml index e6c73e3fec..db6acd56b3 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index cf4d03abed..4bf5493a5d 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.131-SNAPSHOT + 11.131 diff --git a/core/pom.xml b/core/pom.xml index 2575d96cf2..197833c5c7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/data-model/pom.xml b/data-model/pom.xml index 8da9dd8b92..3cac11fb36 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index c030df45ee..af984a55ae 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index bcdc8b2c19..9a515f34d3 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/pom.xml b/packaging/pom.xml index 78b04565c8..44a5ff7ea2 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index b8e7f17948..3fa2245eea 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index bce486a5ea..696e1a24ea 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4eba391921..2fd7832108 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index d39da32937..d019dc8ab1 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index be4538166d..c4c68ecc7e 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index a5df3de3cb..cd480992a7 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131-SNAPSHOT + 11.131 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 8a498295e9..d0299b34e4 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131-SNAPSHOT + 11.131 diff --git a/pom.xml b/pom.xml index c42d49cad0..250d8fb135 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.131-SNAPSHOT + 11.131 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.131 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index f5712c6515..3476e2d8bb 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 diff --git a/repository/pom.xml b/repository/pom.xml index faba7373b3..5c7241f4f6 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131-SNAPSHOT + 11.131 From e854a019887a792eaa9e2246132d6bbf2c0789ca Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 12:41:48 +0000 Subject: [PATCH 126/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 8830597987..03954ad67b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.131 + 11.132-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 73578aa5fd..807ce56227 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.131 + 11.132-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 82a389f86d..f0bdcead14 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 424ad02dc8..30dbf33832 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.131 + 11.132-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 178eef588b..404a4cfada 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.131 + 11.132-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 4177c716d9..f4f26004c2 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.131 + 11.132-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index db6acd56b3..b7a31173d6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4bf5493a5d..f89cef5692 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.131 + 11.132-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 197833c5c7..da78f6a5cb 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 3cac11fb36..5116fc520a 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index af984a55ae..07fe48deae 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 9a515f34d3..962a55d73f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 44a5ff7ea2..d1efc1f516 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3fa2245eea..4c6bda638f 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 696e1a24ea..fc8a263f2d 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 2fd7832108..3976ac2996 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index d019dc8ab1..30b0f06f6e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index c4c68ecc7e..2b88788b36 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index cd480992a7..fd504682ef 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.131 + 11.132-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d0299b34e4..0b58a7570d 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.131 + 11.132-SNAPSHOT diff --git a/pom.xml b/pom.xml index 250d8fb135..cc0e27ce06 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.131 + 11.132-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.131 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 3476e2d8bb..582dc42fa8 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 5c7241f4f6..6f091fd86d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.131 + 11.132-SNAPSHOT From 3ce95c5262b5cbfd8766424dd551cb1ff3f55f86 Mon Sep 17 00:00:00 2001 From: Jamal Kaabi-Mofrad Date: Thu, 2 Sep 2021 13:59:38 +0100 Subject: [PATCH 127/177] REPO-5664/REPO-5665: System admin webscripts (#690) --- pom.xml | 2 +- .../repo/web/scripts/RepositoryContainer.java | 121 +++++++++--- .../alfresco/web/scripts/WebScriptUtils.java | 61 ++++-- .../repository/admin/admin-common.lib.js | 2 +- .../admin/admin-communitysummary.get.desc.xml | 4 +- .../repository/admin/admin-root.get.desc.xml | 4 +- .../repository/admin/jmxdump.get.desc.xml | 4 +- .../repository/admin/usage.post.desc.xml | 4 +- .../web/scripts/admin/AdminWebScriptTest.java | 178 +++++++++++++++++- 9 files changed, 326 insertions(+), 54 deletions(-) diff --git a/pom.xml b/pom.xml index cc0e27ce06..96b88c4bd9 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 2.12.4 3.4.4 1.0.0 - 8.22 + 8.23 1.69 3.11.2 1.10.19 diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java index bbc5f018a9..dfc51fdfcc 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/RepositoryContainer.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2019 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -30,6 +30,7 @@ import java.net.SocketException; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.function.Supplier; import javax.servlet.http.HttpServletResponse; @@ -355,7 +356,10 @@ public class RepositoryContainer extends AbstractRuntimeContainer return; } - if ((required == RequiredAuthentication.user || required == RequiredAuthentication.admin) && isGuest) + // if the required authentication is not equal to guest, then it should be one of the following: + // user | sysadmin | admin (the 'none' authentication is handled above) + // in this case the guest user should not be able to execute those scripts. + if (required != RequiredAuthentication.guest && isGuest) { throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access."); } @@ -383,28 +387,9 @@ public class RepositoryContainer extends AbstractRuntimeContainer { return false; } - // The user will now have been authenticated, based on HTTP Auth, Ticket etc + // The user will now have been authenticated, based on HTTP Auth, Ticket, etc. // Check that the user they authenticated as has appropriate access to the script - - // Check to see if they supplied HTTP Auth or Ticket as guest, on a script that needs more - if (required == RequiredAuthentication.user || required == RequiredAuthentication.admin) - { - final String authenticatedUser = AuthenticationUtil.getFullyAuthenticatedUser(); - final String runAsUser = AuthenticationUtil.getRunAsUser(); - - if ( (authenticatedUser == null) || - (authenticatedUser.equals(runAsUser) && authorityService.hasGuestAuthority()) || - (!authenticatedUser.equals(runAsUser) && authorityService.isGuestAuthority(authenticatedUser)) ) - { - throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires user authentication; however, a guest has attempted access."); - } - } - - // Check to see if they're admin or system on an Admin only script - if (required == RequiredAuthentication.admin && !(authorityService.hasAdminAuthority() || AuthenticationUtil.getFullyAuthenticatedUser().equals(AuthenticationUtil.getSystemUserName()))) - { - throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + desc.getId() + " requires admin authentication; however, a non-admin has attempted access."); - } + checkScriptAccess(required, desc.getId()); if (debug) { @@ -424,7 +409,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer // Execute Web Script if authentication passed // The Web Script has its own txn management with potential runAs() user - transactionedExecuteAs(script, scriptReq, scriptRes); + transactionedExecuteAs(script, scriptReq, scriptRes, required); } finally { @@ -441,6 +426,65 @@ public class RepositoryContainer extends AbstractRuntimeContainer } } + private boolean isSystemUser() + { + return Objects.equals(AuthenticationUtil.getFullyAuthenticatedUser(), AuthenticationUtil.getSystemUserName()); + } + + private boolean isSysAdminUser() + { + return authorityService.hasSysAdminAuthority(); + } + + private boolean isAdmin() + { + return authorityService.hasAdminAuthority(); + } + + public final boolean isAdminOrSystemUser() + { + return isAdmin() || isSystemUser(); + } + + /** + * Check to see if they supplied HTTP Auth or Ticket as guest, on a script that needs more + */ + private void checkGuestAccess(RequiredAuthentication required, String scriptDescriptorId) + { + if (required == RequiredAuthentication.user || required == RequiredAuthentication.admin + || required == RequiredAuthentication.sysadmin) + { + final String authenticatedUser = AuthenticationUtil.getFullyAuthenticatedUser(); + final String runAsUser = AuthenticationUtil.getRunAsUser(); + + if ((authenticatedUser == null) || (authenticatedUser.equals(runAsUser) + && authorityService.hasGuestAuthority()) || (!authenticatedUser.equals(runAsUser) + && authorityService.isGuestAuthority(authenticatedUser))) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + scriptDescriptorId + + " requires user authentication; however, a guest has attempted access."); + } + } + } + + private void checkScriptAccess(RequiredAuthentication required, String scriptDescriptorId) + { + // first, check guest access + checkGuestAccess(required, scriptDescriptorId); + + // Check to see if the user is sysAdmin, admin or system on a sysadmin scripts + if (required == RequiredAuthentication.sysadmin && !(isSysAdminUser() || isAdminOrSystemUser())) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + scriptDescriptorId + + " requires system-admin authentication; however, a non-system-admin has attempted access."); + } + else if (required == RequiredAuthentication.admin && !isAdminOrSystemUser()) + { + throw new WebScriptException(HttpServletResponse.SC_UNAUTHORIZED, "Web Script " + scriptDescriptorId + + " requires admin authentication; however, a non-admin has attempted access."); + } + } + /** * Execute script within required level of transaction * @@ -626,6 +670,35 @@ public class RepositoryContainer extends AbstractRuntimeContainer }, runAs); } } + + /** + * Execute script within required level of transaction as required effective user. + * + * @param script WebScript + * @param scriptReq WebScriptRequest + * @param scriptRes WebScriptResponse + * @param requiredAuthentication Required authentication + * @throws IOException + */ + private void transactionedExecuteAs(final WebScript script, final WebScriptRequest scriptReq, + final WebScriptResponse scriptRes, RequiredAuthentication requiredAuthentication) throws IOException + { + // Execute as System if and only if, the current user is a member of System-Admin group, and he is not a super admin. + // E.g. if 'jdoe' is a member of ALFRESCO_SYSTEM_ADMINISTRATORS group, then the work should be executed as System to satisfy the ACL checks. + // But, if the current user is Admin (i.e. super admin, which by default he is a member fo the ALFRESCO_SYSTEM_ADMINISTRATORS group) + // then don't wrap the work as RunAs, since he can do anything! + if (requiredAuthentication == RequiredAuthentication.sysadmin && isSysAdminUser() && !isAdmin()) + { + AuthenticationUtil.runAs(() -> { + transactionedExecute(script, scriptReq, scriptRes); + return null; + }, AuthenticationUtil.SYSTEM_USER_NAME); + } + else + { + transactionedExecuteAs(script, scriptReq, scriptRes); + } + } /* (non-Javadoc) * @see org.alfresco.web.scripts.AbstractRuntimeContainer#onApplicationEvent(org.springframework.context.ApplicationEvent) diff --git a/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java b/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java index 866d7cf704..917b5fe81e 100644 --- a/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java +++ b/remote-api/src/main/java/org/alfresco/web/scripts/WebScriptUtils.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -35,6 +35,7 @@ import org.alfresco.repo.jscript.ScriptUtils; import org.alfresco.repo.web.scripts.RepositoryContainer; import org.alfresco.service.cmr.admin.RepoUsage; import org.alfresco.service.cmr.repository.StoreRef; +import org.springframework.extensions.webscripts.Description.RequiredAuthentication; import org.springframework.extensions.webscripts.WebScript; /** @@ -65,27 +66,61 @@ public class WebScriptUtils extends ScriptUtils */ public Object[] findWebScripts(String family) { - List values = new ArrayList(); - + List values = new ArrayList<>(); + for (WebScript webscript : this.repositoryContainer.getRegistry().getWebScripts()) { - if (family != null) + addScriptDescription(family, values, webscript); + } + + return values.toArray(new Object[0]); + } + + /** + * Searches for webscript components with the given family name accessible to the current user. + * + * @param family the family + * + * @return An array of webscripts that match the given family name accessible to the current user + * + * @since 7.1 + */ + public Object[] findWebScriptsForCurrentUser(String family) + { + List values = new ArrayList<>(); + + final boolean isAdminOrSystemUser = repositoryContainer.isAdminOrSystemUser(); + for (WebScript webscript : this.repositoryContainer.getRegistry().getWebScripts()) + { + final RequiredAuthentication required = webscript.getDescription().getRequiredAuthentication(); + // Ignore admin webscripts if the current user is not an Admin or System + if (RequiredAuthentication.admin == required && !isAdminOrSystemUser) { - Set familys = webscript.getDescription().getFamilys(); - if (familys != null && familys.contains(family)) - { - values.add(webscript.getDescription()); - } + continue; } - else + + addScriptDescription(family, values, webscript); + } + + return values.toArray(new Object[0]); + } + + private void addScriptDescription(String family, List values, WebScript webscript) + { + if (family != null) + { + Set families = webscript.getDescription().getFamilys(); + if (families != null && families.contains(family)) { values.add(webscript.getDescription()); } } - - return values.toArray(new Object[0]); + else + { + values.add(webscript.getDescription()); + } } - + public String getHostAddress() { try diff --git a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-common.lib.js b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-common.lib.js index c7610cae61..c9312b48c2 100644 --- a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-common.lib.js +++ b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-common.lib.js @@ -40,7 +40,7 @@ var Admin = Admin || {}; var toolInfo = {}; // collect the tools required for the Admin Console - var tools = utils.findWebScripts("AdminConsole"); + var tools = utils.findWebScriptsForCurrentUser("AdminConsole"); // process each tool and generate the data so that a label+link can // be output by the component template for each tool required diff --git a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-communitysummary.get.desc.xml b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-communitysummary.get.desc.xml index 55445b39d4..016f57de71 100644 --- a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-communitysummary.get.desc.xml +++ b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-communitysummary.get.desc.xml @@ -7,7 +7,7 @@ AdminConsole:Edition:Community argument - admin + sysadmin internal required - \ No newline at end of file + diff --git a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-root.get.desc.xml b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-root.get.desc.xml index 26816eeb20..2b7ae51945 100644 --- a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-root.get.desc.xml +++ b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/admin-root.get.desc.xml @@ -5,7 +5,7 @@ /admin/ AdminConsoleHelper argument - admin + sysadmin internal required - \ No newline at end of file + diff --git a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/jmxdump.get.desc.xml b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/jmxdump.get.desc.xml index 39eceeb809..b1179e5ebe 100644 --- a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/jmxdump.get.desc.xml +++ b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/jmxdump.get.desc.xml @@ -5,7 +5,7 @@ /api/admin/jmxdump AdminConsoleHelper - admin + sysadmin internal - \ No newline at end of file + diff --git a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/usage.post.desc.xml b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/usage.post.desc.xml index e852951f6c..fb3fea15ae 100644 --- a/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/usage.post.desc.xml +++ b/remote-api/src/main/resources/alfresco/templates/webscripts/org/alfresco/repository/admin/usage.post.desc.xml @@ -3,8 +3,8 @@ Update and retrieve repository usage /api/admin/usage - admin + sysadmin required Admin internal - \ No newline at end of file + diff --git a/remote-api/src/test/java/org/alfresco/repo/web/scripts/admin/AdminWebScriptTest.java b/remote-api/src/test/java/org/alfresco/repo/web/scripts/admin/AdminWebScriptTest.java index c0610d25e8..4a9d6fe556 100644 --- a/remote-api/src/test/java/org/alfresco/repo/web/scripts/admin/AdminWebScriptTest.java +++ b/remote-api/src/test/java/org/alfresco/repo/web/scripts/admin/AdminWebScriptTest.java @@ -2,7 +2,7 @@ * #%L * Alfresco Remote API * %% - * Copyright (C) 2005 - 2016 Alfresco Software Limited + * Copyright (C) 2005 - 2021 Alfresco Software Limited * %% * This file is part of the Alfresco software. * If the software was purchased under a paid Alfresco license, the terms of @@ -31,10 +31,12 @@ import java.util.List; import java.util.Locale; import java.util.Map; +import org.alfresco.model.ContentModel; import org.alfresco.repo.content.MimetypeMap; import org.alfresco.repo.dictionary.Facetable; import org.alfresco.repo.dictionary.IndexTokenisationMode; import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.repo.security.authority.AuthorityServiceImpl; import org.alfresco.repo.web.scripts.BaseWebScriptTest; import org.alfresco.service.cmr.admin.RepoAdminService; import org.alfresco.service.cmr.admin.RepoUsage; @@ -48,11 +50,18 @@ import org.alfresco.service.cmr.dictionary.ModelDefinition; import org.alfresco.service.cmr.dictionary.PropertyDefinition; import org.alfresco.service.cmr.i18n.MessageLookup; import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.security.AuthorityService; +import org.alfresco.service.cmr.security.MutableAuthenticationService; +import org.alfresco.service.cmr.security.PersonService; import org.alfresco.service.descriptor.DescriptorService; import org.alfresco.service.license.LicenseDescriptor; import org.alfresco.service.namespace.QName; import org.alfresco.test_category.OwnJVMTestsCategory; +import org.alfresco.util.PropertyMap; +import org.apache.commons.lang3.RandomStringUtils; import org.json.JSONObject; +import org.jsoup.Jsoup; +import org.jsoup.nodes.Document; import org.junit.Test; import org.junit.experimental.categories.Category; import org.springframework.context.ApplicationContext; @@ -74,29 +83,46 @@ import static org.mockito.Mockito.when; @Category(OwnJVMTestsCategory.class) public class AdminWebScriptTest extends BaseWebScriptTest { - private ApplicationContext ctx; - private RepoAdminService repoAdminService; - private DescriptorService descriptorService; + private RepoAdminService repoAdminService; + private DescriptorService descriptorService; + private PersonService personService; + private MutableAuthenticationService authenticationService; + private String admin; private String guest; + private String user1_sysAdmin; + private String user2; @Override protected void setUp() throws Exception { super.setUp(); - ctx = getServer().getApplicationContext(); - repoAdminService = (RepoAdminService) ctx.getBean("RepoAdminService"); - descriptorService = (DescriptorService) ctx.getBean("DescriptorService"); + ApplicationContext ctx = getServer().getApplicationContext(); + repoAdminService = ctx.getBean("RepoAdminService", RepoAdminService.class); + descriptorService = ctx.getBean("DescriptorService", DescriptorService.class); + personService = ctx.getBean("PersonService", PersonService.class); + authenticationService = ctx.getBean("AuthenticationService", MutableAuthenticationService.class); + AuthorityService authorityService = ctx.getBean("AuthorityService", AuthorityService.class); admin = AuthenticationUtil.getAdminUserName(); guest = AuthenticationUtil.getGuestUserName(); AuthenticationUtil.setFullyAuthenticatedUser(admin); + + user1_sysAdmin = RandomStringUtils.randomAlphabetic(10); + String user1_password = RandomStringUtils.randomAlphabetic(10); + createUser(user1_sysAdmin, user1_password); + authorityService.addAuthority(AuthorityServiceImpl.GROUP_ALFRESCO_SYSTEM_ADMINISTRATORS_AUTHORITY, user1_sysAdmin); + + user2 = RandomStringUtils.randomAlphabetic(10); + String user2_password = RandomStringUtils.randomAlphabetic(10); + createUser(user2, user2_password); } @Override protected void tearDown() throws Exception { super.tearDown(); + AuthenticationUtil.clearCurrentSecurityContext(); } public void testGetRestrictions() throws Exception @@ -227,6 +253,129 @@ public class AdminWebScriptTest extends BaseWebScriptTest assertTrue(property.getResidual()); } + public void testSysAdminAccess() throws Exception + { + AuthenticationUtil.clearCurrentSecurityContext(); + + String url = "/admin/admin-communitysummary"; + TestWebScriptServer.GetRequest req = new TestWebScriptServer.GetRequest(url); + + Response response = sendRequest(req, Status.STATUS_OK, user1_sysAdmin); + Document doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("System Summary")); + + // Super Admin should still have access to all the scripts + response = sendRequest(req, Status.STATUS_OK, admin); + doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("System Summary")); + } + + public void testSysAdminAccess_nodeBrowser() throws Exception + { + AuthenticationUtil.clearCurrentSecurityContext(); + + String nodeBrowserUrl = "/admin/admin-nodebrowser"; + + // test the get webscript of the node browser + TestWebScriptServer.GetRequest getReq = new TestWebScriptServer.GetRequest(nodeBrowserUrl); + // The node browser is only accessible to admins, not sysAdmins + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // test the post webscript of the node browser too + TestWebScriptServer.PostRequest postReq = new TestWebScriptServer.PostRequest(nodeBrowserUrl, "", + "multipart/form-data; boundary=----WebKitFormBoundaryjacWCXfJ3KjtRenA"); + // The node browser is only accessible to admins, not sysAdmins + sendRequest(postReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // Normal user shouldn't have access either + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user2); + + // Admin should have access to everything + Response response = sendRequest(getReq, Status.STATUS_OK, admin); + Document doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("Node Browser")); + } + + public void testSysAdminAccess_repoConsole() throws Exception + { + String repoConsoleUrl = "/admin/admin-repoconsole"; + + // test the get webscript of the repo console + TestWebScriptServer.GetRequest getReq = new TestWebScriptServer.GetRequest(repoConsoleUrl); + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // test the post webscript of the repo console too + TestWebScriptServer.PostRequest postReq = new TestWebScriptServer.PostRequest(repoConsoleUrl, "", + "multipart/form-data; boundary=----WebKitFormBoundaryjacWCXfJ3KjtRenA"); + sendRequest(postReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // Normal user shouldn't have access either + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user2); + + // Admin should have access to everything + Response response = sendRequest(getReq, Status.STATUS_OK, admin); + Document doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("Model and Messages Console")); + } + + public void testSysAdminAccess_tenantConsole() throws Exception + { + String tenantConsoleUrl = "/admin/admin-tenantconsole"; + // test the get webscript of the tenant console + TestWebScriptServer.GetRequest getReq = new TestWebScriptServer.GetRequest(tenantConsoleUrl); + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // test the post webscript of the tenant console too + TestWebScriptServer.PostRequest postReq = new TestWebScriptServer.PostRequest(tenantConsoleUrl, "", + "multipart/form-data; boundary=----WebKitFormBoundaryjacWCXfJ3KjtRenA"); + sendRequest(postReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // Normal user shouldn't have access either + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user2); + + // Admin should have access to everything + Response response = sendRequest(getReq, Status.STATUS_OK, admin); + Document doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("Tenant Admin Console")); + } + + public void testSysAdminAccess_workflowConsole() throws Exception + { + String workflowConsoleUrl = "/admin/admin-workflowconsole"; + // test the get webscript of the workflow console + TestWebScriptServer.GetRequest getReq = new TestWebScriptServer.GetRequest(workflowConsoleUrl); + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // test the post webscript of the workflow console too + TestWebScriptServer.PostRequest postReq = new TestWebScriptServer.PostRequest(workflowConsoleUrl, "", + "multipart/form-data; boundary=----WebKitFormBoundaryjacWCXfJ3KjtRenA"); + sendRequest(postReq, Status.STATUS_UNAUTHORIZED, user1_sysAdmin); + + // Normal user shouldn't have access either + sendRequest(getReq, Status.STATUS_UNAUTHORIZED, user2); + + // Admin should have access to everything + Response response = sendRequest(getReq, Status.STATUS_OK, admin); + Document doc = Jsoup.parse(response.getContentAsString()); + assertNotNull(doc.title()); + assertTrue(doc.title().contains("Workflow Admin Console")); + } + + public void testNonSysAdminAccess() throws Exception + { + AuthenticationUtil.clearCurrentSecurityContext(); + + String url = "/admin/admin-communitysummary"; + TestWebScriptServer.GetRequest req = new TestWebScriptServer.GetRequest(url); + + sendRequest(req, Status.STATUS_UNAUTHORIZED, user2); + } + private class SimplePropertyDefinition implements PropertyDefinition { private boolean isAspect; @@ -350,4 +499,19 @@ public class AdminWebScriptTest extends BaseWebScriptTest return null; } } + + private void createUser(String username, String password) + { + if (!personService.personExists(username)) + { + this.authenticationService.createAuthentication(username, password.toCharArray()); + + PropertyMap personProps = new PropertyMap(); + personProps.put(ContentModel.PROP_USERNAME, username); + personProps.put(ContentModel.PROP_FIRSTNAME, "testFirstName"); + personProps.put(ContentModel.PROP_LASTNAME, "testLastName"); + personProps.put(ContentModel.PROP_EMAIL, username + "@email.com"); + this.personService.createPerson(personProps); + } + } } From 64bf49cc22a0ba27282d8fabce2615b22ec3f16e Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 14:44:59 +0000 Subject: [PATCH 128/177] [maven-release-plugin][skip ci] prepare release 11.132 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 03954ad67b..c4902a4f21 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.132-SNAPSHOT + 11.132 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 807ce56227..43c4dfdb0e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.132-SNAPSHOT + 11.132 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index f0bdcead14..5df390cb28 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 30dbf33832..f8112a6898 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.132-SNAPSHOT + 11.132 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 404a4cfada..4bfa44200f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.132-SNAPSHOT + 11.132 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f4f26004c2..edb9289b47 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.132-SNAPSHOT + 11.132 diff --git a/amps/pom.xml b/amps/pom.xml index b7a31173d6..a06ebf23e0 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index f89cef5692..9284283e63 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.132-SNAPSHOT + 11.132 diff --git a/core/pom.xml b/core/pom.xml index da78f6a5cb..96c94cedda 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/data-model/pom.xml b/data-model/pom.xml index 5116fc520a..a522948c98 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 07fe48deae..66e8b031ea 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 962a55d73f..801f0a8ddd 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/pom.xml b/packaging/pom.xml index d1efc1f516..df40b18844 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 4c6bda638f..ca3c4c4b27 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index fc8a263f2d..4a79168b9d 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 3976ac2996..b1b3d62923 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 30b0f06f6e..b0cb942f31 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 2b88788b36..658f92b88d 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index fd504682ef..930a0dff2d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132-SNAPSHOT + 11.132 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 0b58a7570d..0f7bcd0d43 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132-SNAPSHOT + 11.132 diff --git a/pom.xml b/pom.xml index 96b88c4bd9..6364a5d15c 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.132-SNAPSHOT + 11.132 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.132 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 582dc42fa8..89e1e682a0 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 diff --git a/repository/pom.xml b/repository/pom.xml index 6f091fd86d..a379e84325 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132-SNAPSHOT + 11.132 From 2b8948b84b74b780ac4f23d834820f91d98a4fa4 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 2 Sep 2021 14:45:02 +0000 Subject: [PATCH 129/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index c4902a4f21..53f927f194 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.132 + 11.133-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 43c4dfdb0e..5a85a8a939 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.132 + 11.133-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 5df390cb28..b7d5e744f6 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index f8112a6898..7e2c25e752 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.132 + 11.133-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 4bfa44200f..f55fef14f1 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.132 + 11.133-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index edb9289b47..63deb37734 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.132 + 11.133-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index a06ebf23e0..e4d6529b8a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 9284283e63..dd6d373efb 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.132 + 11.133-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 96c94cedda..451759ca95 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index a522948c98..31f0fb2e28 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 66e8b031ea..067f40c36e 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 801f0a8ddd..2f20e6322d 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index df40b18844..b99ba48c2d 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index ca3c4c4b27..03b7396339 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 4a79168b9d..226767e5db 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index b1b3d62923..ec31153493 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index b0cb942f31..436cf767f2 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 658f92b88d..fdf65b659f 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 930a0dff2d..a11757d81d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.132 + 11.133-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 0f7bcd0d43..4c3eaf70fc 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.132 + 11.133-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6364a5d15c..6e381ea373 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.132 + 11.133-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.132 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 89e1e682a0..be2f3763bb 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a379e84325..c2a74efc76 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.132 + 11.133-SNAPSHOT From 25986d77d63ea0be8cf6cb5f2dd5c57d18dee566 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 7 Sep 2021 11:08:17 +0000 Subject: [PATCH 130/177] Bump commons-io from 2.8.0 to 2.11.0 (#597) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6e381ea373..b7a1bd958a 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,7 @@ 1.10.19 20210307 1.4-DBCP330 - 2.8.0 + 2.11.0 2.8.5 4.5.13 4.4.14 From d92844cebb32f60923f7f590cca17d9a1f8f5333 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 7 Sep 2021 11:57:05 +0000 Subject: [PATCH 131/177] [maven-release-plugin][skip ci] prepare release 11.133 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 53f927f194..38748d2646 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.133-SNAPSHOT + 11.133 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5a85a8a939..6fb6043dc0 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.133-SNAPSHOT + 11.133 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index b7d5e744f6..cef7affc1f 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 7e2c25e752..5e2fa977ed 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.133-SNAPSHOT + 11.133 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index f55fef14f1..83986d0829 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.133-SNAPSHOT + 11.133 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 63deb37734..5afa008e66 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.133-SNAPSHOT + 11.133 diff --git a/amps/pom.xml b/amps/pom.xml index e4d6529b8a..ae0c2b27c6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index dd6d373efb..1c709e195f 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.133-SNAPSHOT + 11.133 diff --git a/core/pom.xml b/core/pom.xml index 451759ca95..3062a66645 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/data-model/pom.xml b/data-model/pom.xml index 31f0fb2e28..af7bb70336 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 067f40c36e..45512b454d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 2f20e6322d..04f57b55ce 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/pom.xml b/packaging/pom.xml index b99ba48c2d..d04159422c 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 03b7396339..1e45aefc3d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 226767e5db..2780addc36 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ec31153493..3a00863bca 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 436cf767f2..629aabefc6 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index fdf65b659f..59cb5aa2e2 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index a11757d81d..a033be0978 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133-SNAPSHOT + 11.133 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 4c3eaf70fc..f828944e0e 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133-SNAPSHOT + 11.133 diff --git a/pom.xml b/pom.xml index b7a1bd958a..5c4c6ffc0d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.133-SNAPSHOT + 11.133 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.133 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index be2f3763bb..a1e1939405 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 diff --git a/repository/pom.xml b/repository/pom.xml index c2a74efc76..4bf3eaf42d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133-SNAPSHOT + 11.133 From ab0d65897ceb3a5676a3f3af96168baff5e62fb6 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 7 Sep 2021 11:57:08 +0000 Subject: [PATCH 132/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 38748d2646..23c0b16cee 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.133 + 11.134-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 6fb6043dc0..30c74a3f74 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.133 + 11.134-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index cef7affc1f..0267c50650 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5e2fa977ed..5bf8d0408b 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.133 + 11.134-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 83986d0829..bac2939310 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.133 + 11.134-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5afa008e66..06681b8189 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.133 + 11.134-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index ae0c2b27c6..bfecb0f7ce 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 1c709e195f..86d477bfc3 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.133 + 11.134-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 3062a66645..61cbdb8d82 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index af7bb70336..e4e6156860 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 45512b454d..06e196f839 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 04f57b55ce..3392fcfff3 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index d04159422c..68413aeac0 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 1e45aefc3d..b010a1b4c4 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 2780addc36..5556dbb7d8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 3a00863bca..8c73074e10 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 629aabefc6..e146f61ac8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 59cb5aa2e2..bcd4dd223a 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index a033be0978..6dccf2b8d5 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.133 + 11.134-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index f828944e0e..95e1efef24 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.133 + 11.134-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5c4c6ffc0d..11749286ed 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.133 + 11.134-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.133 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index a1e1939405..619f35a49a 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 4bf3eaf42d..9cf867e42e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.133 + 11.134-SNAPSHOT From 507c6b2ed861a1b6de0c8b36a706e2fda0a724ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBurek?= Date: Fri, 10 Sep 2021 11:13:53 +0200 Subject: [PATCH 133/177] ACS-1970 Switch to the alfresco/alfresco-base-tomcat:9.0.52-java-11-centos-7 base image (#693) --- packaging/docker-alfresco/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packaging/docker-alfresco/Dockerfile b/packaging/docker-alfresco/Dockerfile index aea5dadad5..430d0a89e2 100644 --- a/packaging/docker-alfresco/Dockerfile +++ b/packaging/docker-alfresco/Dockerfile @@ -1,6 +1,6 @@ # Fetch image based on Tomcat 9.0, Java 11 and Centos 8 # More infos about this image: https://github.com/Alfresco/alfresco-docker-base-tomcat -FROM alfresco/alfresco-base-tomcat:9.0.45-java-11-centos-8 +FROM alfresco/alfresco-base-tomcat:9.0.52-java-11-centos-7 # Set default docker_context. ARG resource_path=target @@ -65,12 +65,12 @@ RUN sed -i -e "s_log4j.appender.File.File\=alfresco.log_log4j.appender.File.File # fontconfig is required by Activiti worflow diagram generator # installing pinned dependencies as well -RUN yum install -y fontconfig-2.13.1-3.el8 \ - dejavu-fonts-common-2.35-7.el8 \ - fontpackages-filesystem-1.44-22.el8 \ - freetype-2.9.1-4.el8_3.1 \ - libpng-1.6.34-5.el8 \ - dejavu-sans-fonts-2.35-7.el8 && \ +RUN yum install -y fontconfig-2.13.0-4.3.el7 \ + dejavu-fonts-common-2.33-6.el7 \ + fontpackages-filesystem-1.44-8.el7 \ + freetype-2.8-14.el7_9.1 \ + libpng-1.5.13-8.el7 \ + dejavu-sans-fonts-2.33-6.el7 && \ yum clean all # The standard configuration is to have all Tomcat files owned by root with group GROUPNAME and whilst owner has read/write privileges, From a1649172327ca50cf5ac4721759b3cd943629e22 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 10 Sep 2021 10:39:55 +0000 Subject: [PATCH 134/177] [maven-release-plugin][skip ci] prepare release 11.134 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 23c0b16cee..74453212b0 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.134-SNAPSHOT + 11.134 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 30c74a3f74..b402b91662 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.134-SNAPSHOT + 11.134 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 0267c50650..79e59b9964 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5bf8d0408b..003aeaac00 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.134-SNAPSHOT + 11.134 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index bac2939310..e0d843cd8b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.134-SNAPSHOT + 11.134 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 06681b8189..60835d1fb5 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.134-SNAPSHOT + 11.134 diff --git a/amps/pom.xml b/amps/pom.xml index bfecb0f7ce..12c1ed8b7f 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 86d477bfc3..e00f59ad89 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.134-SNAPSHOT + 11.134 diff --git a/core/pom.xml b/core/pom.xml index 61cbdb8d82..ebfbf2e923 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/data-model/pom.xml b/data-model/pom.xml index e4e6156860..2cda6a3b7e 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 06e196f839..7fc7f77f9b 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 3392fcfff3..c89b51cb9f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/pom.xml b/packaging/pom.xml index 68413aeac0..579bbb73ed 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index b010a1b4c4..7ed5ec33b1 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 5556dbb7d8..d5d474b737 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 8c73074e10..2a36f352ad 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index e146f61ac8..a64faa30e7 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bcd4dd223a..06a973b5a7 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 6dccf2b8d5..fa133f9a2e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134-SNAPSHOT + 11.134 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 95e1efef24..3f5536ad6f 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134-SNAPSHOT + 11.134 diff --git a/pom.xml b/pom.xml index 11749286ed..904646bc87 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.134-SNAPSHOT + 11.134 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.134 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 619f35a49a..1883c82aa7 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 diff --git a/repository/pom.xml b/repository/pom.xml index 9cf867e42e..85fcd6aa93 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134-SNAPSHOT + 11.134 From 7ad35ac60d9b9860359a9947475a4d1bd5766a05 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 10 Sep 2021 10:39:58 +0000 Subject: [PATCH 135/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 74453212b0..f90f7fd37f 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.134 + 11.135-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b402b91662..cdebdb5d8e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.134 + 11.135-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 79e59b9964..7b3cca04c7 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 003aeaac00..0391ab7890 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.134 + 11.135-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e0d843cd8b..28e37b7b8d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.134 + 11.135-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 60835d1fb5..7395aad666 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.134 + 11.135-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 12c1ed8b7f..db444cdf26 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index e00f59ad89..39b43c64d6 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.134 + 11.135-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index ebfbf2e923..0b240dbccd 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 2cda6a3b7e..091586f3e4 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 7fc7f77f9b..9590acde68 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index c89b51cb9f..521bd26594 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 579bbb73ed..ed86fb3766 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 7ed5ec33b1..8c73446a61 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d5d474b737..784aedab96 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 2a36f352ad..fa77d57af7 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index a64faa30e7..21bdc26975 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 06a973b5a7..568799d733 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index fa133f9a2e..9bca04e60e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.134 + 11.135-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 3f5536ad6f..dd73aa58ac 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.134 + 11.135-SNAPSHOT diff --git a/pom.xml b/pom.xml index 904646bc87..b0eb5f3b8d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.134 + 11.135-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.134 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1883c82aa7..3d05904e4e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 85fcd6aa93..c1deb8ecb1 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.134 + 11.135-SNAPSHOT From cda3d11c7ecdd43f8a7623306fea7744d30b691d Mon Sep 17 00:00:00 2001 From: Sara Aspery Date: Mon, 13 Sep 2021 06:51:56 +0100 Subject: [PATCH 136/177] ACS-1981 fix DAUs status log --- .../alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java | 1 + .../repo/content/directurl/ContentStoreDirectUrlConfig.java | 1 + .../repo/content/directurl/SystemWideDirectUrlConfig.java | 1 + 3 files changed, 3 insertions(+) diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java index 3b231ae7e1..bfcace5dc3 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/directurl/RestApiDirectUrlConfig.java @@ -63,6 +63,7 @@ public class RestApiDirectUrlConfig extends AbstractDirectUrlConfig logger.error("Disabling REST API direct access URLs due to configuration error: " + ex.getMessage()); setEnabled(false); } + logger.info("REST API direct access URLs are " + (isEnabled() ? "enabled" : "disabled")); } /* Helper method to validate the REST API direct access url configuration settings */ diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java index 79494718bf..f6a390dbd6 100644 --- a/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/ContentStoreDirectUrlConfig.java @@ -73,6 +73,7 @@ public class ContentStoreDirectUrlConfig extends AbstractDirectUrlConfig logger.error("Disabling content store direct access URLs due to configuration error: " + ex.getMessage()); setEnabled(false); } + logger.info("Content store direct access URLs are " + (isEnabled() ? "enabled" : "disabled")); } /* Helper method to validate the content direct access url configuration settings */ diff --git a/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java b/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java index ecfa769e38..aa1a632742 100644 --- a/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java +++ b/repository/src/main/java/org/alfresco/repo/content/directurl/SystemWideDirectUrlConfig.java @@ -96,6 +96,7 @@ public class SystemWideDirectUrlConfig implements DirectUrlConfig logger.error("Disabling system-wide direct access URLs due to configuration error: " + ex.getMessage()); setEnabled(false); } + logger.info("System-wide direct access URLs are " + (isEnabled() ? "enabled" : "disabled")); } /* Helper method to validate the system-wide direct access url configuration settings */ From 6345c0a82501bffe5ff3c6347510ea0f41656bd8 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 13 Sep 2021 07:13:37 +0000 Subject: [PATCH 137/177] [maven-release-plugin][skip ci] prepare release 11.135 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index f90f7fd37f..e27418912c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.135-SNAPSHOT + 11.135 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index cdebdb5d8e..9cede4f04f 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.135-SNAPSHOT + 11.135 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 7b3cca04c7..e4297442d7 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 0391ab7890..bacb59a55a 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.135-SNAPSHOT + 11.135 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 28e37b7b8d..b34121f18f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.135-SNAPSHOT + 11.135 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7395aad666..5de7fe5448 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.135-SNAPSHOT + 11.135 diff --git a/amps/pom.xml b/amps/pom.xml index db444cdf26..6088765698 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 39b43c64d6..00dd8df8b9 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.135-SNAPSHOT + 11.135 diff --git a/core/pom.xml b/core/pom.xml index 0b240dbccd..1f4560eee2 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/data-model/pom.xml b/data-model/pom.xml index 091586f3e4..46188ef7fe 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 9590acde68..c37dcdb4c8 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 521bd26594..09ea4d3f81 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/pom.xml b/packaging/pom.xml index ed86fb3766..4190e9ebb3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 8c73446a61..0cbc2b127d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 784aedab96..86650deea2 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index fa77d57af7..1c4549a29d 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 21bdc26975..c048590df7 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 568799d733..5597e5e9de 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 9bca04e60e..46d2988e9f 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135-SNAPSHOT + 11.135 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index dd73aa58ac..e621884ef4 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135-SNAPSHOT + 11.135 diff --git a/pom.xml b/pom.xml index b0eb5f3b8d..2cd805f1e0 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.135-SNAPSHOT + 11.135 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.135 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 3d05904e4e..870db8ac78 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 diff --git a/repository/pom.xml b/repository/pom.xml index c1deb8ecb1..86166aa615 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135-SNAPSHOT + 11.135 From 9d24e083bb7edea91b42a4e004be7df687c22684 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 13 Sep 2021 07:13:40 +0000 Subject: [PATCH 138/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index e27418912c..79cd6e1f71 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.135 + 11.136-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 9cede4f04f..35bf3f18f6 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.135 + 11.136-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e4297442d7..3cb28a58a0 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index bacb59a55a..bea70e3098 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.135 + 11.136-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index b34121f18f..0c080c82c6 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.135 + 11.136-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5de7fe5448..c0028c52fa 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.135 + 11.136-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 6088765698..6ddb1de1e2 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 00dd8df8b9..c3fa98d10b 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.135 + 11.136-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 1f4560eee2..1f68531914 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 46188ef7fe..8cc231c8f6 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index c37dcdb4c8..4bff44f5a5 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 09ea4d3f81..7ebd412c1f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 4190e9ebb3..51f48907ea 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 0cbc2b127d..93d0a6cdb4 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 86650deea2..2e459205c5 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 1c4549a29d..bd38145476 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index c048590df7..57a833e5a9 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 5597e5e9de..5565174aa8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 46d2988e9f..83f746a94f 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.135 + 11.136-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index e621884ef4..e86a30d4a9 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.135 + 11.136-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2cd805f1e0..ac8387419f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.135 + 11.136-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.135 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 870db8ac78..ea18a1c695 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 86166aa615..c075194223 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.135 + 11.136-SNAPSHOT From 4cf3f77824827f4dbcd8a2f5c557c4e582f9b2de Mon Sep 17 00:00:00 2001 From: alandavis Date: Tue, 14 Sep 2021 14:15:46 +0100 Subject: [PATCH 139/177] Pick up api-explorer 7.1.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ac8387419f..9dc2cc09c6 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ 3.2.1.3 1.4.0.1 - 7.1.0-A4 + 7.1.0 2.2.0 42.2.20 From 53208f207cb752ca23c36cace9c2a28b3a7ff256 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 14 Sep 2021 14:27:24 +0000 Subject: [PATCH 140/177] [maven-release-plugin][skip ci] prepare release 11.136 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 79cd6e1f71..6145901094 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.136-SNAPSHOT + 11.136 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 35bf3f18f6..ed165cad81 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.136-SNAPSHOT + 11.136 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 3cb28a58a0..745563c9b8 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index bea70e3098..543e9722ce 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.136-SNAPSHOT + 11.136 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 0c080c82c6..39f3eb7bf5 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.136-SNAPSHOT + 11.136 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index c0028c52fa..1f1de74858 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.136-SNAPSHOT + 11.136 diff --git a/amps/pom.xml b/amps/pom.xml index 6ddb1de1e2..5547754602 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c3fa98d10b..63427cccb9 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.136-SNAPSHOT + 11.136 diff --git a/core/pom.xml b/core/pom.xml index 1f68531914..82fc819fdd 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/data-model/pom.xml b/data-model/pom.xml index 8cc231c8f6..5347776a59 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 4bff44f5a5..dc5a094f02 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 7ebd412c1f..23413fbc4c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/pom.xml b/packaging/pom.xml index 51f48907ea..22d755c9fb 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 93d0a6cdb4..062ffea365 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 2e459205c5..798a1a46b8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index bd38145476..aadc0a2735 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 57a833e5a9..c3c0ac5e06 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 5565174aa8..4926f321e0 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 83f746a94f..eac29acc79 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136-SNAPSHOT + 11.136 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index e86a30d4a9..a0043fea58 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136-SNAPSHOT + 11.136 diff --git a/pom.xml b/pom.xml index 9dc2cc09c6..a98cd35e34 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.136-SNAPSHOT + 11.136 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.136 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index ea18a1c695..131d2c4c55 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 diff --git a/repository/pom.xml b/repository/pom.xml index c075194223..d648397780 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136-SNAPSHOT + 11.136 From af849d21447675a7a105b38b8df330c9575de887 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Tue, 14 Sep 2021 14:27:27 +0000 Subject: [PATCH 141/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6145901094..cda3075ab4 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.136 + 11.137-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index ed165cad81..5a4733b9f4 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.136 + 11.137-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 745563c9b8..9120efe468 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 543e9722ce..f79fcc35ce 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.136 + 11.137-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 39f3eb7bf5..718b39ad5b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.136 + 11.137-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 1f1de74858..dcaee2a73a 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.136 + 11.137-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 5547754602..47debf0269 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 63427cccb9..43b78f9456 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.136 + 11.137-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 82fc819fdd..d5fa5062a1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 5347776a59..19fd095d8e 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index dc5a094f02..423ce89cfe 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 23413fbc4c..da117aace1 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 22d755c9fb..5460a71a0b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 062ffea365..97c1263c51 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 798a1a46b8..ddaa3d8459 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index aadc0a2735..c85100f5c9 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index c3c0ac5e06..0b46fa52c6 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 4926f321e0..8282d9ea75 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index eac29acc79..118dd45f9d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.136 + 11.137-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index a0043fea58..43f6ba83bb 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.136 + 11.137-SNAPSHOT diff --git a/pom.xml b/pom.xml index a98cd35e34..4d66eeebf1 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.136 + 11.137-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.136 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 131d2c4c55..53ef199c8e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index d648397780..bbb03a98a6 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.136 + 11.137-SNAPSHOT From 189011d52882d6fa6952150a98897dce5959f706 Mon Sep 17 00:00:00 2001 From: Miguel Ruiz Date: Wed, 15 Sep 2021 13:13:44 +0100 Subject: [PATCH 142/177] Bump up api-explorer to 7.1.0.1 (#694) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4d66eeebf1..df316194e4 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ 3.2.1.3 1.4.0.1 - 7.1.0 + 7.1.0.1 2.2.0 42.2.20 From ddde92ef212cf8c2cec384265389c98fd2cf5dcc Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 15 Sep 2021 14:51:29 +0000 Subject: [PATCH 143/177] [maven-release-plugin][skip ci] prepare release 11.137 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index cda3075ab4..01e431b7a9 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.137-SNAPSHOT + 11.137 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5a4733b9f4..815aae132f 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.137-SNAPSHOT + 11.137 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 9120efe468..21c451820a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index f79fcc35ce..5b9571e6dc 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.137-SNAPSHOT + 11.137 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 718b39ad5b..aa2c0656da 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.137-SNAPSHOT + 11.137 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index dcaee2a73a..3e2c731997 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.137-SNAPSHOT + 11.137 diff --git a/amps/pom.xml b/amps/pom.xml index 47debf0269..0e72e02eee 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 43b78f9456..bd30ecab5b 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.137-SNAPSHOT + 11.137 diff --git a/core/pom.xml b/core/pom.xml index d5fa5062a1..b62c53f39c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/data-model/pom.xml b/data-model/pom.xml index 19fd095d8e..0cae77e1b4 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 423ce89cfe..06e764e025 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index da117aace1..8aa5b9d3b3 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/pom.xml b/packaging/pom.xml index 5460a71a0b..a0606ee743 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 97c1263c51..dad748b7a0 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index ddaa3d8459..e6f243ab28 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c85100f5c9..acfd2f29ea 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0b46fa52c6..5bd5fe1f09 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 8282d9ea75..5dee7f35b7 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 118dd45f9d..c392dbe8bf 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137-SNAPSHOT + 11.137 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 43f6ba83bb..6f665e5162 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137-SNAPSHOT + 11.137 diff --git a/pom.xml b/pom.xml index df316194e4..0f3c772568 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.137-SNAPSHOT + 11.137 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.137 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 53ef199c8e..760a440951 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 diff --git a/repository/pom.xml b/repository/pom.xml index bbb03a98a6..349670334f 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137-SNAPSHOT + 11.137 From 078e461b71c402a0d8f6d90a6006c3d1f6f47500 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 15 Sep 2021 14:51:33 +0000 Subject: [PATCH 144/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 01e431b7a9..6a17d8100b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.137 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 815aae132f..f6771286c1 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.137 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 21c451820a..aa6f1c7a4b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5b9571e6dc..260ea66319 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.137 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index aa2c0656da..9f4c2beec7 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.137 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 3e2c731997..7b05b5ccd3 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.137 + 11.138-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 0e72e02eee..23eeda2602 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index bd30ecab5b..80f48c6f24 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.137 + 11.138-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index b62c53f39c..87bd990dc3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 0cae77e1b4..8a749c92cc 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 06e764e025..de38182d67 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 8aa5b9d3b3..41c09e727f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index a0606ee743..8a118e533b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index dad748b7a0..c8039c3228 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index e6f243ab28..76c29c7f50 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index acfd2f29ea..504a7a7876 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 5bd5fe1f09..0685d5aca8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 5dee7f35b7..f9b191e685 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index c392dbe8bf..0e4b6cec21 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.137 + 11.138-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6f665e5162..d4a8607b77 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.137 + 11.138-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0f3c772568..b23a804e07 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.137 + 11.138-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.137 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 760a440951..72d99b47fd 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 349670334f..3c78c3595e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.137 + 11.138-SNAPSHOT From 923261d9b91392f74c588ff812b6560657cab49f Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 12:05:32 +0530 Subject: [PATCH 145/177] Releasing version 11.138 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b23a804e07..292fb4bc41 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.138-SNAPSHOT + 11.138 pom Alfresco Community Repo Parent From 6f8507ebe291763f34288c74144883a24de73e14 Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 12:50:54 +0530 Subject: [PATCH 146/177] Releasing version 11.138 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6a17d8100b..452e2cbecf 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index f6771286c1..22260efafd 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index aa6f1c7a4b..8ae77bea8e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 260ea66319..a7b3f7c4c2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 9f4c2beec7..e4619d716f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7b05b5ccd3..07bd48be56 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/pom.xml b/amps/pom.xml index 23eeda2602..ca5757f498 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 80f48c6f24..724c914d3a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.138-SNAPSHOT + 11.138 diff --git a/core/pom.xml b/core/pom.xml index 87bd990dc3..4ef8b0d7c3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/data-model/pom.xml b/data-model/pom.xml index 8a749c92cc..b4f123a61b 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index de38182d67..cd840cc926 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 41c09e727f..d414946042 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/pom.xml b/packaging/pom.xml index 8a118e533b..7f5361c00b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c8039c3228..af77b2a517 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 76c29c7f50..7a6328bd57 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 504a7a7876..ea25b9e52a 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0685d5aca8..7a86cb216a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f9b191e685..1ae3b0e177 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0e4b6cec21..0c9a1c6e68 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d4a8607b77..6f85200a10 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 72d99b47fd..280ce5c1eb 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/repository/pom.xml b/repository/pom.xml index 3c78c3595e..a9f4c84f13 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 From d01e9ffbbc405c66d3205c30676baa448b740dae Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 15:08:32 +0530 Subject: [PATCH 147/177] Releasing version 11.138 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 292fb4bc41..7ec91e9509 100644 --- a/pom.xml +++ b/pom.xml @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.138 From 8dddf293d05f8a680bffa534590e8914cb21cba7 Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 16:36:27 +0530 Subject: [PATCH 148/177] Revert "Releasing version 11.138" This reverts commit d01e9ffbbc405c66d3205c30676baa448b740dae. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7ec91e9509..292fb4bc41 100644 --- a/pom.xml +++ b/pom.xml @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.138 + HEAD From 3875a84f74c29951e56a68ddeb3b0e167b1daca8 Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 16:36:28 +0530 Subject: [PATCH 149/177] Revert "Releasing version 11.138" This reverts commit 6f8507ebe291763f34288c74144883a24de73e14. --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 452e2cbecf..6a17d8100b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.138 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 22260efafd..f6771286c1 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8ae77bea8e..aa6f1c7a4b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a7b3f7c4c2..260ea66319 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e4619d716f..9f4c2beec7 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138 + 11.138-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 07bd48be56..7b05b5ccd3 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138 + 11.138-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index ca5757f498..23eeda2602 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 724c914d3a..80f48c6f24 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.138 + 11.138-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 4ef8b0d7c3..87bd990dc3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index b4f123a61b..8a749c92cc 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index cd840cc926..de38182d67 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d414946042..41c09e727f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 7f5361c00b..8a118e533b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index af77b2a517..c8039c3228 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 7a6328bd57..76c29c7f50 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ea25b9e52a..504a7a7876 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 7a86cb216a..0685d5aca8 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 1ae3b0e177..f9b191e685 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0c9a1c6e68..0e4b6cec21 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.138-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6f85200a10..d4a8607b77 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.138-SNAPSHOT diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 280ce5c1eb..72d99b47fd 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a9f4c84f13..3c78c3595e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.138-SNAPSHOT From b120a9658fd8c87740719233ea6df0aaa2aebb2e Mon Sep 17 00:00:00 2001 From: Suneet Gupta Date: Thu, 16 Sep 2021 16:36:30 +0530 Subject: [PATCH 150/177] Revert "Releasing version 11.138" This reverts commit 923261d9b91392f74c588ff812b6560657cab49f. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 292fb4bc41..b23a804e07 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.138 + 11.138-SNAPSHOT pom Alfresco Community Repo Parent From 43e528878e293e6872d879344b2971a32ec3821e Mon Sep 17 00:00:00 2001 From: Jamal Kaabi-Mofrad Date: Thu, 16 Sep 2021 12:27:20 +0100 Subject: [PATCH 151/177] ACS-1989: Fixed PostgreSQL patch. --- .../remove-alf_server-table.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/repository/src/main/resources/alfresco/dbscripts/upgrade/7.1.0/org.alfresco.repo.domain.dialect.PostgreSQLDialect/remove-alf_server-table.sql b/repository/src/main/resources/alfresco/dbscripts/upgrade/7.1.0/org.alfresco.repo.domain.dialect.PostgreSQLDialect/remove-alf_server-table.sql index 357afd3339..cb5679598b 100644 --- a/repository/src/main/resources/alfresco/dbscripts/upgrade/7.1.0/org.alfresco.repo.domain.dialect.PostgreSQLDialect/remove-alf_server-table.sql +++ b/repository/src/main/resources/alfresco/dbscripts/upgrade/7.1.0/org.alfresco.repo.domain.dialect.PostgreSQLDialect/remove-alf_server-table.sql @@ -12,6 +12,7 @@ ALTER TABLE alf_transaction DROP COLUMN IF EXISTS server_id; DROP TABLE IF EXISTS alf_server; +DROP SEQUENCE IF EXISTS alf_server_seq; -- -- Record script finish From c26f933c44475d97a4a46535edc20c5472f98d68 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 16 Sep 2021 12:38:20 +0000 Subject: [PATCH 152/177] [maven-release-plugin][skip ci] prepare release 11.138 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6a17d8100b..452e2cbecf 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index f6771286c1..22260efafd 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index aa6f1c7a4b..8ae77bea8e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 260ea66319..a7b3f7c4c2 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 9f4c2beec7..e4619d716f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7b05b5ccd3..07bd48be56 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138-SNAPSHOT + 11.138 diff --git a/amps/pom.xml b/amps/pom.xml index 23eeda2602..ca5757f498 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 80f48c6f24..724c914d3a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.138-SNAPSHOT + 11.138 diff --git a/core/pom.xml b/core/pom.xml index 87bd990dc3..4ef8b0d7c3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/data-model/pom.xml b/data-model/pom.xml index 8a749c92cc..b4f123a61b 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index de38182d67..cd840cc926 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 41c09e727f..d414946042 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/pom.xml b/packaging/pom.xml index 8a118e533b..7f5361c00b 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c8039c3228..af77b2a517 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 76c29c7f50..7a6328bd57 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 504a7a7876..ea25b9e52a 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 0685d5aca8..7a86cb216a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f9b191e685..1ae3b0e177 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0e4b6cec21..0c9a1c6e68 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138-SNAPSHOT + 11.138 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d4a8607b77..6f85200a10 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138-SNAPSHOT + 11.138 diff --git a/pom.xml b/pom.xml index b23a804e07..7ec91e9509 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.138-SNAPSHOT + 11.138 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.138 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 72d99b47fd..280ce5c1eb 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 diff --git a/repository/pom.xml b/repository/pom.xml index 3c78c3595e..a9f4c84f13 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138-SNAPSHOT + 11.138 From 6ecb019b84375465ac69d615fa903b7b5c6b0cb0 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 16 Sep 2021 12:38:24 +0000 Subject: [PATCH 153/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 452e2cbecf..2bf8d1e6b8 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.138 + 11.139-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 22260efafd..5231d44212 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138 + 11.139-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8ae77bea8e..c35d811b60 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a7b3f7c4c2..819fa361c0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.138 + 11.139-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index e4619d716f..7331a125a2 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138 + 11.139-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 07bd48be56..5376ea5a29 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.138 + 11.139-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index ca5757f498..5ed0e450a6 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 724c914d3a..a9f643ed15 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.138 + 11.139-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 4ef8b0d7c3..2118b524ea 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index b4f123a61b..cc7b485efd 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index cd840cc926..35b9b3a727 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d414946042..7036997f44 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 7f5361c00b..ac1c628af1 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index af77b2a517..54a75c667d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 7a6328bd57..42c13024a4 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index ea25b9e52a..4a930ee4c2 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 7a86cb216a..8cbda97fa4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 1ae3b0e177..f0fccedefe 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 0c9a1c6e68..64d110d753 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.138 + 11.139-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 6f85200a10..71321b8f1d 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.138 + 11.139-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7ec91e9509..8cc0caffe1 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.138 + 11.139-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.138 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 280ce5c1eb..4b6e7b3efa 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a9f4c84f13..fc690c93d1 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.138 + 11.139-SNAPSHOT From 5807e756bdd8758303d2a3894c87b07990d50a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Moreira?= Date: Thu, 23 Sep 2021 15:57:23 +0100 Subject: [PATCH 154/177] MNT-22428: configurable unsecure jsonp callback CMIS operation (#698) * MNT-22428: configurable unsecure jsonp callback CMIS operation --- .../opencmis/CMISServletDispatcher.java | 34 ++++++--- .../JsonpCallbackNotAllowedException.java | 49 +++++++++++++ .../rest-framework-messages.properties | 2 + .../alfresco/public-rest-context.xml | 1 + .../org/alfresco/rest/api/tests/TestCMIS.java | 72 +++++++++++++++++++ .../resources/alfresco/repository.properties | 3 + 6 files changed, 152 insertions(+), 9 deletions(-) create mode 100644 remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java diff --git a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java index d803a91951..268390a642 100644 --- a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java +++ b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java @@ -27,17 +27,14 @@ package org.alfresco.opencmis; import java.io.IOException; import java.io.InputStream; -import java.io.PrintWriter; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.EventListener; import java.util.Iterator; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Set; @@ -48,19 +45,17 @@ import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; import javax.servlet.ServletRegistration; import javax.servlet.SessionCookieConfig; import javax.servlet.SessionTrackingMode; import javax.servlet.descriptor.JspConfigDescriptor; -import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletResponse; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Endpoint; import org.alfresco.repo.tenant.TenantAdminService; +import org.alfresco.rest.framework.core.exceptions.JsonpCallbackNotAllowedException; import org.alfresco.service.descriptor.Descriptor; import org.alfresco.service.descriptor.DescriptorService; import org.apache.chemistry.opencmis.commons.enums.CmisVersion; @@ -69,7 +64,6 @@ import org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener; import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet; import org.springframework.extensions.webscripts.WebScriptRequest; import org.springframework.extensions.webscripts.WebScriptResponse; -import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime; /** * Dispatches OpenCMIS requests to a servlet e.g. the OpenCMIS AtomPub servlet. @@ -90,6 +84,8 @@ public abstract class CMISServletDispatcher implements CMISDispatcher protected CmisVersion cmisVersion; protected TenantAdminService tenantAdminService; + private boolean allowUnsecureCallbackJSONP; + private Set nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf public void setTenantAdminService(TenantAdminService tenantAdminService) @@ -151,7 +147,17 @@ public abstract class CMISServletDispatcher implements CMISDispatcher return this.currentDescriptor; } - + + public void setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP) + { + this.allowUnsecureCallbackJSONP = allowUnsecureCallbackJSONP; + } + + public boolean isAllowUnsecureCallbackJSONP() + { + return allowUnsecureCallbackJSONP; + } + public void init() { Endpoint endpoint = new Endpoint(getBinding(), version); @@ -219,12 +225,22 @@ public abstract class CMISServletDispatcher implements CMISDispatcher CMISHttpServletResponse httpResWrapper = getHttpResponse(res); CMISHttpServletRequest httpReqWrapper = getHttpRequest(req); - servlet.service(httpReqWrapper, httpResWrapper); + // check for "callback" query param + if (!allowUnsecureCallbackJSONP && httpReqWrapper.getParameter("callback") != null) + { + throw new JsonpCallbackNotAllowedException(); + } + servlet.service(httpReqWrapper, httpResWrapper); } catch(ServletException e) { throw new AlfrescoRuntimeException("", e); } + catch (JsonpCallbackNotAllowedException e) + { + res.setStatus(403); + res.getWriter().append(e.getMessage()); + } } /** diff --git a/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java b/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java new file mode 100644 index 0000000000..6408aabce8 --- /dev/null +++ b/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java @@ -0,0 +1,49 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.framework.core.exceptions; + +/** + * JSONP callback not allowed + * + * @author Vitor Moreira + */ +public class JsonpCallbackNotAllowedException extends ApiException +{ + private static final long serialVersionUID = 7198491358180044895L; + + public static String DEFAULT_MESSAGE_ID = "framework.exception.JsonpCallbackNotAllowed"; + + public JsonpCallbackNotAllowedException() + { + super(DEFAULT_MESSAGE_ID); + } + + public JsonpCallbackNotAllowedException(String msgId) + { + super(msgId); + } + +} diff --git a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties index 08562a979a..8f23a8784c 100644 --- a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties +++ b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties @@ -14,4 +14,6 @@ framework.exception.UnsupportedResourceOperation=The operation is unsupported framework.exception.DeletedResource=In this version of the REST API resource {0} has been deleted framework.exception.RequestEntityTooLarge=The file can't be uploaded because it's larger than the maximum upload size framework.exception.InsufficientStorage=The file upload exceeds the content storage allowance +framework.exception.JsonpCallbackNotAllowed=For security reasons the callback parameter is not allowed framework.no.stacktrace=For security reasons the stack trace is no longer displayed, but the property is kept for previous versions + diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index ad7ff7548e..e084df7a54 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1138,6 +1138,7 @@ + personIt = network1.getPersonIds().iterator(); + final String personId = personIt.next(); + assertNotNull(personId); + Person person = repoService.getPerson(personId); + assertNotNull(person); + + publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); + + // request with a callback parameter + HttpResponse response; + final Map params = Map.of("callback", ""); + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); + assertEquals(403, response.getStatusCode()); + + String exceptionMessage = I18NUtil.getMessage(JsonpCallbackNotAllowedException.DEFAULT_MESSAGE_ID, params); + assertTrue(response.getResponse().endsWith(exceptionMessage)); + + // request without a callback parameter + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); + assertEquals(200, response.getStatusCode()); + } + + /* + * MNT-22428 Check the return from http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root&callback= when jsonp callback is enabled + * + * @throws Exception + */ + @Test + public void testBrowserEnabledJSONPCallback() throws Exception + { + // enables unsecure callback jsonp + final PublicApiBrowserCMISDispatcher dispatcher = ctx.getBean(PublicApiBrowserCMISDispatcher.class); + dispatcher.setAllowUnsecureCallbackJSONP(true); + + final TestNetwork network1 = getTestFixture().getRandomNetwork(); + Iterator personIt = network1.getPersonIds().iterator(); + final String personId = personIt.next(); + assertNotNull(personId); + Person person = repoService.getPerson(personId); + assertNotNull(person); + + publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); + + // request with a callback parameter + HttpResponse response; + final Map params = Map.of("callback", "someFunction"); + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); + assertEquals(200, response.getStatusCode()); + + // request without a callback parameter + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); + assertEquals(200, response.getStatusCode()); + } + /** * REPO-2041 / MNT-16236 Upload via cmis binding atom and browser files with different maxContentSize */ diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index f4cb848b8e..3fcf92cca3 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -1308,3 +1308,6 @@ system.tempFileCleaner.maxTimeToRun= # Property to long running migration to remove alf_server in v7+ patch.db-V7.1.0-remove-alf_server-table system.remove-alf_server-table-from-db.ignored=true + +# When using JSONP, allows unsecure usage of "callback" functions. Disabled by default for security reasons +allow.unsecure.callback.jsonp=false From 79efa12b10344d9e92d74ceba4a99664a01ed5a2 Mon Sep 17 00:00:00 2001 From: Vitor Moreira Date: Fri, 24 Sep 2021 11:25:05 +0100 Subject: [PATCH 155/177] Revert "MNT-22428: configurable unsecure jsonp callback CMIS operation (#698)" This reverts commit 5807e756bdd8758303d2a3894c87b07990d50a17. --- .../opencmis/CMISServletDispatcher.java | 34 +++------ .../JsonpCallbackNotAllowedException.java | 49 ------------- .../rest-framework-messages.properties | 2 - .../alfresco/public-rest-context.xml | 1 - .../org/alfresco/rest/api/tests/TestCMIS.java | 72 ------------------- .../resources/alfresco/repository.properties | 3 - 6 files changed, 9 insertions(+), 152 deletions(-) delete mode 100644 remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java diff --git a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java index 268390a642..d803a91951 100644 --- a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java +++ b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java @@ -27,14 +27,17 @@ package org.alfresco.opencmis; import java.io.IOException; import java.io.InputStream; +import java.io.PrintWriter; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; +import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.EventListener; import java.util.Iterator; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.Set; @@ -45,17 +48,19 @@ import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; import javax.servlet.ServletRegistration; import javax.servlet.SessionCookieConfig; import javax.servlet.SessionTrackingMode; import javax.servlet.descriptor.JspConfigDescriptor; +import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletResponse; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Endpoint; import org.alfresco.repo.tenant.TenantAdminService; -import org.alfresco.rest.framework.core.exceptions.JsonpCallbackNotAllowedException; import org.alfresco.service.descriptor.Descriptor; import org.alfresco.service.descriptor.DescriptorService; import org.apache.chemistry.opencmis.commons.enums.CmisVersion; @@ -64,6 +69,7 @@ import org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener; import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet; import org.springframework.extensions.webscripts.WebScriptRequest; import org.springframework.extensions.webscripts.WebScriptResponse; +import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime; /** * Dispatches OpenCMIS requests to a servlet e.g. the OpenCMIS AtomPub servlet. @@ -84,8 +90,6 @@ public abstract class CMISServletDispatcher implements CMISDispatcher protected CmisVersion cmisVersion; protected TenantAdminService tenantAdminService; - private boolean allowUnsecureCallbackJSONP; - private Set nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf public void setTenantAdminService(TenantAdminService tenantAdminService) @@ -147,17 +151,7 @@ public abstract class CMISServletDispatcher implements CMISDispatcher return this.currentDescriptor; } - - public void setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP) - { - this.allowUnsecureCallbackJSONP = allowUnsecureCallbackJSONP; - } - - public boolean isAllowUnsecureCallbackJSONP() - { - return allowUnsecureCallbackJSONP; - } - + public void init() { Endpoint endpoint = new Endpoint(getBinding(), version); @@ -225,22 +219,12 @@ public abstract class CMISServletDispatcher implements CMISDispatcher CMISHttpServletResponse httpResWrapper = getHttpResponse(res); CMISHttpServletRequest httpReqWrapper = getHttpRequest(req); - // check for "callback" query param - if (!allowUnsecureCallbackJSONP && httpReqWrapper.getParameter("callback") != null) - { - throw new JsonpCallbackNotAllowedException(); - } - servlet.service(httpReqWrapper, httpResWrapper); + servlet.service(httpReqWrapper, httpResWrapper); } catch(ServletException e) { throw new AlfrescoRuntimeException("", e); } - catch (JsonpCallbackNotAllowedException e) - { - res.setStatus(403); - res.getWriter().append(e.getMessage()); - } } /** diff --git a/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java b/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java deleted file mode 100644 index 6408aabce8..0000000000 --- a/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * #%L - * Alfresco Remote API - * %% - * Copyright (C) 2005 - 2021 Alfresco Software Limited - * %% - * This file is part of the Alfresco software. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - * #L% - */ -package org.alfresco.rest.framework.core.exceptions; - -/** - * JSONP callback not allowed - * - * @author Vitor Moreira - */ -public class JsonpCallbackNotAllowedException extends ApiException -{ - private static final long serialVersionUID = 7198491358180044895L; - - public static String DEFAULT_MESSAGE_ID = "framework.exception.JsonpCallbackNotAllowed"; - - public JsonpCallbackNotAllowedException() - { - super(DEFAULT_MESSAGE_ID); - } - - public JsonpCallbackNotAllowedException(String msgId) - { - super(msgId); - } - -} diff --git a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties index 8f23a8784c..08562a979a 100644 --- a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties +++ b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties @@ -14,6 +14,4 @@ framework.exception.UnsupportedResourceOperation=The operation is unsupported framework.exception.DeletedResource=In this version of the REST API resource {0} has been deleted framework.exception.RequestEntityTooLarge=The file can't be uploaded because it's larger than the maximum upload size framework.exception.InsufficientStorage=The file upload exceeds the content storage allowance -framework.exception.JsonpCallbackNotAllowed=For security reasons the callback parameter is not allowed framework.no.stacktrace=For security reasons the stack trace is no longer displayed, but the property is kept for previous versions - diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index e084df7a54..ad7ff7548e 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1138,7 +1138,6 @@ - personIt = network1.getPersonIds().iterator(); - final String personId = personIt.next(); - assertNotNull(personId); - Person person = repoService.getPerson(personId); - assertNotNull(person); - - publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); - - // request with a callback parameter - HttpResponse response; - final Map params = Map.of("callback", ""); - response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); - assertEquals(403, response.getStatusCode()); - - String exceptionMessage = I18NUtil.getMessage(JsonpCallbackNotAllowedException.DEFAULT_MESSAGE_ID, params); - assertTrue(response.getResponse().endsWith(exceptionMessage)); - - // request without a callback parameter - response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); - assertEquals(200, response.getStatusCode()); - } - - /* - * MNT-22428 Check the return from http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root&callback= when jsonp callback is enabled - * - * @throws Exception - */ - @Test - public void testBrowserEnabledJSONPCallback() throws Exception - { - // enables unsecure callback jsonp - final PublicApiBrowserCMISDispatcher dispatcher = ctx.getBean(PublicApiBrowserCMISDispatcher.class); - dispatcher.setAllowUnsecureCallbackJSONP(true); - - final TestNetwork network1 = getTestFixture().getRandomNetwork(); - Iterator personIt = network1.getPersonIds().iterator(); - final String personId = personIt.next(); - assertNotNull(personId); - Person person = repoService.getPerson(personId); - assertNotNull(person); - - publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); - - // request with a callback parameter - HttpResponse response; - final Map params = Map.of("callback", "someFunction"); - response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); - assertEquals(200, response.getStatusCode()); - - // request without a callback parameter - response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); - assertEquals(200, response.getStatusCode()); - } - /** * REPO-2041 / MNT-16236 Upload via cmis binding atom and browser files with different maxContentSize */ diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index 3fcf92cca3..f4cb848b8e 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -1308,6 +1308,3 @@ system.tempFileCleaner.maxTimeToRun= # Property to long running migration to remove alf_server in v7+ patch.db-V7.1.0-remove-alf_server-table system.remove-alf_server-table-from-db.ignored=true - -# When using JSONP, allows unsecure usage of "callback" functions. Disabled by default for security reasons -allow.unsecure.callback.jsonp=false From bd7f2a4250df33da52d7c62422832d9282ece201 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 24 Sep 2021 12:21:28 +0000 Subject: [PATCH 156/177] [maven-release-plugin][skip ci] prepare release 11.139 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 2bf8d1e6b8..9a15f427ad 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.139-SNAPSHOT + 11.139 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 5231d44212..bba06e3465 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.139-SNAPSHOT + 11.139 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index c35d811b60..080574815f 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 819fa361c0..643c620afc 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.139-SNAPSHOT + 11.139 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 7331a125a2..5a5a8ba30f 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.139-SNAPSHOT + 11.139 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5376ea5a29..09a7578f1c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.139-SNAPSHOT + 11.139 diff --git a/amps/pom.xml b/amps/pom.xml index 5ed0e450a6..5224002294 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a9f643ed15..3d8ab039ed 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.139-SNAPSHOT + 11.139 diff --git a/core/pom.xml b/core/pom.xml index 2118b524ea..501dfbd375 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/data-model/pom.xml b/data-model/pom.xml index cc7b485efd..1e36c11934 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 35b9b3a727..40267324c6 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 7036997f44..d9108c0f69 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/pom.xml b/packaging/pom.xml index ac1c628af1..84ae04a9b1 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 54a75c667d..67e103a018 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 42c13024a4..d480e6ad45 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4a930ee4c2..6aa2aa8b39 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 8cbda97fa4..87383e9248 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f0fccedefe..d5354b4be2 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 64d110d753..8c047a158a 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139-SNAPSHOT + 11.139 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 71321b8f1d..1893ddef6a 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139-SNAPSHOT + 11.139 diff --git a/pom.xml b/pom.xml index 8cc0caffe1..196941ff3b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.139-SNAPSHOT + 11.139 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.139 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 4b6e7b3efa..99a23e6c23 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 diff --git a/repository/pom.xml b/repository/pom.xml index fc690c93d1..a7a0cb4210 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139-SNAPSHOT + 11.139 From 3185ecf6cbb2ba620c5ee19be125c96b67fb871b Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 24 Sep 2021 12:21:31 +0000 Subject: [PATCH 157/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 9a15f427ad..459de7af58 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.139 + 11.140-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index bba06e3465..b4cd6b7354 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.139 + 11.140-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 080574815f..d3d0647cc4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 643c620afc..3449860527 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.139 + 11.140-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 5a5a8ba30f..8832ccacb0 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.139 + 11.140-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 09a7578f1c..7855e26b86 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.139 + 11.140-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 5224002294..5c27619d4a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 3d8ab039ed..5da4d6e61c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.139 + 11.140-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 501dfbd375..a78e335796 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 1e36c11934..f4a367c343 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 40267324c6..f5ef4aeb2b 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d9108c0f69..c6640150fc 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 84ae04a9b1..d54d813760 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 67e103a018..9b1e886d50 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index d480e6ad45..fc5a6d1878 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 6aa2aa8b39..fdec6cf1f1 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 87383e9248..778713ff97 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index d5354b4be2..cc1faf7231 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8c047a158a..17c01ec202 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.139 + 11.140-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1893ddef6a..089e568dd4 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.139 + 11.140-SNAPSHOT diff --git a/pom.xml b/pom.xml index 196941ff3b..a7421efc25 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.139 + 11.140-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.139 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 99a23e6c23..1dfc6957b4 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a7a0cb4210..5d239a595e 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.139 + 11.140-SNAPSHOT From b9f449df57df98caeb38a849395a668b7a05fa09 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 27 Sep 2021 13:36:12 +0000 Subject: [PATCH 158/177] [maven-release-plugin][skip ci] prepare release 11.140 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 459de7af58..d6fcdbfaab 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.140-SNAPSHOT + 11.140 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b4cd6b7354..3c76654ce2 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.140-SNAPSHOT + 11.140 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index d3d0647cc4..76527da94f 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 3449860527..77af773c73 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.140-SNAPSHOT + 11.140 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8832ccacb0..f528f6a980 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.140-SNAPSHOT + 11.140 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7855e26b86..d5b2f719b6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.140-SNAPSHOT + 11.140 diff --git a/amps/pom.xml b/amps/pom.xml index 5c27619d4a..014a00031a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 5da4d6e61c..d7aaeae509 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.140-SNAPSHOT + 11.140 diff --git a/core/pom.xml b/core/pom.xml index a78e335796..fd29779aa5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/data-model/pom.xml b/data-model/pom.xml index f4a367c343..481638f387 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index f5ef4aeb2b..d1b0485e4d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index c6640150fc..e8c029eb28 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/pom.xml b/packaging/pom.xml index d54d813760..e82e9993a8 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 9b1e886d50..7b154406ee 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index fc5a6d1878..23743a9549 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index fdec6cf1f1..153b85ab97 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 778713ff97..42887410e4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index cc1faf7231..272bb86869 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 17c01ec202..1017cb6750 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140-SNAPSHOT + 11.140 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 089e568dd4..0e511323a1 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140-SNAPSHOT + 11.140 diff --git a/pom.xml b/pom.xml index a7421efc25..0bbf4e1c7f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.140-SNAPSHOT + 11.140 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 11.140 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 1dfc6957b4..fab755f0d6 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 diff --git a/repository/pom.xml b/repository/pom.xml index 5d239a595e..9bf22bc320 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140-SNAPSHOT + 11.140 From 559171a32ca37daaa24562d300616a6f1494c61d Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Mon, 27 Sep 2021 13:36:15 +0000 Subject: [PATCH 159/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index d6fcdbfaab..d4db016380 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.140 + 11.141-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 3c76654ce2..55520e0ea2 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.140 + 11.141-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 76527da94f..b27adb47dc 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 77af773c73..5e92f9a8c5 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.140 + 11.141-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index f528f6a980..46c914dadd 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.140 + 11.141-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index d5b2f719b6..0e88cb6d0e 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.140 + 11.141-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 014a00031a..686a674288 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index d7aaeae509..a1e680a0fe 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.140 + 11.141-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index fd29779aa5..4e9f4eab54 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 481638f387..2208de9392 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index d1b0485e4d..36cb18d90e 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index e8c029eb28..3d91066e9b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index e82e9993a8..cf39972354 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 7b154406ee..a1ae41f1a7 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 23743a9549..97f3764a8a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 153b85ab97..a61364bd45 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 42887410e4..f181afe0f0 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 272bb86869..ec89a84bd0 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 1017cb6750..7248e2fdbd 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.140 + 11.141-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 0e511323a1..e8f4a731e4 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.140 + 11.141-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0bbf4e1c7f..ab48e8852b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.140 + 11.141-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 11.140 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index fab755f0d6..895070f792 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 9bf22bc320..a23a6da653 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.140 + 11.141-SNAPSHOT From 507161a1d04ce57d64961f1577ddbd336d8ce3de Mon Sep 17 00:00:00 2001 From: alandavis Date: Tue, 28 Sep 2021 22:56:03 +0100 Subject: [PATCH 160/177] Get master ready for 7.2.0 development --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- repository/src/main/resources/alfresco/repository.properties | 2 +- 24 files changed, 25 insertions(+), 25 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index d4db016380..3550bfa845 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 55520e0ea2..42a6e00e7d 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index b27adb47dc..d21cf8c874 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5e92f9a8c5..2d096e257d 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 46c914dadd..832020b5b5 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0e88cb6d0e..0678f444e4 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 686a674288..71a5ce1f9d 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index a1e680a0fe..91ded15b5c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 4e9f4eab54..2c3da0a4fd 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 2208de9392..84da57c9c1 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 36cb18d90e..27a26d864d 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 3d91066e9b..e53c15e364 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index cf39972354..69ba88bda3 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index a1ae41f1a7..4913bca4f7 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 97f3764a8a..35e7a3572e 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index a61364bd45..f18b3418ce 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index f181afe0f0..5e357689f7 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index ec89a84bd0..e6b14d9522 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 7248e2fdbd..ad6b9936e9 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index e8f4a731e4..5513266b8e 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index ab48e8852b..58fa2f31a3 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT pom Alfresco Community Repo Parent @@ -23,7 +23,7 @@ 7 - 1 + 2 0 ${acs.version.major}.0.0 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 895070f792..465d4d39cf 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a23a6da653..790f27b8a7 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 11.141-SNAPSHOT + 14.2-SNAPSHOT diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index f4cb848b8e..0f4f2d4c8d 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -3,7 +3,7 @@ repository.name=Main Repository # Schema number -version.schema=15002 +version.schema=16000 # Directory configuration From 52e71719d1cac3355037e774f74031dbb0243d71 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 04:44:37 +0000 Subject: [PATCH 161/177] [maven-release-plugin][skip ci] prepare release 14.2 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 3550bfa845..02f7726c92 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.2-SNAPSHOT + 14.2 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 42a6e00e7d..b45430e3f0 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.2-SNAPSHOT + 14.2 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index d21cf8c874..57ebd0bd1a 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 2d096e257d..ede73f26e0 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.2-SNAPSHOT + 14.2 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 832020b5b5..1b5aacd821 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.2-SNAPSHOT + 14.2 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 0678f444e4..7aba5e5689 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.2-SNAPSHOT + 14.2 diff --git a/amps/pom.xml b/amps/pom.xml index 71a5ce1f9d..8167605c2a 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 91ded15b5c..28172a45bc 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.2-SNAPSHOT + 14.2 diff --git a/core/pom.xml b/core/pom.xml index 2c3da0a4fd..a7670f8025 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/data-model/pom.xml b/data-model/pom.xml index 84da57c9c1..a5f2b85c67 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 27a26d864d..0a1d1c650a 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index e53c15e364..826ed3086c 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/pom.xml b/packaging/pom.xml index 69ba88bda3..8dd5513c57 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 4913bca4f7..3f2bb8f572 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 35e7a3572e..c51db6366a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index f18b3418ce..5662ed6991 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 5e357689f7..fad2da7a59 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index e6b14d9522..081a69dd98 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index ad6b9936e9..7a792f85c9 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2-SNAPSHOT + 14.2 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 5513266b8e..1ff90a62a5 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2-SNAPSHOT + 14.2 diff --git a/pom.xml b/pom.xml index 58fa2f31a3..2bba0a544d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.2-SNAPSHOT + 14.2 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 14.2 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 465d4d39cf..47d97a23ca 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 diff --git a/repository/pom.xml b/repository/pom.xml index 790f27b8a7..8368467268 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2-SNAPSHOT + 14.2 From 4db8ca16e1b8c3b784919cdfbe1bc1676e7e178d Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 04:44:40 +0000 Subject: [PATCH 162/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 02f7726c92..47ec34a95c 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.2 + 14.3-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index b45430e3f0..622f49da4e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.2 + 14.3-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 57ebd0bd1a..5bdc246215 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index ede73f26e0..5cb65a3fa9 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.2 + 14.3-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 1b5aacd821..8fbefdccf9 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.2 + 14.3-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 7aba5e5689..ae56fff15f 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.2 + 14.3-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 8167605c2a..1f9a15fc38 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 28172a45bc..6d3a12aeac 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.2 + 14.3-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index a7670f8025..9c41eadb73 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index a5f2b85c67..f5f0916864 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 0a1d1c650a..107e8366e0 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 826ed3086c..9a17f17554 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 8dd5513c57..633887ec18 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 3f2bb8f572..29677af96b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index c51db6366a..cd6aa8d909 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 5662ed6991..c8ee97c890 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index fad2da7a59..1f466c517e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 081a69dd98..aa096d824c 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 7a792f85c9..8f34d96fbd 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.2 + 14.3-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1ff90a62a5..61d7fd5dd8 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.2 + 14.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2bba0a544d..37ff8a8376 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.2 + 14.3-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 14.2 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 47d97a23ca..e1c3efaf50 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 8368467268..511bc200b3 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.2 + 14.3-SNAPSHOT From 85a3c71849d10f9f2fe4bcf3ef83b25ef0779cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBurek?= Date: Wed, 29 Sep 2021 10:50:54 +0200 Subject: [PATCH 163/177] MNT-22611 - Fix bulk import parameters parsing (#699) --- ...AbstractBulkFileSystemImportWebScript.java | 215 ++++++++++++++- .../copy/BulkFilesystemImportWebScript.java | 179 +------------ .../org/alfresco/AppContext01TestSuite.java | 1 + .../BulkImportParametersExtractorTest.java | 252 ++++++++++++++++++ 4 files changed, 478 insertions(+), 169 deletions(-) create mode 100644 remote-api/src/test/java/org/alfresco/repo/web/scripts/bulkimport/BulkImportParametersExtractorTest.java diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/AbstractBulkFileSystemImportWebScript.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/AbstractBulkFileSystemImportWebScript.java index 3e98a9d142..08eb24db23 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/AbstractBulkFileSystemImportWebScript.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/AbstractBulkFileSystemImportWebScript.java @@ -30,8 +30,19 @@ import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Arrays; import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.OptionalInt; +import java.util.function.Function; +import java.util.function.Supplier; + +import com.google.common.primitives.Ints; import org.alfresco.repo.bulkimport.BulkFilesystemImporter; +import org.alfresco.repo.bulkimport.BulkImportParameters; +import org.alfresco.repo.bulkimport.NodeImporter; +import org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter; import org.alfresco.repo.model.Repository; import org.alfresco.service.cmr.model.FileFolderService; import org.alfresco.service.cmr.model.FileInfo; @@ -39,8 +50,12 @@ import org.alfresco.service.cmr.model.FileNotFoundException; import org.alfresco.service.cmr.repository.NodeRef; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.springframework.extensions.surf.util.I18NUtil; +import org.springframework.extensions.webscripts.Cache; import org.springframework.extensions.webscripts.DeclarativeWebScript; +import org.springframework.extensions.webscripts.Status; import org.springframework.extensions.webscripts.WebScriptException; +import org.springframework.extensions.webscripts.WebScriptRequest; /** * contains common fields and methods for the import web scripts. @@ -60,10 +75,10 @@ public class AbstractBulkFileSystemImportWebScript extends DeclarativeWebScript // Web scripts parameters (common) protected static final String PARAMETER_REPLACE_EXISTING = "replaceExisting"; protected static final String PARAMETER_EXISTING_FILE_MODE = "existingFileMode"; - protected static final String PARAMETER_VALUE_REPLACE_EXISTING = "replaceExisting"; + protected static final String PARAMETER_VALUE_REPLACE_EXISTING = "true"; protected static final String PARAMETER_SOURCE_DIRECTORY = "sourceDirectory"; protected static final String PARAMETER_DISABLE_RULES = "disableRules"; - protected static final String PARAMETER_VALUE_DISABLE_RULES = "disableRules"; + protected static final String PARAMETER_VALUE_DISABLE_RULES = "true"; protected static final String IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY = "importInProgress"; protected static final String IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY ="bfsit.error.importAlreadyInProgress"; @@ -75,7 +90,7 @@ public class AbstractBulkFileSystemImportWebScript extends DeclarativeWebScript protected Repository repository; protected volatile boolean importInProgress; - + protected NodeRef getTargetNodeRef(String targetNodeRefStr, String targetPath) throws FileNotFoundException { NodeRef targetNodeRef; @@ -219,4 +234,198 @@ public class AbstractBulkFileSystemImportWebScript extends DeclarativeWebScript this.repository = repository; } + protected class MultithreadedImportWebScriptLogic + { + private final MultiThreadedBulkFilesystemImporter bulkImporter; + private final Supplier nodeImporterFactory; + private final WebScriptRequest request; + private final Status status; + private final Cache cache; + + public MultithreadedImportWebScriptLogic(MultiThreadedBulkFilesystemImporter bulkImporter, Supplier nodeImporterFactory, WebScriptRequest request, Status status, Cache cache) + { + this.bulkImporter = Objects.requireNonNull(bulkImporter); + this.nodeImporterFactory = Objects.requireNonNull(nodeImporterFactory); + this.request = Objects.requireNonNull(request); + this.status = Objects.requireNonNull(status); + this.cache = Objects.requireNonNull(cache); + } + + public Map executeImport() + { + Map model = new HashMap<>(); + cache.setNeverCache(true); + String targetPath = null; + + try + { + targetPath = request.getParameter(PARAMETER_TARGET_PATH); + if (isRunning()) + { + model.put(IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY, I18NUtil.getMessage(IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY)); + return model; + } + + final BulkImportParameters bulkImportParameters = getBulkImportParameters(); + final NodeImporter nodeImporter = nodeImporterFactory.get(); + + bulkImporter.asyncBulkImport(bulkImportParameters, nodeImporter); + + waitForImportToBegin(); + + // redirect to the status Web Script + status.setCode(Status.STATUS_MOVED_TEMPORARILY); + status.setRedirect(true); + status.setLocation(request.getServiceContextPath() + WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS); + } + catch (WebScriptException | IllegalArgumentException e) + { + status.setCode(Status.STATUS_BAD_REQUEST, e.getMessage()); + status.setRedirect(true); + } + catch (FileNotFoundException fnfe) + { + status.setCode(Status.STATUS_BAD_REQUEST,"The repository path '" + targetPath + "' does not exist !"); + status.setRedirect(true); + } + catch (Throwable t) + { + throw new WebScriptException(Status.STATUS_INTERNAL_SERVER_ERROR, buildTextMessage(t), t); + } + + return model; + } + + private void waitForImportToBegin() throws InterruptedException + { + // ACE-3047 fix, since bulk import is started asynchronously there is a chance that client + // will get into the status page before import is actually started. + // In this case wrong information (for previous import) will be displayed. + // So lets ensure that import started before redirecting client to status page. + int i = 0; + while (!bulkImporter.getStatus().inProgress() && i < 10) + { + Thread.sleep(100); + i++; + } + } + + private BulkImportParameters getBulkImportParameters() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = new BulkImportParametersExtractor(request::getParameter, + AbstractBulkFileSystemImportWebScript.this::getTargetNodeRef, + bulkImporter.getDefaultBatchSize(), + bulkImporter.getDefaultNumThreads()); + return extractor.extract(); + } + + private boolean isRunning() + { + return bulkImporter.getStatus().inProgress(); + } + } + + protected static class BulkImportParametersExtractor + { + private final Function paramsProvider; + private final NodeRefCreator nodeRefCreator; + private final int defaultBatchSize; + private final int defaultNumThreads; + + public BulkImportParametersExtractor(final Function paramsProvider, final NodeRefCreator nodeRefCreator, + final int defaultBatchSize, final int defaultNumThreads) + { + this.paramsProvider = Objects.requireNonNull(paramsProvider); + this.nodeRefCreator = Objects.requireNonNull(nodeRefCreator); + this.defaultBatchSize = defaultBatchSize; + this.defaultNumThreads = defaultNumThreads; + } + + public BulkImportParameters extract() throws FileNotFoundException + { + BulkImportParameters result = new BulkImportParameters(); + + result.setTarget(getTargetNodeRef()); + setExistingFileMode(result); + result.setNumThreads(getOptionalPositiveInteger(PARAMETER_NUM_THREADS).orElse(defaultNumThreads)); + result.setBatchSize(getOptionalPositiveInteger(PARAMETER_BATCH_SIZE).orElse(defaultBatchSize)); + setDisableRules(result); + + return result; + } + + private void setExistingFileMode(BulkImportParameters params) + { + String replaceExistingStr = getParamStringValue(PARAMETER_REPLACE_EXISTING); + String existingFileModeStr = getParamStringValue(PARAMETER_EXISTING_FILE_MODE); + + if (!isNullOrEmpty(replaceExistingStr) && !isNullOrEmpty(existingFileModeStr)) + { + // Check that we haven't had both the deprecated and new (existingFileMode) + // parameters supplied. + throw new IllegalStateException( + String.format("Only one of these parameters may be used, not both: %s, %s", + PARAMETER_REPLACE_EXISTING, + PARAMETER_EXISTING_FILE_MODE)); + } + + if (!isNullOrEmpty(existingFileModeStr)) + { + params.setExistingFileMode(BulkImportParameters.ExistingFileMode.valueOf(existingFileModeStr)); + } + else + { + params.setReplaceExisting(PARAMETER_VALUE_REPLACE_EXISTING.equals(replaceExistingStr)); + } + } + + private void setDisableRules(final BulkImportParameters params) + { + final String disableRulesStr = getParamStringValue(PARAMETER_DISABLE_RULES); + params.setDisableRulesService(!isNullOrEmpty(disableRulesStr) && PARAMETER_VALUE_DISABLE_RULES.equals(disableRulesStr)); + } + + private NodeRef getTargetNodeRef() throws FileNotFoundException + { + String targetNodeRefStr = getParamStringValue(PARAMETER_TARGET_NODEREF); + String targetPath = getParamStringValue(PARAMETER_TARGET_PATH); + return nodeRefCreator.fromNodeRefAndPath(targetNodeRefStr, targetPath); + } + + private OptionalInt getOptionalPositiveInteger(final String paramName) + { + final String strValue = getParamStringValue(paramName); + if (isNullOrEmpty(strValue)) + { + return OptionalInt.empty(); + } + + final Integer asInt = Ints.tryParse(strValue); + if (asInt == null || asInt < 1) + { + throw new WebScriptException("Error: parameter '" + paramName + "' must be an integer > 0."); + } + + return OptionalInt.of(asInt); + } + + private String getParamStringValue(String paramName) + { + Objects.requireNonNull(paramName); + + return paramsProvider.apply(paramName); + } + + private boolean isNullOrEmpty(String str) + { + return str == null || str.trim().length() == 0; + } + + @FunctionalInterface + protected interface NodeRefCreator + { + NodeRef fromNodeRefAndPath(String nodeRef, String path) throws FileNotFoundException; + } + } + } \ No newline at end of file diff --git a/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/copy/BulkFilesystemImportWebScript.java b/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/copy/BulkFilesystemImportWebScript.java index ef7461193d..a0b692422a 100644 --- a/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/copy/BulkFilesystemImportWebScript.java +++ b/remote-api/src/main/java/org/alfresco/repo/web/scripts/bulkimport/copy/BulkFilesystemImportWebScript.java @@ -27,17 +27,12 @@ package org.alfresco.repo.web.scripts.bulkimport.copy; import java.io.File; -import java.util.HashMap; import java.util.Map; -import org.alfresco.repo.bulkimport.BulkImportParameters; import org.alfresco.repo.bulkimport.NodeImporter; import org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter; import org.alfresco.repo.bulkimport.impl.StreamingNodeImporterFactory; import org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript; -import org.alfresco.service.cmr.model.FileNotFoundException; -import org.alfresco.service.cmr.repository.NodeRef; -import org.springframework.extensions.surf.util.I18NUtil; import org.springframework.extensions.webscripts.Cache; import org.springframework.extensions.webscripts.Status; import org.springframework.extensions.webscripts.WebScriptException; @@ -69,170 +64,22 @@ public class BulkFilesystemImportWebScript extends AbstractBulkFileSystemImportW @Override protected Map executeImpl(final WebScriptRequest request, final Status status, final Cache cache) { - Map model = new HashMap(); - String targetNodeRefStr = null; - String targetPath = null; - String sourceDirectoryStr = null; - @Deprecated String replaceExistingStr = null; - String existingFileModeStr = null; - String batchSizeStr = null; - String numThreadsStr = null; - String disableRulesStr = null; + final MultithreadedImportWebScriptLogic importLogic = new MultithreadedImportWebScriptLogic(bulkImporter, + () -> createNodeImporter(request), request, status, cache); + return importLogic.executeImport(); + } - cache.setNeverCache(true); - - try + private NodeImporter createNodeImporter(WebScriptRequest request) + { + final String sourceDirectoryStr = request.getParameter(PARAMETER_SOURCE_DIRECTORY); + if (sourceDirectoryStr == null || sourceDirectoryStr.trim().length() == 0) { - if(!bulkImporter.getStatus().inProgress()) - { - NodeRef targetNodeRef = null; - File sourceDirectory = null; - boolean replaceExisting = false; - BulkImportParameters.ExistingFileMode existingFileMode = null; - int batchSize = bulkImporter.getDefaultBatchSize(); - int numThreads = bulkImporter.getDefaultNumThreads(); - boolean disableRules = false; - - // Retrieve, validate and convert parameters - targetNodeRefStr = request.getParameter(PARAMETER_TARGET_NODEREF); - targetPath = request.getParameter(PARAMETER_TARGET_PATH); - sourceDirectoryStr = request.getParameter(PARAMETER_SOURCE_DIRECTORY); - replaceExistingStr = request.getParameter(PARAMETER_REPLACE_EXISTING); - existingFileModeStr = request.getParameter(PARAMETER_EXISTING_FILE_MODE); - - batchSizeStr = request.getParameter(PARAMETER_BATCH_SIZE); - numThreadsStr = request.getParameter(PARAMETER_NUM_THREADS); - disableRulesStr = request.getParameter(PARAMETER_DISABLE_RULES); - - targetNodeRef = getTargetNodeRef(targetNodeRefStr, targetPath); - - if (sourceDirectoryStr == null || sourceDirectoryStr.trim().length() == 0) - { - throw new RuntimeException("Error: mandatory parameter '" + PARAMETER_SOURCE_DIRECTORY + "' was not provided."); - } - - sourceDirectory = new File(sourceDirectoryStr.trim()); - - if (replaceExistingStr != null && existingFileModeStr != null) - { - // Check that we haven't had both the deprecated and new (existingFileMode) - // parameters supplied. - throw new IllegalStateException( - String.format("Only one of these parameters may be used, not both: %s, %s", - PARAMETER_REPLACE_EXISTING, - PARAMETER_EXISTING_FILE_MODE)); - } - - if (replaceExistingStr != null && replaceExistingStr.trim().length() > 0) - { - replaceExisting = PARAMETER_VALUE_REPLACE_EXISTING.equals(replaceExistingStr); - } - - if (existingFileModeStr != null && existingFileModeStr.trim().length() > 0) - { - existingFileMode = BulkImportParameters.ExistingFileMode.valueOf(existingFileModeStr); - } - - if (disableRulesStr != null && disableRulesStr.trim().length() > 0) - { - disableRules = PARAMETER_VALUE_DISABLE_RULES.equals(disableRulesStr); - } - - // Initiate the import - NodeImporter nodeImporter = nodeImporterFactory.getNodeImporter(sourceDirectory); - BulkImportParameters bulkImportParameters = new BulkImportParameters(); - - if (numThreadsStr != null && numThreadsStr.trim().length() > 0) - { - try - { - numThreads = Integer.parseInt(numThreadsStr); - if(numThreads < 1) - { - throw new RuntimeException("Error: parameter '" + PARAMETER_NUM_THREADS + "' must be an integer > 0."); - } - bulkImportParameters.setNumThreads(numThreads); - } - catch(NumberFormatException e) - { - throw new RuntimeException("Error: parameter '" + PARAMETER_NUM_THREADS + "' must be an integer > 0."); - } - } - - if (batchSizeStr != null && batchSizeStr.trim().length() > 0) - { - try - { - batchSize = Integer.parseInt(batchSizeStr); - if(batchSize < 1) - { - throw new RuntimeException("Error: parameter '" + PARAMETER_BATCH_SIZE + "' must be an integer > 0."); - } - bulkImportParameters.setBatchSize(batchSize); - } - catch(NumberFormatException e) - { - throw new RuntimeException("Error: parameter '" + PARAMETER_BATCH_SIZE + "' must be an integer > 0."); - } - } - - if (existingFileMode != null) - { - bulkImportParameters.setExistingFileMode(existingFileMode); - } - else - { - // Fall back to the old/deprecated way. - bulkImportParameters.setReplaceExisting(replaceExisting); - } - - bulkImportParameters.setTarget(targetNodeRef); - bulkImportParameters.setDisableRulesService(disableRules); - - bulkImporter.asyncBulkImport(bulkImportParameters, nodeImporter); - - // ACE-3047 fix, since bulk import is started asynchronously there is a chance that client - // will get into the status page before import is actually started. - // In this case wrong information (for previous import) will be displayed. - // So lets ensure that import started before redirecting client to status page. - int i = 0; - while (!bulkImporter.getStatus().inProgress() && i < 10) - { - Thread.sleep(100); - i++; - } - - // redirect to the status Web Script - status.setCode(Status.STATUS_MOVED_TEMPORARILY); - status.setRedirect(true); - status.setLocation(request.getServiceContextPath() + WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS); - } - else - { - model.put(IMPORT_ALREADY_IN_PROGRESS_MODEL_KEY, I18NUtil.getMessage(IMPORT_ALREADY_IN_PROGRESS_ERROR_KEY)); - } + throw new WebScriptException("Error: mandatory parameter '" + PARAMETER_SOURCE_DIRECTORY + "' was not provided."); } - catch (WebScriptException wse) - { - status.setCode(Status.STATUS_BAD_REQUEST, wse.getMessage()); - status.setRedirect(true); - } - catch (FileNotFoundException fnfe) - { - status.setCode(Status.STATUS_BAD_REQUEST,"The repository path '" + targetPath + "' does not exist !"); - status.setRedirect(true); - } - catch(IllegalArgumentException iae) - { - status.setCode(Status.STATUS_BAD_REQUEST,iae.getMessage()); - status.setRedirect(true); - } - catch (Throwable t) - { - throw new WebScriptException(Status.STATUS_INTERNAL_SERVER_ERROR, buildTextMessage(t), t); - } - - return model; + + final File sourceDirectory = new File(sourceDirectoryStr.trim()); + + return nodeImporterFactory.getNodeImporter(sourceDirectory); } } diff --git a/remote-api/src/test/java/org/alfresco/AppContext01TestSuite.java b/remote-api/src/test/java/org/alfresco/AppContext01TestSuite.java index 699b999070..5a857d0e9d 100644 --- a/remote-api/src/test/java/org/alfresco/AppContext01TestSuite.java +++ b/remote-api/src/test/java/org/alfresco/AppContext01TestSuite.java @@ -42,6 +42,7 @@ import org.junit.runners.Suite; org.alfresco.rest.api.tests.TestPublicApiAtomPub10TCK.class, org.alfresco.rest.api.tests.TestPublicApiAtomPub11TCK.class, org.alfresco.rest.api.tests.TestPublicApiBrowser11TCK.class, + org.alfresco.repo.web.scripts.bulkimport.BulkImportParametersExtractorTest.class }) public class AppContext01TestSuite { diff --git a/remote-api/src/test/java/org/alfresco/repo/web/scripts/bulkimport/BulkImportParametersExtractorTest.java b/remote-api/src/test/java/org/alfresco/repo/web/scripts/bulkimport/BulkImportParametersExtractorTest.java new file mode 100644 index 0000000000..c01089cf1c --- /dev/null +++ b/remote-api/src/test/java/org/alfresco/repo/web/scripts/bulkimport/BulkImportParametersExtractorTest.java @@ -0,0 +1,252 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.repo.web.scripts.bulkimport; + +import static org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript.PARAMETER_BATCH_SIZE; +import static org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript.PARAMETER_DISABLE_RULES; +import static org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript.PARAMETER_NUM_THREADS; +import static org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript.PARAMETER_TARGET_NODEREF; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertThrows; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import java.util.Map; + +import org.alfresco.repo.bulkimport.BulkImportParameters; +import org.alfresco.repo.bulkimport.BulkImportParameters.ExistingFileMode; +import org.alfresco.repo.web.scripts.bulkimport.AbstractBulkFileSystemImportWebScript.BulkImportParametersExtractor; +import org.alfresco.service.cmr.model.FileNotFoundException; +import org.alfresco.service.cmr.repository.NodeRef; +import org.junit.Test; +import org.springframework.extensions.webscripts.WebScriptException; + +public class BulkImportParametersExtractorTest +{ + private static final String TEST_NODE_REF = "workspace://SpacesStore/this-is-just-a-test-ref"; + private static final String TEST_MISSING_NODE_REF = "workspace://SpacesStore/this-is-just-a-not-existing-test-ref"; + private static final Integer DEFAULT_BATCH_SIZE = 1234; + private static final Integer DEFAULT_NUMBER_OF_THREADS = 4321; + + @Test + public void shouldExtractTargetRef() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF)); + + final BulkImportParameters params = extractor.extract(); + + assertNotNull(params); + assertNotNull(params.getTarget()); + assertEquals(TEST_NODE_REF, params.getTarget().toString()); + } + + @Test + public void shouldFallbackToDefaultValues() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF)); + + final BulkImportParameters params = extractor.extract(); + + assertEquals(DEFAULT_BATCH_SIZE, params.getBatchSize()); + assertEquals(DEFAULT_NUMBER_OF_THREADS, params.getNumThreads()); + assertFalse(params.isDisableRulesService()); + assertEquals(ExistingFileMode.SKIP, params.getExistingFileMode()); + assertNull(params.getLoggingInterval()); + } + + @Test + public void shouldExtractDisableFolderRulesFlagWhenSetToTrue() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_DISABLE_RULES, "true" + )); + + final BulkImportParameters params = extractor.extract(); + + assertTrue(params.isDisableRulesService()); + } + + @Test + public void shouldExtractDisableFolderRulesFlagWhenSetToFalse() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_DISABLE_RULES, "false" + )); + + final BulkImportParameters params = extractor.extract(); + + assertFalse(params.isDisableRulesService()); + } + + @Test + public void shouldExtractDisableFolderRulesFlagWhenSetToNotBooleanValue() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_DISABLE_RULES, "unknown" + )); + + final BulkImportParameters params = extractor.extract(); + + assertFalse(params.isDisableRulesService()); + } + + @Test + public void shouldPropagateFileNotFoundExceptionWhenTargetIsNotFound() + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_MISSING_NODE_REF)); + + assertThrows(FileNotFoundException.class, extractor::extract); + } + + @Test + public void shouldExtractValidBatchSize() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_BATCH_SIZE, "1")); + + final BulkImportParameters params = extractor.extract(); + + assertEquals(Integer.valueOf(1), params.getBatchSize()); + } + + @Test + public void shouldFailWithWebScriptExceptionWhenInvalidBatchSizeIsRequested() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_BATCH_SIZE, "not-a-number")); + + try + { + extractor.extract(); + } catch (WebScriptException e) + { + assertNotNull(e.getMessage()); + assertTrue(e.getMessage().contains(PARAMETER_BATCH_SIZE)); + return; + } + + fail("Expected exception to be thrown."); + } + + @Test + public void shouldFailWithWebScriptExceptionWhenNegativeBatchSizeIsRequested() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_BATCH_SIZE, "-1")); + + try + { + extractor.extract(); + } catch (WebScriptException e) + { + assertNotNull(e.getMessage()); + assertTrue(e.getMessage().contains(PARAMETER_BATCH_SIZE)); + return; + } + + fail("Expected exception to be thrown."); + } + + @Test + public void shouldExtractValidNumberOfThreads() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_NUM_THREADS, "1")); + + final BulkImportParameters params = extractor.extract(); + + assertEquals(Integer.valueOf(1), params.getNumThreads()); + } + + @Test + public void shouldFailWithWebScriptExceptionWhenInvalidNumberOfThreadsIsRequested() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_NUM_THREADS, "not-a-number")); + + try + { + extractor.extract(); + } catch (WebScriptException e) + { + assertNotNull(e.getMessage()); + assertTrue(e.getMessage().contains(PARAMETER_NUM_THREADS)); + return; + } + + fail("Expected exception to be thrown."); + } + + @Test + public void shouldFailWithWebScriptExceptionWhenNegativeNumberOfThreadsIsRequested() throws FileNotFoundException + { + final BulkImportParametersExtractor extractor = givenExtractor(Map.of( + PARAMETER_TARGET_NODEREF, TEST_NODE_REF, + PARAMETER_NUM_THREADS, "-1")); + + try + { + extractor.extract(); + } catch (WebScriptException e) + { + assertNotNull(e.getMessage()); + assertTrue(e.getMessage().contains(PARAMETER_NUM_THREADS)); + return; + } + + fail("Expected exception to be thrown."); + } + + private BulkImportParametersExtractor givenExtractor(Map params) + { + + return new BulkImportParametersExtractor(params::get, this::testRefCreator, DEFAULT_BATCH_SIZE, DEFAULT_NUMBER_OF_THREADS); + } + + private NodeRef testRefCreator(String nodeRef, String path) throws FileNotFoundException + { + if (TEST_MISSING_NODE_REF.equals(nodeRef)) + { + throw new FileNotFoundException(new NodeRef(nodeRef)); + } + return new NodeRef(nodeRef); + } + +} \ No newline at end of file From f15c4d7a8f874678c53f3cf0a2507c7867c9f504 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 10:03:47 +0000 Subject: [PATCH 164/177] [maven-release-plugin][skip ci] prepare release 14.3 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 47ec34a95c..5193c78576 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.3-SNAPSHOT + 14.3 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 622f49da4e..044853223a 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.3-SNAPSHOT + 14.3 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 5bdc246215..02efd80536 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 5cb65a3fa9..926cd99e9b 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.3-SNAPSHOT + 14.3 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 8fbefdccf9..4a3963babd 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.3-SNAPSHOT + 14.3 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index ae56fff15f..f6f392fa88 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.3-SNAPSHOT + 14.3 diff --git a/amps/pom.xml b/amps/pom.xml index 1f9a15fc38..0b2c114ead 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 6d3a12aeac..eff3e70f07 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.3-SNAPSHOT + 14.3 diff --git a/core/pom.xml b/core/pom.xml index 9c41eadb73..c776c3cba6 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/data-model/pom.xml b/data-model/pom.xml index f5f0916864..ac4a1d25af 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 107e8366e0..598ef4c1c1 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 9a17f17554..0a287b1a2b 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/pom.xml b/packaging/pom.xml index 633887ec18..27cf5d26db 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 29677af96b..18a13df96d 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index cd6aa8d909..5fc3a82f5a 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index c8ee97c890..36a7af8aa9 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 1f466c517e..9d074ea6f0 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index aa096d824c..d89d23ac43 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 8f34d96fbd..d9d84ff7b8 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3-SNAPSHOT + 14.3 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 61d7fd5dd8..d2d32980ab 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3-SNAPSHOT + 14.3 diff --git a/pom.xml b/pom.xml index 37ff8a8376..0104a47559 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.3-SNAPSHOT + 14.3 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 14.3 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e1c3efaf50..e7970b1fc8 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 diff --git a/repository/pom.xml b/repository/pom.xml index 511bc200b3..69ad85e9e8 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3-SNAPSHOT + 14.3 From 00565f3bc9760866af0739d6b8828ecad3e34551 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 10:03:49 +0000 Subject: [PATCH 165/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5193c78576..5b32e4ca8b 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.3 + 14.4-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 044853223a..166c436656 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.3 + 14.4-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 02efd80536..8a7d58155b 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 926cd99e9b..2ad6770916 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.3 + 14.4-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 4a3963babd..496a11dd00 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.3 + 14.4-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f6f392fa88..77496ee928 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.3 + 14.4-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 0b2c114ead..d462f6fbf2 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index eff3e70f07..48bcb7c366 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.3 + 14.4-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index c776c3cba6..86410495d3 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index ac4a1d25af..038c61b7d3 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 598ef4c1c1..99eca2c392 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 0a287b1a2b..930d436218 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 27cf5d26db..3089c93397 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 18a13df96d..08d729243b 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 5fc3a82f5a..500c36acf1 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 36a7af8aa9..a76d891391 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 9d074ea6f0..19a58d83b4 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index d89d23ac43..2a175827ae 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d9d84ff7b8..b712e47b39 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.3 + 14.4-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d2d32980ab..1b3648a9e3 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.3 + 14.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0104a47559..688b07ac72 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.3 + 14.4-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 14.3 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index e7970b1fc8..ff2bfbd6fa 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 69ad85e9e8..3535525753 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.3 + 14.4-SNAPSHOT From c5281d7f1087106aea9a37494730723e82d7c59c Mon Sep 17 00:00:00 2001 From: evasques Date: Wed, 29 Sep 2021 12:07:06 +0100 Subject: [PATCH 166/177] MNT-22600 Nodes with security marks appear unfiltered on CMIS DB queries (#702) * Change isUnfiltered to protected so we can extend it in enterprise * Added test method to be able to do a cmis query test Original commit in governance-services: https://github.com/Alfresco/governance-services/commit/e4e3235328543439c9fce5a778b0c3474071ec14 --- .../rest/rm/community/base/BaseRMRestTest.java | 18 +++++++++++++++++- .../capability/RMAfterInvocationProvider.java | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java index 31ffe7a5ee..83e9bdf0c4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java @@ -619,11 +619,27 @@ public class BaseRMRestTest extends RestTest * @return */ public List searchForContentAsUser(UserModel user, String term) + { + String query = "cm:name:*" + term + "*"; + return searchForContentAsUser(user,query,"afts"); + } + + /** + * Returns search results for the given search term + * + * @param user + * @param term + * @param query language + * @return + * @throws Exception + */ + public List searchForContentAsUser(UserModel user, String q, String queryLanguage) { getRestAPIFactory().getRmRestWrapper().authenticateUser(user); RestRequestQueryModel queryReq = new RestRequestQueryModel(); SearchRequest query = new SearchRequest(queryReq); - queryReq.setQuery("cm:name:*" + term + "*"); + queryReq.setQuery(q); + queryReq.setLanguage(queryLanguage); List names = new ArrayList<>(); // wait for solr indexing diff --git a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/capability/RMAfterInvocationProvider.java b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/capability/RMAfterInvocationProvider.java index cf5c8d36b0..d8ebc610eb 100644 --- a/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/capability/RMAfterInvocationProvider.java +++ b/amps/ags/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/capability/RMAfterInvocationProvider.java @@ -306,7 +306,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon } } - private boolean isUnfiltered(NodeRef nodeRef) + protected boolean isUnfiltered(NodeRef nodeRef) { return !nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT); From 14668044f426ae4e6cb2e98ab21e4d531355c9eb Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 12:17:12 +0000 Subject: [PATCH 167/177] [maven-release-plugin][skip ci] prepare release 14.4 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5b32e4ca8b..5ece2a8d3d 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.4-SNAPSHOT + 14.4 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 166c436656..856bca681e 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.4-SNAPSHOT + 14.4 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 8a7d58155b..6d9cf0570e 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 2ad6770916..4a585bd13e 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.4-SNAPSHOT + 14.4 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 496a11dd00..724a87eb89 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.4-SNAPSHOT + 14.4 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 77496ee928..c080c04062 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.4-SNAPSHOT + 14.4 diff --git a/amps/pom.xml b/amps/pom.xml index d462f6fbf2..30325d39b3 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 48bcb7c366..d50015466c 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.4-SNAPSHOT + 14.4 diff --git a/core/pom.xml b/core/pom.xml index 86410495d3..c7c245940a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/data-model/pom.xml b/data-model/pom.xml index 038c61b7d3..4890941038 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 99eca2c392..eb21421a70 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 930d436218..d5841f627f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/pom.xml b/packaging/pom.xml index 3089c93397..bc7fd69bec 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 08d729243b..56aae4efcf 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 500c36acf1..b450918d77 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index a76d891391..bd68c68939 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 19a58d83b4..7e85c4cf0e 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 2a175827ae..382f8590d4 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index b712e47b39..f140872e8d 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4-SNAPSHOT + 14.4 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 1b3648a9e3..c1b8c1fd45 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4-SNAPSHOT + 14.4 diff --git a/pom.xml b/pom.xml index 688b07ac72..3fa6f942e9 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.4-SNAPSHOT + 14.4 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 14.4 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index ff2bfbd6fa..aa21e4542e 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 diff --git a/repository/pom.xml b/repository/pom.xml index 3535525753..a640e8ee4c 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4-SNAPSHOT + 14.4 From b5f24f5d588959d6d947167e75f8f4194dc42349 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 12:17:15 +0000 Subject: [PATCH 168/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5ece2a8d3d..f0bb24b6b4 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.4 + 14.5-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 856bca681e..be88cae7cf 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.4 + 14.5-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6d9cf0570e..6498737094 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 4a585bd13e..4b4af3522b 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.4 + 14.5-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 724a87eb89..5d2b5c699b 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.4 + 14.5-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index c080c04062..f3f2ef6a68 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.4 + 14.5-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 30325d39b3..44eb23fa96 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index d50015466c..c8479fd90a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.4 + 14.5-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index c7c245940a..a93c3c0370 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 4890941038..11a80e98c4 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index eb21421a70..70dc4d6aae 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index d5841f627f..eb45d80467 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index bc7fd69bec..f706df6038 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 56aae4efcf..13fdd143d1 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index b450918d77..1e53b460ee 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index bd68c68939..430ea2cf88 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 7e85c4cf0e..5ba7bb566f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 382f8590d4..f41b57c812 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index f140872e8d..d5773b0114 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.4 + 14.5-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index c1b8c1fd45..2effe7b8ef 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.4 + 14.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3fa6f942e9..b124857a60 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.4 + 14.5-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 14.4 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index aa21e4542e..00bc24298b 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index a640e8ee4c..7cfd08377a 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.4 + 14.5-SNAPSHOT From f1d48f7aab95cb42ea1cd8bef619130e3a69d2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Moreira?= Date: Wed, 29 Sep 2021 17:44:06 +0100 Subject: [PATCH 169/177] MNT-22428: configurable unsecure jsonp callback CMIS operation (#698) (#704) * MNT-22428: configurable unsecure jsonp callback CMIS operation (cherry picked from commit 5807e756bdd8758303d2a3894c87b07990d50a17) --- .../opencmis/CMISServletDispatcher.java | 34 ++++++--- .../JsonpCallbackNotAllowedException.java | 49 +++++++++++++ .../rest-framework-messages.properties | 2 + .../alfresco/public-rest-context.xml | 1 + .../org/alfresco/rest/api/tests/TestCMIS.java | 72 +++++++++++++++++++ .../resources/alfresco/repository.properties | 3 + 6 files changed, 152 insertions(+), 9 deletions(-) create mode 100644 remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java diff --git a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java index d803a91951..268390a642 100644 --- a/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java +++ b/remote-api/src/main/java/org/alfresco/opencmis/CMISServletDispatcher.java @@ -27,17 +27,14 @@ package org.alfresco.opencmis; import java.io.IOException; import java.io.InputStream; -import java.io.PrintWriter; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.EventListener; import java.util.Iterator; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Set; @@ -48,19 +45,17 @@ import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; import javax.servlet.ServletRegistration; import javax.servlet.SessionCookieConfig; import javax.servlet.SessionTrackingMode; import javax.servlet.descriptor.JspConfigDescriptor; -import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletResponse; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Endpoint; import org.alfresco.repo.tenant.TenantAdminService; +import org.alfresco.rest.framework.core.exceptions.JsonpCallbackNotAllowedException; import org.alfresco.service.descriptor.Descriptor; import org.alfresco.service.descriptor.DescriptorService; import org.apache.chemistry.opencmis.commons.enums.CmisVersion; @@ -69,7 +64,6 @@ import org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener; import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet; import org.springframework.extensions.webscripts.WebScriptRequest; import org.springframework.extensions.webscripts.WebScriptResponse; -import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime; /** * Dispatches OpenCMIS requests to a servlet e.g. the OpenCMIS AtomPub servlet. @@ -90,6 +84,8 @@ public abstract class CMISServletDispatcher implements CMISDispatcher protected CmisVersion cmisVersion; protected TenantAdminService tenantAdminService; + private boolean allowUnsecureCallbackJSONP; + private Set nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf public void setTenantAdminService(TenantAdminService tenantAdminService) @@ -151,7 +147,17 @@ public abstract class CMISServletDispatcher implements CMISDispatcher return this.currentDescriptor; } - + + public void setAllowUnsecureCallbackJSONP(boolean allowUnsecureCallbackJSONP) + { + this.allowUnsecureCallbackJSONP = allowUnsecureCallbackJSONP; + } + + public boolean isAllowUnsecureCallbackJSONP() + { + return allowUnsecureCallbackJSONP; + } + public void init() { Endpoint endpoint = new Endpoint(getBinding(), version); @@ -219,12 +225,22 @@ public abstract class CMISServletDispatcher implements CMISDispatcher CMISHttpServletResponse httpResWrapper = getHttpResponse(res); CMISHttpServletRequest httpReqWrapper = getHttpRequest(req); - servlet.service(httpReqWrapper, httpResWrapper); + // check for "callback" query param + if (!allowUnsecureCallbackJSONP && httpReqWrapper.getParameter("callback") != null) + { + throw new JsonpCallbackNotAllowedException(); + } + servlet.service(httpReqWrapper, httpResWrapper); } catch(ServletException e) { throw new AlfrescoRuntimeException("", e); } + catch (JsonpCallbackNotAllowedException e) + { + res.setStatus(403); + res.getWriter().append(e.getMessage()); + } } /** diff --git a/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java b/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java new file mode 100644 index 0000000000..6408aabce8 --- /dev/null +++ b/remote-api/src/main/java/org/alfresco/rest/framework/core/exceptions/JsonpCallbackNotAllowedException.java @@ -0,0 +1,49 @@ +/* + * #%L + * Alfresco Remote API + * %% + * Copyright (C) 2005 - 2021 Alfresco Software Limited + * %% + * This file is part of the Alfresco software. + * If the software was purchased under a paid Alfresco license, the terms of + * the paid license agreement will prevail. Otherwise, the software is + * provided under the following open source license terms: + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + * #L% + */ +package org.alfresco.rest.framework.core.exceptions; + +/** + * JSONP callback not allowed + * + * @author Vitor Moreira + */ +public class JsonpCallbackNotAllowedException extends ApiException +{ + private static final long serialVersionUID = 7198491358180044895L; + + public static String DEFAULT_MESSAGE_ID = "framework.exception.JsonpCallbackNotAllowed"; + + public JsonpCallbackNotAllowedException() + { + super(DEFAULT_MESSAGE_ID); + } + + public JsonpCallbackNotAllowedException(String msgId) + { + super(msgId); + } + +} diff --git a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties index 08562a979a..8f23a8784c 100644 --- a/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties +++ b/remote-api/src/main/resources/alfresco/messages/rest-framework-messages.properties @@ -14,4 +14,6 @@ framework.exception.UnsupportedResourceOperation=The operation is unsupported framework.exception.DeletedResource=In this version of the REST API resource {0} has been deleted framework.exception.RequestEntityTooLarge=The file can't be uploaded because it's larger than the maximum upload size framework.exception.InsufficientStorage=The file upload exceeds the content storage allowance +framework.exception.JsonpCallbackNotAllowed=For security reasons the callback parameter is not allowed framework.no.stacktrace=For security reasons the stack trace is no longer displayed, but the property is kept for previous versions + diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index ad7ff7548e..e084df7a54 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1138,6 +1138,7 @@ + personIt = network1.getPersonIds().iterator(); + final String personId = personIt.next(); + assertNotNull(personId); + Person person = repoService.getPerson(personId); + assertNotNull(person); + + publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); + + // request with a callback parameter + HttpResponse response; + final Map params = Map.of("callback", ""); + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); + assertEquals(403, response.getStatusCode()); + + String exceptionMessage = I18NUtil.getMessage(JsonpCallbackNotAllowedException.DEFAULT_MESSAGE_ID, params); + assertTrue(response.getResponse().endsWith(exceptionMessage)); + + // request without a callback parameter + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); + assertEquals(200, response.getStatusCode()); + } + + /* + * MNT-22428 Check the return from http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root&callback= when jsonp callback is enabled + * + * @throws Exception + */ + @Test + public void testBrowserEnabledJSONPCallback() throws Exception + { + // enables unsecure callback jsonp + final PublicApiBrowserCMISDispatcher dispatcher = ctx.getBean(PublicApiBrowserCMISDispatcher.class); + dispatcher.setAllowUnsecureCallbackJSONP(true); + + final TestNetwork network1 = getTestFixture().getRandomNetwork(); + Iterator personIt = network1.getPersonIds().iterator(); + final String personId = personIt.next(); + assertNotNull(personId); + Person person = repoService.getPerson(personId); + assertNotNull(person); + + publicApiClient.setRequestContext(new RequestContext(network1.getId(), personId)); + + // request with a callback parameter + HttpResponse response; + final Map params = Map.of("callback", "someFunction"); + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", params); + assertEquals(200, response.getStatusCode()); + + // request without a callback parameter + response = publicApiClient.get(network1.getId() + "/public/cmis/versions/1.1/browser/root", null); + assertEquals(200, response.getStatusCode()); + } + /** * REPO-2041 / MNT-16236 Upload via cmis binding atom and browser files with different maxContentSize */ diff --git a/repository/src/main/resources/alfresco/repository.properties b/repository/src/main/resources/alfresco/repository.properties index 0f4f2d4c8d..44e2cf2d90 100644 --- a/repository/src/main/resources/alfresco/repository.properties +++ b/repository/src/main/resources/alfresco/repository.properties @@ -1308,3 +1308,6 @@ system.tempFileCleaner.maxTimeToRun= # Property to long running migration to remove alf_server in v7+ patch.db-V7.1.0-remove-alf_server-table system.remove-alf_server-table-from-db.ignored=true + +# When using JSONP, allows unsecure usage of "callback" functions. Disabled by default for security reasons +allow.unsecure.callback.jsonp=false From 2ef97e0b23ecfd8681ea18ccb17ac666410596d3 Mon Sep 17 00:00:00 2001 From: montgolfiere Date: Wed, 29 Sep 2021 19:32:10 +0100 Subject: [PATCH 170/177] ACS-2067: Fix probes for when DAU enabled (#700) --- remote-api/src/main/resources/alfresco/public-rest-context.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote-api/src/main/resources/alfresco/public-rest-context.xml b/remote-api/src/main/resources/alfresco/public-rest-context.xml index e084df7a54..030e3bcf48 100644 --- a/remote-api/src/main/resources/alfresco/public-rest-context.xml +++ b/remote-api/src/main/resources/alfresco/public-rest-context.xml @@ -1070,7 +1070,7 @@ - + From 871bd40d6d76ae7f80f0f40f6e30d5072f011975 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 20:23:19 +0000 Subject: [PATCH 171/177] [maven-release-plugin][skip ci] prepare release 14.5 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index f0bb24b6b4..5218eb4ac1 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.5-SNAPSHOT + 14.5 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index be88cae7cf..405065d180 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.5-SNAPSHOT + 14.5 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6498737094..d38df38c55 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index 4b4af3522b..e19a0e1af6 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.5-SNAPSHOT + 14.5 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 5d2b5c699b..c7fd45c46c 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.5-SNAPSHOT + 14.5 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index f3f2ef6a68..59afa5e1c6 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.5-SNAPSHOT + 14.5 diff --git a/amps/pom.xml b/amps/pom.xml index 44eb23fa96..df7fefe528 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index c8479fd90a..21fc71f6e9 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.5-SNAPSHOT + 14.5 diff --git a/core/pom.xml b/core/pom.xml index a93c3c0370..499ca7d533 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/data-model/pom.xml b/data-model/pom.xml index 11a80e98c4..9477453e0a 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 70dc4d6aae..0ccd5f0042 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index eb45d80467..472c8785a4 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/pom.xml b/packaging/pom.xml index f706df6038..c23dc95628 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 13fdd143d1..c15ec1a424 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 1e53b460ee..a9cdde0ea2 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 430ea2cf88..2a1ebfce4a 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 5ba7bb566f..8948315c8a 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index f41b57c812..5b419319c5 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index d5773b0114..63e894966e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5-SNAPSHOT + 14.5 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index 2effe7b8ef..abb3f92bab 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5-SNAPSHOT + 14.5 diff --git a/pom.xml b/pom.xml index b124857a60..8cadcf675c 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.5-SNAPSHOT + 14.5 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 14.5 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 00bc24298b..eadcabdfd2 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 diff --git a/repository/pom.xml b/repository/pom.xml index 7cfd08377a..77540134d8 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5-SNAPSHOT + 14.5 From df67011596f211d15f2cc0c8cff8168bcf6bc6ff Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Wed, 29 Sep 2021 20:23:22 +0000 Subject: [PATCH 172/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5218eb4ac1..0541ae35bc 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.5 + 14.6-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 405065d180..7622bcacf5 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.5 + 14.6-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index d38df38c55..1af502a26d 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index e19a0e1af6..c4986645dc 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.5 + 14.6-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index c7fd45c46c..168a2e933d 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.5 + 14.6-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 59afa5e1c6..5bdb58197a 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.5 + 14.6-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index df7fefe528..999b391428 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 21fc71f6e9..fbc1ee6d58 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.5 + 14.6-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 499ca7d533..991d23fee1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 9477453e0a..100060de15 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index 0ccd5f0042..d89db83453 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index 472c8785a4..cf6ff0a437 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index c23dc95628..378ec1586a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index c15ec1a424..2adeb8e69c 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index a9cdde0ea2..f0031da119 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 2a1ebfce4a..4ee0bee593 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 8948315c8a..38284e237f 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 5b419319c5..ff58a7f88b 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 63e894966e..4b09a6b92e 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.5 + 14.6-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index abb3f92bab..d3c255d26b 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.5 + 14.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8cadcf675c..a796436408 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.5 + 14.6-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 14.5 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index eadcabdfd2..580713755f 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 77540134d8..4114b35da9 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.5 + 14.6-SNAPSHOT From 8d78b257aa37ad1f1df5b2a9cb4e8568e6e355db Mon Sep 17 00:00:00 2001 From: kcichonczyk <88378534+kcichonczyk@users.noreply.github.com> Date: Fri, 1 Oct 2021 14:38:58 +0200 Subject: [PATCH 173/177] [PRODSEC-4829] Bumped versions of libraries to prevent security vulnerabilities: (#703) * 'keycloak' version to 15.0.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a796436408..7ac95047c4 100644 --- a/pom.xml +++ b/pom.xml @@ -81,7 +81,7 @@ 7.7.10 4.1.2 1.4 - 13.0.1 + 15.0.2 3.4.2.Final 3.7.4 5.16.1 From 4ba0d3a8997ac1db6270d7fe2ee5aeaa1205a590 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 1 Oct 2021 14:32:18 +0000 Subject: [PATCH 174/177] [maven-release-plugin][skip ci] prepare release 14.6 --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 0541ae35bc..f700a3f38e 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.6-SNAPSHOT + 14.6 diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 7622bcacf5..55b92e46da 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.6-SNAPSHOT + 14.6 diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 1af502a26d..e7f9711cb4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index c4986645dc..c8d15b0904 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.6-SNAPSHOT + 14.6 diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 168a2e933d..78eb3c1303 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.6-SNAPSHOT + 14.6 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 5bdb58197a..cbf1a2f56c 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.6-SNAPSHOT + 14.6 diff --git a/amps/pom.xml b/amps/pom.xml index 999b391428..903f8f982d 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index fbc1ee6d58..4774fd189b 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.6-SNAPSHOT + 14.6 diff --git a/core/pom.xml b/core/pom.xml index 991d23fee1..2572b2c983 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/data-model/pom.xml b/data-model/pom.xml index 100060de15..6a84cc5480 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index d89db83453..c5d590ac27 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index cf6ff0a437..bd8783a93f 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/pom.xml b/packaging/pom.xml index 378ec1586a..6cc6ae0e4a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 2adeb8e69c..719c002805 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f0031da119..39e0f5aec8 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 4ee0bee593..97c4ee66ed 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index 38284e237f..ef22bdad92 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index ff58a7f88b..bed928fdf8 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index 4b09a6b92e..a2b2298005 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6-SNAPSHOT + 14.6 diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index d3c255d26b..db41a5d2a3 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6-SNAPSHOT + 14.6 diff --git a/pom.xml b/pom.xml index 7ac95047c4..8361afcf95 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.6-SNAPSHOT + 14.6 pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - HEAD + 14.6 diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 580713755f..5bec725fdc 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 diff --git a/repository/pom.xml b/repository/pom.xml index 4114b35da9..54f1298d4d 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6-SNAPSHOT + 14.6 From b3e8051f083e180487f2f5f455e76e9aae9b3fd1 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 1 Oct 2021 14:32:21 +0000 Subject: [PATCH 175/177] [maven-release-plugin][skip ci] prepare for next development iteration --- amps/ags/pom.xml | 2 +- amps/ags/rm-automation/pom.xml | 2 +- .../rm-automation/rm-automation-community-rest-api/pom.xml | 2 +- amps/ags/rm-community/pom.xml | 2 +- amps/ags/rm-community/rm-community-repo/pom.xml | 2 +- amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml | 2 +- amps/pom.xml | 2 +- amps/share-services/pom.xml | 2 +- core/pom.xml | 2 +- data-model/pom.xml | 2 +- packaging/distribution/pom.xml | 2 +- packaging/docker-alfresco/pom.xml | 2 +- packaging/pom.xml | 2 +- packaging/tests/pom.xml | 2 +- packaging/tests/tas-cmis/pom.xml | 2 +- packaging/tests/tas-email/pom.xml | 2 +- packaging/tests/tas-integration/pom.xml | 2 +- packaging/tests/tas-restapi/pom.xml | 2 +- packaging/tests/tas-webdav/pom.xml | 2 +- packaging/war/pom.xml | 2 +- pom.xml | 4 ++-- remote-api/pom.xml | 2 +- repository/pom.xml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index f700a3f38e..61bf76c197 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-amps - 14.6 + 14.7-SNAPSHOT diff --git a/amps/ags/rm-automation/pom.xml b/amps/ags/rm-automation/pom.xml index 55b92e46da..6cdbbd76bf 100644 --- a/amps/ags/rm-automation/pom.xml +++ b/amps/ags/rm-automation/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.6 + 14.7-SNAPSHOT diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index e7f9711cb4..c34fb1464f 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-automation-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index c8d15b0904..03926c8098 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-parent - 14.6 + 14.7-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index 78eb3c1303..30db11b4ca 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.6 + 14.7-SNAPSHOT diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index cbf1a2f56c..fd35c10dfb 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-governance-services-community-repo-parent - 14.6 + 14.7-SNAPSHOT diff --git a/amps/pom.xml b/amps/pom.xml index 903f8f982d..373353a597 100644 --- a/amps/pom.xml +++ b/amps/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/amps/share-services/pom.xml b/amps/share-services/pom.xml index 4774fd189b..7a0cb14b1a 100644 --- a/amps/share-services/pom.xml +++ b/amps/share-services/pom.xml @@ -8,7 +8,7 @@ org.alfresco alfresco-community-repo-amps - 14.6 + 14.7-SNAPSHOT diff --git a/core/pom.xml b/core/pom.xml index 2572b2c983..be8a234a0d 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/data-model/pom.xml b/data-model/pom.xml index 6a84cc5480..762e7e12a2 100644 --- a/data-model/pom.xml +++ b/data-model/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/distribution/pom.xml b/packaging/distribution/pom.xml index c5d590ac27..83264a1ac8 100644 --- a/packaging/distribution/pom.xml +++ b/packaging/distribution/pom.xml @@ -9,6 +9,6 @@ org.alfresco alfresco-community-repo-packaging - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/docker-alfresco/pom.xml b/packaging/docker-alfresco/pom.xml index bd8783a93f..bbb1ea31eb 100644 --- a/packaging/docker-alfresco/pom.xml +++ b/packaging/docker-alfresco/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/pom.xml b/packaging/pom.xml index 6cc6ae0e4a..fac0b3ac8d 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/pom.xml b/packaging/tests/pom.xml index 719c002805..e30f4d79b5 100644 --- a/packaging/tests/pom.xml +++ b/packaging/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index 39e0f5aec8..b8b336d744 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/tas-email/pom.xml b/packaging/tests/tas-email/pom.xml index 97c4ee66ed..abe8d52236 100644 --- a/packaging/tests/tas-email/pom.xml +++ b/packaging/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/tas-integration/pom.xml b/packaging/tests/tas-integration/pom.xml index ef22bdad92..066cece1b9 100644 --- a/packaging/tests/tas-integration/pom.xml +++ b/packaging/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index bed928fdf8..45921ac0ba 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/tests/tas-webdav/pom.xml b/packaging/tests/tas-webdav/pom.xml index a2b2298005..69f4b276be 100644 --- a/packaging/tests/tas-webdav/pom.xml +++ b/packaging/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco alfresco-community-repo-tests - 14.6 + 14.7-SNAPSHOT diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index db41a5d2a3..de38423a62 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo-packaging - 14.6 + 14.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8361afcf95..f1a3959766 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 alfresco-community-repo - 14.6 + 14.7-SNAPSHOT pom Alfresco Community Repo Parent @@ -142,7 +142,7 @@ scm:git:https://github.com/Alfresco/alfresco-community-repo.git scm:git:https://github.com/Alfresco/alfresco-community-repo.git https://github.com/Alfresco/alfresco-community-repo - 14.6 + HEAD diff --git a/remote-api/pom.xml b/remote-api/pom.xml index 5bec725fdc..f7a68838c9 100644 --- a/remote-api/pom.xml +++ b/remote-api/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT diff --git a/repository/pom.xml b/repository/pom.xml index 54f1298d4d..54bc8aaf71 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -7,7 +7,7 @@ org.alfresco alfresco-community-repo - 14.6 + 14.7-SNAPSHOT From 7ea91ea70288b0c35c3e9c2c5037e0702f45b479 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 5 Oct 2021 09:31:58 +0200 Subject: [PATCH 176/177] Upgrade to GitHub-native Dependabot (#424) Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- .github/dependabot.yml | 182 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..5ff26509fe --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,182 @@ +version: 2 +registries: + maven-repository-artifacts-alfresco-com-nexus-content-groups-int: + type: maven-repository + url: https://artifacts.alfresco.com/nexus/content/groups/internal + username: bamboo + password: "${{secrets.MAVEN_REPOSITORY_ARTIFACTS_ALFRESCO_COM_NEXUS_CONTENT_GROUPS_INT_PASSWORD}}" + +updates: +- package-ecosystem: maven + directory: "/" + schedule: + interval: daily + time: "22:00" + timezone: Africa/Abidjan + open-pull-requests-limit: 99 + ignore: + - dependency-name: com.google.code.gson:gson + versions: + - "> 2.8.6" + - dependency-name: io.fabric8:fabric8-maven-plugin + versions: + - "> 4.4.0" + - dependency-name: javax.servlet:javax.servlet-api + versions: + - "> 3.0.1" + - dependency-name: org.acegisecurity:acegi-security + versions: + - "> 0.8.2_patched" + - dependency-name: org.activiti:activiti-engine + versions: + - "> 5.23.0" + - dependency-name: org.activiti:activiti-engine + versions: + - ">= 7.1.a, < 7.2" + - dependency-name: org.activiti:activiti-spring + versions: + - "> 5.23.0" + - dependency-name: org.activiti:activiti-spring + versions: + - ">= 7.1.a, < 7.2" + - dependency-name: org.apache.camel:camel-activemq + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-amqp + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-direct + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-directvm + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-jackson + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-mock + versions: + - "> 3.7.1" + - dependency-name: org.apache.camel:camel-spring + versions: + - "> 3.7.1" + - dependency-name: org.apache.chemistry.opencmis:chemistry-opencmis-client-impl + versions: + - "> 1.0.0" + - dependency-name: org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl + versions: + - "> 1.0.0" + - dependency-name: org.apache.chemistry.opencmis:chemistry-opencmis-server-bindings + versions: + - "> 1.0.0" + - dependency-name: org.apache.chemistry.opencmis:chemistry-opencmis-test-tck + versions: + - "> 1.0.0" + - dependency-name: org.freemarker:freemarker + versions: + - "> 2.3.20-alfresco-patched-20200421" + - dependency-name: org.keycloak:keycloak-adapter-core + versions: + - "> 12.0.2" + - dependency-name: org.keycloak:keycloak-adapter-spi + versions: + - "> 12.0.2" + - dependency-name: org.keycloak:keycloak-authz-client + versions: + - "> 12.0.2" + - dependency-name: org.keycloak:keycloak-common + versions: + - "> 12.0.2" + - dependency-name: org.keycloak:keycloak-core + versions: + - "> 12.0.2" + - dependency-name: org.keycloak:keycloak-servlet-adapter-spi + versions: + - "> 12.0.2" + - dependency-name: org.eclipse.jetty:jetty-server + versions: + - 9.4.38.v20210224 + - dependency-name: org.alfresco.tas:cmis + versions: + - "1.28" + - dependency-name: org.springframework:spring-webmvc + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-web + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-tx + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-orm + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-test + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-jms + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-jdbc + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-expression + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-core + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-context-support + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-context + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-beans + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.springframework:spring-aop + versions: + - 5.3.4 + - 5.3.5 + - dependency-name: org.alfresco.tas:restapi + versions: + - "1.55" + - dependency-name: org.eclipse.jetty:jetty-security + versions: + - 11.0.1 + - dependency-name: org.alfresco.aos-module:alfresco-vti-bin + versions: + - 1.4.0-M1 + - dependency-name: org.alfresco.aos-module:alfresco-aos-module-distributionzip + versions: + - 1.4.0-M1 + - dependency-name: org.alfresco.aos-module:alfresco-aos-module + versions: + - 1.4.0-M1 + - dependency-name: org.alfresco.surf:spring-webscripts-api + versions: + - "8.16" + - dependency-name: org.alfresco.surf:spring-webscripts:tests + versions: + - "8.16" + - dependency-name: org.alfresco.surf:spring-webscripts + versions: + - "8.16" + - dependency-name: org.alfresco.surf:spring-surf-core-configservice + versions: + - "8.16" + registries: + - maven-repository-artifacts-alfresco-com-nexus-content-groups-int From aa4a5a606343351389436ab1f1b767619c6e32ef Mon Sep 17 00:00:00 2001 From: alandavis Date: Tue, 5 Oct 2021 11:12:24 +0100 Subject: [PATCH 177/177] Try to give dependabot access to Nexus --- .github/dependabot.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ff26509fe..4c5105fe68 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,9 +3,8 @@ registries: maven-repository-artifacts-alfresco-com-nexus-content-groups-int: type: maven-repository url: https://artifacts.alfresco.com/nexus/content/groups/internal - username: bamboo - password: "${{secrets.MAVEN_REPOSITORY_ARTIFACTS_ALFRESCO_COM_NEXUS_CONTENT_GROUPS_INT_PASSWORD}}" - + username: ${{secrets.NEXUS_USERNAME}} + password: ${{secrets.NEXUS_PASSWORD}} updates: - package-ecosystem: maven directory: "/"