Compare commits

...

80 Commits

Author SHA1 Message Date
rrajoria
1f68672fb6 Jakarta migration (#2040)
* MNT-23451 filterQuery for facet Null (#1764)

After MNT-23276, a "Null" value was introduced but the facetQuery does not reflect how to query nodes with that facet

* [maven-release-plugin][skip ci] prepare release 23.1.0.153

* [maven-release-plugin][skip ci] prepare for next development iteration

* ACS-4799: E2Es - Elasticsearch query feature expansion - boosts (#2034)

- bump TAS Utility version

* [maven-release-plugin][skip ci] prepare release 23.1.0.154

* [maven-release-plugin][skip ci] prepare for next development iteration

---------

Co-authored-by: Nicolas Barithel <nicolas.barithel@hyland.com>
Co-authored-by: alfresco-build <8039454+alfresco-build@users.noreply.github.com>
Co-authored-by: Krystian Dabrowski <98942253+krdabrowski@users.noreply.github.com>
Co-authored-by: pzurek <Piotr.Zurek@hyland.com>
2023-07-04 16:35:28 +05:30
pzurek
75f2205a65 Merge branch 'master' into jakarta-migration 2023-07-03 14:00:30 +02:00
pzurek
3d57a27de1 Use official base image 2023-06-29 20:06:26 +02:00
pzurek
e0dc0be076 Merge branch 'master' into jakarta-migration
# Conflicts:
#	pom.xml
2023-06-29 20:02:20 +02:00
pzurek
32a35e273e Switch to the official base image RC 2023-06-29 14:05:28 +02:00
pzurek
a99feae1e2 Revert "ACS-5432 Jakarta compatible CMIS webservices (#2015)"
This reverts commit 96815b8ec4.
2023-06-29 14:05:13 +02:00
Piotr Żurek
96815b8ec4 ACS-5432 Jakarta compatible CMIS webservices (#2015) 2023-06-29 13:06:05 +02:00
pzurek
1812c43b04 Switch to jakarta-migration branch 2023-06-29 12:10:23 +02:00
Piotr Żurek
d2a4de152b ACS-5432 Jakarta compatible CMIS webservices (#2015) 2023-06-29 11:43:08 +02:00
pzurek
f220eb5c0f Switch to the official base image RC 2023-06-29 09:18:58 +02:00
pzurek
d2bbdc4d0e Merge branch 'master' into jakarta-migration 2023-06-28 20:12:14 +02:00
pzurek
064044fa0e Merge branch 'master' into jakarta-migration
# Conflicts:
#	pom.xml
#	repository/src/main/java/org/alfresco/util/remote/server/AlfrescoRmiRegistryFactoryBean.java
2023-06-28 17:30:25 +02:00
pzurek
3fb8875453 Merge branch 'master' into jakarta-migration 2023-06-22 13:49:06 +02:00
pzurek
a207915824 Merge branch 'master' into jakarta-migration
# Conflicts:
#	pom.xml
2023-06-22 13:43:59 +02:00
pzurek
5fadaf76f3 Trigger CI 2023-06-22 13:05:43 +02:00
pzurek
e48c68c86c Add possibility to use different branches for dependencies 2023-06-20 08:19:14 +02:00
pzurek
32f88bd2fd Revert "Try clearing the cache"
This reverts commit bedbc10c8a.
2023-06-19 18:13:07 +02:00
pzurek
aba5a08827 Revert "Enable brnach builds"
This reverts commit 7ebfd9ff0e.
2023-06-19 18:06:07 +02:00
pzurek
339d052c7c Revert "Enable tas tests on branch builds"
This reverts commit cf9e064c5a.
2023-06-19 18:05:56 +02:00
pzurek
8cc22cfe15 Revert "Full logs on env failure"
This reverts commit 131fbbe8be.
2023-06-19 18:05:42 +02:00
pzurek
0e8d5a3503 Revert "Revert to previous tas-utility version"
This reverts commit e145b55094.
2023-06-19 18:05:25 +02:00
pzurek
ec5c9e1b79 Revert "Clean before building images"
This reverts commit b8f7607a20.
2023-06-19 18:04:57 +02:00
pzurek
db7e2d6154 Revert "Check activation jars"
This reverts commit 2aa045e0de.
2023-06-19 18:04:46 +02:00
pzurek
9de2769b2c Exclude angus activation 2023-06-19 15:27:43 +02:00
pzurek
021af742ce Remove javax.activation dependency 2023-06-19 14:58:46 +02:00
pzurek
2aa045e0de Check activation jars 2023-06-19 14:15:49 +02:00
pzurek
b8f7607a20 Clean before building images 2023-06-19 13:23:54 +02:00
pzurek
9842e0d548 Merge branch 'jakarta-migration' of github.com:Alfresco/alfresco-community-repo into jakarta-migration 2023-06-19 12:24:16 +02:00
pzurek
131fbbe8be Full logs on env failure 2023-06-19 12:23:49 +02:00
Piotr Żurek
e145b55094 Revert to previous tas-utility version 2023-06-19 11:32:39 +02:00
pzurek
1463d4d0db Trigger CI after revering tas-utils in tas-email 2023-06-19 10:50:30 +02:00
pzurek
cf9e064c5a Enable tas tests on branch builds 2023-06-19 10:14:40 +02:00
pzurek
7ebfd9ff0e Enable brnach builds 2023-06-19 09:51:01 +02:00
pzurek
5a089019eb Revert "Use HEAD commit instead of merge commit"
This reverts commit c76a8a322d.
2023-06-19 09:49:42 +02:00
pzurek
e98f279858 Revert "Use HEAD commit instead of merge commit"
This reverts commit 5eef58d6f0.
2023-06-19 09:49:30 +02:00
pzurek
0fb3071746 Merge branch 'master' into jakarta-migration 2023-06-19 09:08:21 +02:00
pzurek
5eef58d6f0 Use HEAD commit instead of merge commit 2023-06-19 08:34:51 +02:00
pzurek
c76a8a322d Use HEAD commit instead of merge commit 2023-06-19 08:16:06 +02:00
pzurek
5f52ef9251 Trigger CI 2023-06-19 07:54:24 +02:00
pzurek
bedbc10c8a Try clearing the cache 2023-06-16 13:23:03 +02:00
pzurek
d354dd7ab7 Revert "Just testing"
This reverts commit 764ca0fcf1.
2023-06-16 12:58:50 +02:00
pzurek
764ca0fcf1 Just testing 2023-06-16 12:33:16 +02:00
pzurek
762199b762 Migrate all required APIs 2023-06-16 11:55:26 +02:00
pzurek
3540c14a43 Fix dependencies build order 2023-06-16 08:23:50 +02:00
Sara Aspery
0e29d98747 Merge branch 'master' into jakarta-migration
# Conflicts:
#	repository/src/main/java/org/alfresco/repo/config/source/RepoUrlConfigSource.java
2023-06-16 06:43:35 +01:00
Sara Aspery
dc304b4108 Bump to jakarta.mail migrated alfresco-tas-utility 2023-06-16 06:37:47 +01:00
pzurek
ca6697ab44 Merge branch 'jakarta-migration' of github.com:Alfresco/alfresco-community-repo into jakarta-migration 2023-06-15 08:50:53 +02:00
pzurek
82bdd30459 Ugly hack for the AOS circular dependency 2023-06-15 08:50:00 +02:00
kcichonczyk
9815b1b3fe [ACS-5420] add org.messaginghub.pooled-jms dependency for PooledConnectionFactory replacement 2023-06-15 08:02:20 +02:00
pzurek
585714fa02 Merge branch 'jakarta-migration' of github.com:Alfresco/alfresco-community-repo into jakarta-migration 2023-06-15 07:57:24 +02:00
pzurek
78b69b09c0 Build aos jakarta dependencies 2023-06-15 07:57:06 +02:00
kcichonczyk
c9009b9afc [ACS-5392] migrate to http5 in IdentityServiceFacadeFactoryBean (#1989) 2023-06-14 10:03:27 +02:00
pzurek
685d80a468 Add jira references 2023-06-14 09:56:59 +02:00
pzurek
041b6ba97e Now we have script for building dependencies 2023-06-14 09:17:43 +02:00
pzurek
7c545a7066 Use tomcat 10.1 base image 2023-06-13 15:19:19 +02:00
pzurek
4d75f7f719 Force amps installation during migration 2023-06-13 14:11:16 +02:00
pzurek
ddf02be9fa jakarta dependencies needs to be rebuild after maven cache invalidation 2023-06-13 13:44:02 +02:00
pzurek
15ed269a15 Trigger CI 2023-06-13 13:30:05 +02:00
pzurek
bb6900f5d6 merge master 2023-06-13 12:24:42 +02:00
pzurek
6687066edc merge master 2023-06-13 12:20:50 +02:00
pzurek
b075fb9f0a Switch to the jakarta compatible subetha email server 2023-06-13 12:14:41 +02:00
pzurek
f28edb54a7 Trigger CI 2023-06-13 11:33:06 +02:00
pzurek
1968e7d14c jakarta mail implementation is needed by downstream dependencies 2023-06-13 10:04:40 +02:00
pzurek
61cab1900b -1 should be used to indicate the EOF 2023-06-13 08:45:03 +02:00
pzurek
0de33ea361 Switch to the hardcoded activemq version for testing 2023-06-12 17:00:29 +02:00
pzurek
c856b3308b migrate javax.jms package and required javax.xml.bind package 2023-06-12 16:39:19 +02:00
pzurek
daaedcb143 javax.acctivation is needed by the jaxb 2023-06-12 14:13:02 +02:00
pzurek
58e407d4dd Upgrade mybatis/spring integration 2023-06-12 13:10:07 +02:00
pzurek
b017ba3d1d Build jakarta dependencies during init phase 2023-06-12 12:02:48 +02:00
pzurek
c84f59b3d3 Switch to https 2023-06-12 11:47:27 +02:00
pzurek
f546d88726 Build jakarta dependencies 2023-06-12 11:43:53 +02:00
pzurek
9eece9bbfb Build jakarta dependencies 2023-06-12 11:40:55 +02:00
Sara Aspery
d5b67374d0 ACS-5393 Use alfresco-tas-email migrated to jakarta.mail and jakarta.activation 2023-06-09 22:48:23 +01:00
kcichonczyk
f50e0b80e6 mark on of the JAKARTA_TO_DO as ACS-5392 2023-06-09 13:09:27 +02:00
pzurek
2be95ec6d7 Fix project name 2023-06-07 14:40:18 +02:00
pzurek
bf34ed22a2 Describe what is still missing 2023-06-07 13:29:32 +02:00
pzurek
be679878e0 Migrate to jakarta.servlet, jakarta.mail and jakarta.activation 2023-06-07 13:13:11 +02:00
pzurek
92dfee1548 Project for binary migrations 2023-06-07 13:10:56 +02:00
pzurek
a4076dc7ea Give up on super-pom decoupling 2023-06-06 10:47:31 +02:00
pzurek
57877ad30b Decouple from super-pom 2023-06-06 08:45:25 +02:00
346 changed files with 4873 additions and 4566 deletions

View File

@@ -17,6 +17,7 @@ on:
env: env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
GIT_HTTP_CREDENTIALS: "${{ secrets.BOT_GITHUB_USERNAME }}:${{ secrets.BOT_GITHUB_TOKEN }}"
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60 GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60
LOG_WARN: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" LOG_WARN: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-amps</artifactId> <artifactId>alfresco-community-repo-amps</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-governance-services-community-parent</artifactId> <artifactId>alfresco-governance-services-community-parent</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-governance-services-automation-community-repo</artifactId> <artifactId>alfresco-governance-services-automation-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<build> <build>

View File

@@ -28,7 +28,7 @@ package org.alfresco.rest.core;
import static lombok.AccessLevel.PROTECTED; import static lombok.AccessLevel.PROTECTED;
import javax.annotation.Resource; import jakarta.annotation.Resource;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-governance-services-community-parent</artifactId> <artifactId>alfresco-governance-services-community-parent</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -25,7 +25,7 @@ COPY target/alfresco-share-services-*.amp /usr/local/tomcat/amps/
# Install amps on alfresco.war # Install amps on alfresco.war
RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \ RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps \ /usr/local/tomcat/amps \
/usr/local/tomcat/webapps/alfresco -directory -nobackup /usr/local/tomcat/webapps/alfresco -directory -nobackup -force
### Copy gs-api-explorer ### Copy gs-api-explorer
COPY --chown=root:Alfresco --from=AGSBUILDER /build/gs-api-explorer /usr/local/tomcat/webapps/gs-api-explorer COPY --chown=root:Alfresco --from=AGSBUILDER /build/gs-api-explorer /usr/local/tomcat/webapps/gs-api-explorer

View File

@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-governance-services-community-repo-parent</artifactId> <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>
@@ -60,9 +60,12 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope> </dependency>
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.alfresco.surf</groupId> <groupId>org.alfresco.surf</groupId>
@@ -436,7 +439,7 @@
</run> </run>
</image> </image>
<image> <image>
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre17-rockylinux8</name> <name>alfresco/alfresco-activemq:5.17.4-jre17-rockylinux8</name>
<run> <run>
<ports> <ports>
<port>${activemq.port1}:${activemq.port1}</port> <port>${activemq.port1}:${activemq.port1}</port>
@@ -507,7 +510,7 @@
</run> </run>
</image> </image>
<image> <image>
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre17-rockylinux8</name> <name>alfresco/alfresco-activemq:5.17.4-jre17-rockylinux8</name>
<run> <run>
<ports> <ports>
<port>${activemq.port1}:${activemq.port1}</port> <port>${activemq.port1}:${activemq.port1}</port>

View File

@@ -39,12 +39,12 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
import javax.mail.Multipart; import jakarta.mail.Multipart;
import javax.mail.Part; import jakarta.mail.Part;
import javax.mail.internet.ContentType; import jakarta.mail.internet.ContentType;
import javax.mail.internet.MimeMessage; import jakarta.mail.internet.MimeMessage;
import javax.mail.internet.MimeUtility; import jakarta.mail.internet.MimeUtility;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.model.ContentModel; import org.alfresco.model.ContentModel;

View File

@@ -29,7 +29,7 @@ package org.alfresco.module.org_alfresco_module_rm.script;
import static org.alfresco.util.WebScriptUtils.getTemplateVars; import static org.alfresco.util.WebScriptUtils.getTemplateVars;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.util.Map; import java.util.Map;
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionService; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionService;

View File

@@ -27,7 +27,7 @@
package org.alfresco.module.org_alfresco_module_rm.script; package org.alfresco.module.org_alfresco_module_rm.script;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;

View File

@@ -30,7 +30,7 @@ package org.alfresco.module.org_alfresco_module_rm.script;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.module.org_alfresco_module_rm.admin.RecordsManagementAdminService; import org.alfresco.module.org_alfresco_module_rm.admin.RecordsManagementAdminService;
import org.alfresco.service.cmr.dictionary.PropertyDefinition; import org.alfresco.service.cmr.dictionary.PropertyDefinition;

View File

@@ -34,7 +34,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionActionDefinition; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionActionDefinition;
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule;

View File

@@ -34,7 +34,7 @@ import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.model.ContentModel; import org.alfresco.model.ContentModel;
import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService;

View File

@@ -33,7 +33,7 @@ import static org.alfresco.util.WebScriptUtils.getTemplateVars;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipService; import org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipService;
import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeRef;

View File

@@ -27,7 +27,7 @@
package org.alfresco.module.org_alfresco_module_rm.script; package org.alfresco.module.org_alfresco_module_rm.script;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;

View File

@@ -32,7 +32,7 @@ import java.util.HashSet;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.model.ContentModel; import org.alfresco.model.ContentModel;
import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService;

View File

@@ -32,7 +32,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.module.org_alfresco_module_rm.capability.Capability; import org.alfresco.module.org_alfresco_module_rm.capability.Capability;
import org.alfresco.module.org_alfresco_module_rm.capability.CapabilityService; import org.alfresco.module.org_alfresco_module_rm.capability.CapabilityService;

View File

@@ -44,7 +44,7 @@
*/ */
package org.alfresco.repo.web.scripts.roles; package org.alfresco.repo.web.scripts.roles;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.BufferedWriter; import java.io.BufferedWriter;
import java.io.File; import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;

View File

@@ -54,7 +54,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionSchedule;
import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionService; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionService;

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-governance-services-community-repo-parent</artifactId> <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<build> <build>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-amps</artifactId> <artifactId>alfresco-community-repo-amps</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>
@@ -128,9 +128,8 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<!-- SHA-2432 --> <!-- SHA-2432 -->

View File

@@ -27,7 +27,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback; import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
import org.alfresco.repo.web.scripts.admin.NodeBrowserPost; import org.alfresco.repo.web.scripts.admin.NodeBrowserPost;

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<dependencies> <dependencies>
@@ -111,9 +111,8 @@
<!-- provided dependencies --> <!-- provided dependencies -->
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<!-- Test only dependencies, as popped up while running mvn test --> <!-- Test only dependencies, as popped up while running mvn test -->

View File

@@ -26,8 +26,8 @@ import java.net.UnknownHostException;
import java.security.AlgorithmParameters; import java.security.AlgorithmParameters;
import java.util.Arrays; import java.util.Arrays;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.alfresco.encryption.MACUtils.MACInput; import org.alfresco.encryption.MACUtils.MACInput;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;

View File

@@ -21,8 +21,8 @@ package org.alfresco.encryption;
import java.io.IOException; import java.io.IOException;
import java.security.AlgorithmParameters; import java.security.AlgorithmParameters;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.HttpMethod;

View File

@@ -20,13 +20,13 @@ package org.alfresco.web.scripts.servlet;
import java.io.IOException; import java.io.IOException;
import javax.servlet.Filter; import jakarta.servlet.Filter;
import javax.servlet.FilterChain; import jakarta.servlet.FilterChain;
import javax.servlet.FilterConfig; import jakarta.servlet.FilterConfig;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import javax.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
/** /**
* Simple servlet filter to add a 'Cache-Control' HTTP header to a response. * Simple servlet filter to add a 'Cache-Control' HTTP header to a response.
@@ -48,7 +48,7 @@ public class StaticAssetCacheFilter implements Filter
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Filter#init(javax.servlet.FilterConfig) * @see jakarta.servlet.Filter#init(jakarta.servlet.FilterConfig)
*/ */
public void init(FilterConfig config) throws ServletException public void init(FilterConfig config) throws ServletException
{ {
@@ -60,7 +60,7 @@ public class StaticAssetCacheFilter implements Filter
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) * @see jakarta.servlet.Filter#doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
*/ */
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException,
ServletException ServletException
@@ -70,7 +70,7 @@ public class StaticAssetCacheFilter implements Filter
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Filter#destroy() * @see jakarta.servlet.Filter#destroy()
*/ */
public void destroy() public void destroy()
{ {

View File

@@ -21,9 +21,9 @@ package org.alfresco.web.scripts.servlet;
import javax.management.*; import javax.management.*;
import javax.security.auth.x500.X500Principal; import javax.security.auth.x500.X500Principal;
import javax.servlet.*; import jakarta.servlet.*;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.util.Set; import java.util.Set;
@@ -134,7 +134,7 @@ public abstract class X509ServletFilterBase implements Filter
logger.debug("Enforcing X509 request"); logger.debug("Enforcing X509 request");
} }
X509Certificate[] certs = (X509Certificate[])httpRequest.getAttribute("javax.servlet.request.X509Certificate"); X509Certificate[] certs = (X509Certificate[])httpRequest.getAttribute("jakarta.servlet.request.X509Certificate");
if(validCert(certs)) if(validCert(certs))
{ {

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>
@@ -90,9 +90,8 @@
| see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope | see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
--> -->
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<!-- Jakarta... --> <!-- Jakarta... -->
@@ -100,7 +99,6 @@
<groupId>jakarta.activation</groupId> <groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId> <artifactId>jakarta.activation-api</artifactId>
</dependency> </dependency>
<!-- REPO-5047 - Replaces com.sun.activation:javax.activation -->
<dependency> <dependency>
<groupId>com.sun.activation</groupId> <groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId> <artifactId>jakarta.activation</artifactId>
@@ -142,53 +140,11 @@
<groupId>org.apache.chemistry.opencmis</groupId> <groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId> <artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${dependency.opencmis.version}</version> <version>${dependency.opencmis.version}</version>
<exclusions>
<exclusion>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
</exclusion>
<!-- Duplicates classes from com.fasterxml.woodstox:woodstox-core -->
<exclusion>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
</exclusion>
<!-- [ACS-544] Excluded as conflicts with JDK9+ as it includes javax.transaction -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.chemistry.opencmis</groupId> <groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-bindings</artifactId> <artifactId>chemistry-opencmis-server-bindings</artifactId>
<version>${dependency.opencmis.version}</version> <version>${dependency.opencmis.version}</version>
<exclusions>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
<!-- Duplicates classes from jakarta.jws:jakarta.jws-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
</exclusion>
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
<!-- Duplicates classes from jakarta.annotation:jakarta.annotation-api -->
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
<!-- Duplicates classes from com.sun.activation:jakarta.activation -->
<exclusion>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- This is now deployed at: <!-- This is now deployed at:
| http://artifacts.alfresco.com/nexus/content/repositories/thirdparty/org/acegisecurity/acegi-security/0.8.2_patched/ | http://artifacts.alfresco.com/nexus/content/repositories/thirdparty/org/acegisecurity/acegi-security/0.8.2_patched/

View File

@@ -27,7 +27,7 @@ package org.alfresco.util;
import java.io.IOException; import java.io.IOException;
import javax.servlet.ServletContext; import jakarta.servlet.ServletContext;
import org.apache.chemistry.opencmis.commons.server.CmisServiceFactory; import org.apache.chemistry.opencmis.commons.server.CmisServiceFactory;
import org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener; import org.apache.chemistry.opencmis.server.impl.CmisRepositoryContextListener;

1
jakarta-dependencies/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/projects

View File

@@ -0,0 +1,19 @@
## How to build dependencies
```shell
cd jakarta-dependencies
./build-dependencies.sh
```
## How to build the repo
```shell
#Use jakarta-migration branch
mvn clean package -DskipTests -Dmaven.javadoc.skip=true -Pags
```
## With TAS tests compilation
```shell
mvn clean package -DskipTests -Dmaven.javadoc.skip=true -Pags -Pall-tas-tests
```
* requires TAS test framework migration (similar approach to the greenmail/webscripts )
* Search for `//JAKARTA_TO_DO|` in all repositories
* Try running tests

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-client-api</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-client-bindings</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-bindings</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-client-bindings</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-policy</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-server-bindings</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-server-support</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-bindings</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-server-support</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-support</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>chemistry-opencmis-test-tck</artifactId>
<packaging>jar</packaging>
<version>1.0.0-jakarta</version>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-test-tck</artifactId>
<version>${dependency.opencmis.version}</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>binary-transformed-to-jakarta</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>apache-chemistry</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<licenses>
<license>
<name>Apache 2</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<dependency.opencmis.version>1.0.0</dependency.opencmis.version>
<dependency.cxf.version>4.0.2</dependency.cxf.version>
<dependency.woodstox-core.version>6.5.1</dependency.woodstox-core.version>
<dependency.antlr.version>3.5.3</dependency.antlr.version>
<dependency.commons-lang3.version>3.12.0</dependency.commons-lang3.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-bindings</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-support</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-test-tck</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-bindings</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${dependency.cxf.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.angus</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${dependency.cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-policy</artifactId>
<version>${dependency.cxf.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>${dependency.woodstox-core.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>${dependency.antlr.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${dependency.commons-lang3.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>chemistry-opencmis-server-bindings</module>
<module>chemistry-opencmis-server-support</module>
<module>chemistry-opencmis-test-tck</module>
<module>chemistry-opencmis-commons-impl</module>
<module>chemistry-opencmis-commons-api</module>
<module>chemistry-opencmis-client-api</module>
<module>chemistry-opencmis-client-impl</module>
<module>chemistry-opencmis-client-bindings</module>
</modules>
</project>

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>binary-transformed-to-jakarta</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<packaging>jar</packaging>
<version>1.5-jakarta</version>
<licenses>
<license>
<name>Apache 2</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<artifact>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</artifact>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,74 @@
# Jakarta SOAP with Attachments string constants from jakarta.xml.soap-api-1.4.2.jar
javax.xml.soap=jakarta.xml.soap
javax.xml.soap.MetaFactory=jakarta.xml.soap.MetaFactory
javax.xml.soap.character-set-encoding=jakarta.xml.soap.character-set-encoding
javax.xml.soap.write-xml-declaration=jakarta.xml.soap.write-xml-declaration
# Other
javax.xml.soap.SOAPMessage=jakarta.xml.soap.SOAPMessage
# Jakarta XML Binding string constants from jakarta.xml.bind-api-2.3.3.jar
javax.xml.bind=jakarta.xml.bind
javax.xml.bind.JAXBContext=jakarta.xml.bind.JAXBContext
javax.xml.bind.JAXBContextFactory=jakarta.xml.bind.JAXBContextFactory
javax.xml.bind.context.factory=jakarta.xml.bind.context.factory
javax/xml/bind/JAXBContext.class=jakarta/xml/bind/JAXBContext.class
# Other
javax.xml.bind.JAXBElement=jakarta.xml.bind.JAXBElement
javax.xml.bind.annotation.XmlEnum=jakarta.xml.bind.annotation.XmlEnum
com.sun.xml.bind.defaultNamespaceRemap=org.glassfish.jaxb.defaultNamespaceRemap
com.sun.xml.internal.bind.defaultNamespaceRemap=org.glassfish.jaxb.defaultNamespaceRemap
http\://java.sun.com/xml/ns/jaxb=https://jakarta.ee/xml/ns/jaxb
# Jakarta XML Web Services string constants from jakarta.xml.ws-api-2.3.3.jar
javax.xml.ws=jakarta.xml.ws
javax.xml.ws.RespectBindingFeature=jakarta.xml.ws.RespectBindingFeature
javax.xml.ws.binding.attachments.inbound=jakarta.xml.ws.binding.attachments.inbound
javax.xml.ws.binding.attachments.outbound=jakarta.xml.ws.binding.attachments.outbound
javax.xml.ws.handler.message.outbound=jakarta.xml.ws.handler.message.outbound
javax.xml.ws.http.request.headers=jakarta.xml.ws.http.request.headers
javax.xml.ws.http.request.method=jakarta.xml.ws.http.request.method
javax.xml.ws.http.request.pathinfo=jakarta.xml.ws.http.request.pathinfo
javax.xml.ws.http.request.querystring=jakarta.xml.ws.http.request.querystring
javax.xml.ws.http.response.code=jakarta.xml.ws.http.response.code
javax.xml.ws.http.response.headers=jakarta.xml.ws.http.response.headers
javax.xml.ws.reference.parameters=jakarta.xml.ws.reference.parameters
javax.xml.ws.security.auth.password=jakarta.xml.ws.security.auth.password
javax.xml.ws.security.auth.username=jakarta.xml.ws.security.auth.username
javax.xml.ws.service.endpoint.address=jakarta.xml.ws.service.endpoint.address
javax.xml.ws.servlet.context=jakarta.xml.ws.servlet.context
javax.xml.ws.servlet.request=jakarta.xml.ws.servlet.request
javax.xml.ws.servlet.response=jakarta.xml.ws.servlet.response
javax.xml.ws.session.maintain=jakarta.xml.ws.session.maintain
javax.xml.ws.soap.http.soapaction.uri=jakarta.xml.ws.soap.http.soapaction.uri
javax.xml.ws.soap.http.soapaction.use=jakarta.xml.ws.soap.http.soapaction.use
javax.xml.ws.spi.http.request.cert.X509Certificate=jakarta.xml.ws.spi.http.request.cert.X509Certificate
javax.xml.ws.spi.http.request.cipher.suite=jakarta.xml.ws.spi.http.request.cipher.suite
javax.xml.ws.spi.http.request.key.size=jakarta.xml.ws.spi.http.request.key.size
javax.xml.ws.wsdl.description=jakarta.xml.ws.wsdl.description
javax.xml.ws.wsdl.interface=jakarta.xml.ws.wsdl.interface
javax.xml.ws.wsdl.operation=jakarta.xml.ws.wsdl.operation
javax.xml.ws.wsdl.port=jakarta.xml.ws.wsdl.port
javax.xml.ws.wsdl.service=jakarta.xml.ws.wsdl.service
# Other
javax.xml.ws.addressing.context=jakarta.xml.ws.addressing.context
javax.xml.ws.addressing.context.inbound=jakarta.xml.ws.addressing.context.inbound
javax.xml.ws.addressing.context.outbound=jakarta.xml.ws.addressing.context.outbound
javax.jws.HandlerChain=jakarta.jws.HandlerChain
javax.jws.WebService=jakarta.jws.WebService
javax.xml.ws.Action=jakarta.xml.ws.Action
javax.xml.ws.AsyncHandler=jakarta.xml.ws.AsyncHandler
javax.xml.ws.BindingType=jakarta.xml.ws.BindingType
javax.xml.ws.FaultAction=jakarta.xml.ws.FaultAction
javax.xml.ws.Holder=jakarta.xml.ws.Holder
javax.xml.ws.RespectBinding=jakarta.xml.ws.RespectBinding
javax.xml.ws.Response=jakarta.xml.ws.Response
javax.xml.ws.Service=jakarta.xml.ws.Service
javax.xml.ws.ServiceMode=jakarta.xml.ws.ServiceMode
javax.xml.ws.soap.Addressing=jakarta.xml.ws.soap.Addressing
javax.xml.ws.soap.MTOM=jakarta.xml.ws.soap.MTOM
javax.xml.ws.spi.Provider=jakarta.xml.ws.spi.Provider
javax.xml.ws.WebServiceProvider=jakarta.xml.ws.WebServiceProvider
javax.xml.ws.wsaddressing.W3CEndpointReference=jakarta.xml.ws.wsaddressing.W3CEndpointReference
com.ibm.xml.xlxp2.jaxb.JAXBContextFactory=org.glassfish.jaxb.runtime.v2.JAXBContextFactory
com.sun.xml.bind.v2.ContextFactory=org.glassfish.jaxb.runtime.v2.ContextFactory

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>jakarta-dependencies</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>binary-transformed-to-jakarta</artifactId>
<packaging>pom</packaging>
<properties>
<rules.path>${maven.multiModuleProjectDirectory}/binary-transformed-to-jakarta</rules.path>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<rules>
<renames>${rules.path}/rename-rules.properties</renames>
<versions>${rules.path}/version-rules.properties</versions>
<directs>${rules.path}/direct-rules.properties</directs>
</rules>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>apache-chemistry</module>
<module>commons-fileupload</module>
</modules>
</project>

View File

@@ -0,0 +1,40 @@
javax.activation=jakarta.activation
javax.annotation.security=jakarta.annotation.security
javax.annotation.sql=jakarta.annotation.sql
javax.annotation=jakarta.annotation
javax.mail.event=jakarta.mail.event
javax.mail.internet=jakarta.mail.internet
javax.mail.search=jakarta.mail.search
javax.mail.util=jakarta.mail.util
javax.mail=jakarta.mail
javax.servlet.annotation=jakarta.servlet.annotation
javax.servlet.descriptor=jakarta.servlet.descriptor
javax.servlet.http=jakarta.servlet.http
javax.servlet.resources=jakarta.servlet.resources
javax.servlet=jakarta.servlet
javax.jms=jakarta.jms
javax.jws.soap=jakarta.jws.soap
javax.jws=jakarta.jws
javax.xml.bind.annotation.adapters=jakarta.xml.bind.annotation.adapters
javax.xml.bind.annotation=jakarta.xml.bind.annotation
javax.xml.bind.attachment=jakarta.xml.bind.attachment
javax.xml.bind.helpers=jakarta.xml.bind.helpers
javax.xml.bind.util=jakarta.xml.bind.util
javax.xml.bind=jakarta.xml.bind
javax.xml.soap=jakarta.xml.soap
javax.xml.ws.handler.soap=jakarta.xml.ws.handler.soap
javax.xml.ws.handler=jakarta.xml.ws.handler
javax.xml.ws.http=jakarta.xml.ws.http
javax.xml.ws.soap=jakarta.xml.ws.soap
javax.xml.ws.spi.http=jakarta.xml.ws.spi.http
javax.xml.ws.spi=jakarta.xml.ws.spi
javax.xml.ws.wsaddressing=jakarta.xml.ws.wsaddressing
javax.xml.ws=jakarta.xml.ws

View File

@@ -0,0 +1,40 @@
jakarta.activation=[2.0,3)
jakarta.annotation.security=[2.0,3)
jakarta.annotation.sql=[2.0,3)
jakarta.annotation=[2.0,3)
javax.mail.event=[2.0,3)
javax.mail.internet=[2.0,3)
javax.mail.search=[2.0,3)
javax.mail.util=[2.0,3)
javax.mail=[2.0,3)
jakarta.servlet.annotation=[5.0,6)
jakarta.servlet.descriptor=[5.0,6)
jakarta.servlet.http=[5.0,6)
jakarta.servlet.resources=[5.0,6)
jakarta.servlet=[5.0,6)
jakarta.jms=[3.0,4)
jakarta.jws.soap=[3.0,4)
jakarta.jws=[3.0,4)
jakarta.xml.bind.annotation.adapters=[3.0,4)
jakarta.xml.bind.annotation=[3.0,4)
jakarta.xml.bind.attachment=[3.0,4)
jakarta.xml.bind.helpers=[3.0,4)
jakarta.xml.bind.util=[3.0,4)
jakarta.xml.bind=[3.0,4)
jakarta.xml.soap=[3.0,4)
jakarta.xml.ws.handler.soap=[3.0,4)
jakarta.xml.ws.handler=[3.0,4)
jakarta.xml.ws.http=[3.0,4)
jakarta.xml.ws.soap=[3.0,4)
jakarta.xml.ws.spi.http=[3.0,4)
jakarta.xml.ws.spi=[3.0,4)
jakarta.xml.ws.wsaddressing=[3.0,4)
jakarta.xml.ws=[3.0,4)

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -e
HTTP_CREDENTIALS=$1
DEPENDENCIES_DIR="$(dirname "${BASH_SOURCE[0]}")"
mvn -f $DEPENDENCIES_DIR -B clean install
function clone_and_install {
local project_path=$DEPENDENCIES_DIR/projects/$1
local branch_name=${2:-jakarta-migration}
if [ ! -d "$project_path" ]; then
if [ -z "$HTTP_CREDENTIALS" ]; then
git clone --single-branch --branch $branch_name git@github.com:Alfresco/$1.git $project_path
else
git clone --single-branch --branch $branch_name https://${HTTP_CREDENTIALS}@github.com/Alfresco/$1.git $project_path
fi
fi
mvn -f $project_path -B clean install -DskipTests -Dmaven.javadoc.skip=true
}
clone_and_install surf-webscripts
clone_and_install alfresco-greenmail
clone_and_install alfresco-tas-utility
clone_and_install alfresco-tas-email
clone_and_install alfresco-office-services
#Ugly hack to deal with AOS<->REPO circular dependencies
mvn -f $DEPENDENCIES_DIR/.. install -pl :alfresco-remote-api -am -DskipTests -Dmaven.javadoc.skip=true
clone_and_install alfresco-aos-module

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco</groupId>
<artifactId>jakarta-dependencies</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<version>0.5.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>binary-transformed-to-jakarta</module>
</modules>
</project>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<dependencies> <dependencies>
@@ -31,6 +31,11 @@
<artifactId>maven-artifact</artifactId> <artifactId>maven-artifact</artifactId>
<version>${dependency.maven-artifact.version}</version> <version>${dependency.maven-artifact.version}</version>
</dependency> </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId> <artifactId>mockito-core</artifactId>

View File

@@ -9,6 +9,6 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-packaging</artifactId> <artifactId>alfresco-community-repo-packaging</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
</project> </project>

View File

@@ -1,6 +1,6 @@
# Fetch image based on Tomcat 9.0, Java 17 and Rocky Linux 8 # Fetch image based on Tomcat 9.0, Java 17 and Rocky Linux 8
# More infos about this image: https://github.com/Alfresco/alfresco-docker-base-tomcat # More infos about this image: https://github.com/Alfresco/alfresco-docker-base-tomcat
FROM alfresco/alfresco-base-tomcat:tomcat9-jre17-rockylinux8-202303081618 FROM quay.io/alfresco/alfresco-base-tomcat:tomcat10-jre17-rockylinux8
# Set default docker_context. # Set default docker_context.
ARG resource_path=target ARG resource_path=target
@@ -48,7 +48,7 @@ COPY ${resource_path}/amps ${TOMCAT_DIR}/amps
# Install amps on alfresco.war # Install amps on alfresco.war
RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install \ RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install \
${TOMCAT_DIR}/amps \ ${TOMCAT_DIR}/amps \
${TOMCAT_DIR}/webapps/alfresco -directory -nobackup ${TOMCAT_DIR}/webapps/alfresco -directory -nobackup -force
# Move the log file # Move the log file
RUN sed -i -e "s_appender.rolling.fileName\=alfresco.log_appender.rolling.fileName\=${TOMCAT_DIR}/logs\/alfresco.log_" \ RUN sed -i -e "s_appender.rolling.fileName\=alfresco.log_appender.rolling.fileName\=${TOMCAT_DIR}/logs\/alfresco.log_" \

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-packaging</artifactId> <artifactId>alfresco-community-repo-packaging</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-packaging</artifactId> <artifactId>alfresco-community-repo-packaging</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-tests</artifactId> <artifactId>alfresco-community-repo-tests</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<organization> <organization>
@@ -18,7 +18,6 @@
<properties> <properties>
<maven.build.sourceVersion>17</maven.build.sourceVersion> <maven.build.sourceVersion>17</maven.build.sourceVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<chemistry-opencmis-commons-api>1.1.0</chemistry-opencmis-commons-api>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
<maven-release.version>2.5.3</maven-release.version> <maven-release.version>2.5.3</maven-release.version>
<java.version>17</java.version> <java.version>17</java.version>
@@ -69,13 +68,6 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- open cmis settings -->
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${chemistry-opencmis-commons-api}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@@ -280,16 +280,26 @@ public class CmisUtil
protected boolean isPrivateWorkingCopy() protected boolean isPrivateWorkingCopy()
{ {
boolean result; final Document document;
try try
{ {
result = getPWCDocument().isVersionSeriesPrivateWorkingCopy(); document = getPWCDocument();
} }
catch (CmisVersioningException cmisVersioningException) catch (CmisVersioningException cmisVersioningException)
{ {
result = false; return false;
} }
return result;
if (Boolean.FALSE.equals(document.isVersionable())) return false;
if (Boolean.FALSE.equals(document.isVersionSeriesCheckedOut())) return false;
final Boolean isPWC = document.isPrivateWorkingCopy();
if (isPWC != null) return isPWC;
final String vsCoId = document.getVersionSeriesCheckedOutId();
if (vsCoId == null) return false;
return vsCoId.equals(document.getId());
} }
/** /**

View File

@@ -9,7 +9,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-tests</artifactId> <artifactId>alfresco-community-repo-tests</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<developers> <developers>
@@ -31,6 +31,11 @@
<artifactId>email</artifactId> <artifactId>email</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@@ -11,8 +11,8 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
public class ImapCheckFolderTests extends EmailTest public class ImapCheckFolderTests extends EmailTest
{ {

View File

@@ -10,8 +10,8 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
public class ImapCopyFolderTests extends EmailTest public class ImapCopyFolderTests extends EmailTest
{ {

View File

@@ -1,6 +1,6 @@
package org.alfresco.email.imap; package org.alfresco.email.imap;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
import org.alfresco.dataprep.CMISUtil; import org.alfresco.dataprep.CMISUtil;
import org.alfresco.email.EmailTest; import org.alfresco.email.EmailTest;

View File

@@ -12,7 +12,7 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
/** /**
* Tests for Create Folder action using IMAP client * Tests for Create Folder action using IMAP client

View File

@@ -10,7 +10,7 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
public class ImapDeleteFolderTests extends EmailTest public class ImapDeleteFolderTests extends EmailTest
{ {

View File

@@ -9,7 +9,7 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
public class ImapDeleteMessagesTests extends EmailTest public class ImapDeleteMessagesTests extends EmailTest
{ {

View File

@@ -8,7 +8,7 @@ import org.alfresco.utility.testrail.ExecutionType;
import org.alfresco.utility.testrail.annotation.TestRail; import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.Flags; import jakarta.mail.Flags;
public class ImapMessageFlagsTests extends EmailTest public class ImapMessageFlagsTests extends EmailTest
{ {

View File

@@ -1,6 +1,6 @@
package org.alfresco.email.imap; package org.alfresco.email.imap;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import org.alfresco.dataprep.CMISUtil; import org.alfresco.dataprep.CMISUtil;
import org.alfresco.email.EmailTest; import org.alfresco.email.EmailTest;

View File

@@ -10,8 +10,8 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.Flags; import jakarta.mail.Flags;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
import java.io.IOException; import java.io.IOException;
public class ImapReadMessagesTests extends EmailTest public class ImapReadMessagesTests extends EmailTest

View File

@@ -1,6 +1,6 @@
package org.alfresco.email.imap; package org.alfresco.email.imap;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import org.alfresco.email.EmailTest; import org.alfresco.email.EmailTest;
import org.alfresco.utility.constants.UserRole; import org.alfresco.utility.constants.UserRole;

View File

@@ -8,8 +8,8 @@ import org.alfresco.utility.testrail.annotation.TestRail;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
public class ImapSitesTests extends EmailTest public class ImapSitesTests extends EmailTest
{ {

View File

@@ -9,7 +9,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-tests</artifactId> <artifactId>alfresco-community-repo-tests</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<developers> <developers>

View File

@@ -2,7 +2,7 @@ package org.alfresco.tas.integration;
import static org.alfresco.utility.report.log.Step.STEP; import static org.alfresco.utility.report.log.Step.STEP;
import javax.mail.FolderNotFoundException; import jakarta.mail.FolderNotFoundException;
import org.alfresco.rest.model.RestCommentModel; import org.alfresco.rest.model.RestCommentModel;
import org.alfresco.rest.model.RestDeploymentModel; import org.alfresco.rest.model.RestDeploymentModel;

View File

@@ -8,8 +8,8 @@ import io.restassured.RestAssured;
import java.io.File; import java.io.File;
import javax.json.JsonObject; import javax.json.JsonObject;
import javax.mail.Flags; import jakarta.mail.Flags;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
import org.alfresco.dataprep.CMISUtil; import org.alfresco.dataprep.CMISUtil;
import org.alfresco.dataprep.SiteService.Visibility; import org.alfresco.dataprep.SiteService.Visibility;

View File

@@ -5,7 +5,7 @@ import static org.alfresco.utility.report.log.Step.STEP;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.mail.MessagingException; import jakarta.mail.MessagingException;
import org.alfresco.rest.model.RestCommentModel; import org.alfresco.rest.model.RestCommentModel;
import org.alfresco.rest.model.RestErrorModel; import org.alfresco.rest.model.RestErrorModel;

View File

@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-tests</artifactId> <artifactId>alfresco-community-repo-tests</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>
@@ -45,13 +45,9 @@
</profiles> </profiles>
<dependencies> <dependencies>
<!-- fix the info log messages related to Could not instantiate TestExecutionListener
[org.springframework.test.context.web.ServletTestExecutionListener -->
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency> </dependency>
<!-- alfresco tester settings --> <!-- alfresco tester settings -->

View File

@@ -86,6 +86,7 @@ import org.json.JSONObject;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.testng.Assert; import org.testng.Assert;
@@ -630,37 +631,27 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
STEP(restRequest.toString()); STEP(restRequest.toString());
Response returnedResponse; final Response returnedResponse;
switch (restRequest.getHttpMethod()) HttpMethod httpMethod = restRequest.getHttpMethod();
{ if (HttpMethod.GET.equals(httpMethod))
case GET: returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn();
returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn(); else if (HttpMethod.DELETE.equals(httpMethod))
break; returnedResponse = onRequest().delete(restRequest.getPath(), restRequest.getPathParams()).andReturn();
case DELETE: else if (HttpMethod.HEAD.equals(httpMethod))
returnedResponse = onRequest().delete(restRequest.getPath(), restRequest.getPathParams()).andReturn(); returnedResponse = onRequest().head(restRequest.getPath(), restRequest.getPathParams()).andReturn();
break; else if (HttpMethod.OPTIONS.equals(httpMethod))
case HEAD: returnedResponse = onRequest().options(restRequest.getPath(), restRequest.getPathParams()).andReturn();
returnedResponse = onRequest().head(restRequest.getPath(), restRequest.getPathParams()).andReturn(); else if (HttpMethod.POST.equals(httpMethod))
break; returnedResponse = onRequest().body(restRequest.getBody())
case OPTIONS: .post(restRequest.getPath(), restRequest.getPathParams()).andReturn();
returnedResponse = onRequest().options(restRequest.getPath(), restRequest.getPathParams()).andReturn(); else if (HttpMethod.PUT.equals(httpMethod))
break; returnedResponse = onRequest().body(restRequest.getBody())
case POST: .contentType(ContentType.JSON.withCharset(restRequest.getContentType()))
returnedResponse = onRequest().body(restRequest.getBody()) .put(restRequest.getPath(), restRequest.getPathParams()).andReturn();
.post(restRequest.getPath(), restRequest.getPathParams()).andReturn(); else if (HttpMethod.TRACE.equals(httpMethod))
break; returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn();
case PUT: else
returnedResponse = onRequest().body(restRequest.getBody()) returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn();
.contentType(ContentType.JSON.withCharset(restRequest.getContentType()))
.put(restRequest.getPath(), restRequest.getPathParams()).andReturn();
break;
case TRACE:
returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn();
break;
default:
returnedResponse = onRequest().get(restRequest.getPath(), restRequest.getPathParams()).andReturn();
break;
}
logResponseInformation(restRequest, returnedResponse); logResponseInformation(restRequest, returnedResponse);

View File

@@ -9,7 +9,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-tests</artifactId> <artifactId>alfresco-community-repo-tests</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<developers> <developers>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo-packaging</artifactId> <artifactId>alfresco-community-repo-packaging</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<properties> <properties>
@@ -59,9 +59,8 @@
</dependency> </dependency>
<!-- 'provided' dependencies, not packaged in war --> <!-- 'provided' dependencies, not packaged in war -->
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<!-- Test dependencies --> <!-- Test dependencies -->
<dependency> <dependency>

View File

@@ -25,7 +25,7 @@
*/ */
package org.alfresco.web.app; package org.alfresco.web.app;
import javax.servlet.ServletContextEvent; import jakarta.servlet.ServletContextEvent;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

View File

@@ -30,9 +30,9 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.extensions.surf.util.URLDecoder; import org.springframework.extensions.surf.util.URLDecoder;
import javax.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.StringTokenizer; import java.util.StringTokenizer;
@@ -66,7 +66,7 @@ public class DownloadContentServlet extends HttpServlet
private static final String URL_DIRECT_LONG = "direct"; private static final String URL_DIRECT_LONG = "direct";
/** /**
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse) * @see jakarta.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse)
*/ */
protected void doGet(final HttpServletRequest req, final HttpServletResponse res) protected void doGet(final HttpServletRequest req, final HttpServletResponse res)
throws IOException throws IOException

178
pom.xml
View File

@@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Alfresco Community Repo Parent</name> <name>Alfresco Community Repo Parent</name>
@@ -53,15 +53,15 @@
<dependency.activiti.version>5.23.0</dependency.activiti.version> <dependency.activiti.version>5.23.0</dependency.activiti.version>
<dependency.alfresco-transform-service.version>3.0.0</dependency.alfresco-transform-service.version> <dependency.alfresco-transform-service.version>3.0.0</dependency.alfresco-transform-service.version>
<dependency.alfresco-transform-core.version>4.0.0</dependency.alfresco-transform-core.version> <dependency.alfresco-transform-core.version>4.0.0</dependency.alfresco-transform-core.version>
<dependency.alfresco-greenmail.version>6.9</dependency.alfresco-greenmail.version> <dependency.alfresco-greenmail.version>6.10-SNAPSHOT</dependency.alfresco-greenmail.version>
<dependency.acs-event-model.version>0.0.22</dependency.acs-event-model.version> <dependency.acs-event-model.version>0.0.22</dependency.acs-event-model.version>
<dependency.spring.version>5.3.27</dependency.spring.version> <dependency.spring.version>6.0.9</dependency.spring.version>
<dependency.antlr.version>3.5.3</dependency.antlr.version> <dependency.antlr.version>3.5.3</dependency.antlr.version>
<dependency.jackson.version>2.15.1</dependency.jackson.version> <dependency.jackson.version>2.15.1</dependency.jackson.version>
<dependency.cxf.version>3.5.5</dependency.cxf.version> <dependency.cxf.version>4.0.2</dependency.cxf.version>
<dependency.opencmis.version>1.0.0</dependency.opencmis.version> <dependency.opencmis.version>1.0.0-jakarta</dependency.opencmis.version>
<dependency.webscripts.version>8.44</dependency.webscripts.version> <dependency.webscripts.version>8.43-SNAPSHOT</dependency.webscripts.version>
<dependency.bouncycastle.version>1.70</dependency.bouncycastle.version> <dependency.bouncycastle.version>1.70</dependency.bouncycastle.version>
<dependency.mockito-core.version>4.9.0</dependency.mockito-core.version> <dependency.mockito-core.version>4.9.0</dependency.mockito-core.version>
<dependency.assertj.version>3.24.2</dependency.assertj.version> <dependency.assertj.version>3.24.2</dependency.assertj.version>
@@ -71,6 +71,8 @@
<dependency.gson.version>2.8.9</dependency.gson.version> <dependency.gson.version>2.8.9</dependency.gson.version>
<dependency.httpclient.version>4.5.13</dependency.httpclient.version> <dependency.httpclient.version>4.5.13</dependency.httpclient.version>
<dependency.httpcore.version>4.4.16</dependency.httpcore.version> <dependency.httpcore.version>4.4.16</dependency.httpcore.version>
<dependency.httpcomponents-httpclient5.version>5.2.1</dependency.httpcomponents-httpclient5.version>
<dependency.httpcomponents-httpcore5.version>5.2.1</dependency.httpcomponents-httpcore5.version>
<dependency.commons-httpclient.version>3.1-HTTPCLIENT-1265</dependency.commons-httpclient.version> <dependency.commons-httpclient.version>3.1-HTTPCLIENT-1265</dependency.commons-httpclient.version>
<dependency.xercesImpl.version>2.12.2</dependency.xercesImpl.version> <dependency.xercesImpl.version>2.12.2</dependency.xercesImpl.version>
<dependency.slf4j.version>2.0.7</dependency.slf4j.version> <dependency.slf4j.version>2.0.7</dependency.slf4j.version>
@@ -78,16 +80,16 @@
<dependency.gytheio.version>0.20.0-A1</dependency.gytheio.version> <dependency.gytheio.version>0.20.0-A1</dependency.gytheio.version>
<dependency.groovy.version>3.0.17</dependency.groovy.version> <dependency.groovy.version>3.0.17</dependency.groovy.version>
<dependency.tika.version>2.4.1</dependency.tika.version> <dependency.tika.version>2.4.1</dependency.tika.version>
<dependency.spring-security.version>5.8.3</dependency.spring-security.version> <dependency.spring-security.version>6.1.0</dependency.spring-security.version>
<dependency.truezip.version>7.7.10</dependency.truezip.version> <dependency.truezip.version>7.7.10</dependency.truezip.version>
<dependency.poi.version>5.2.2</dependency.poi.version> <dependency.poi.version>5.2.2</dependency.poi.version>
<dependency.poi-ooxml-lite.version>5.2.3</dependency.poi-ooxml-lite.version> <dependency.poi-ooxml-lite.version>5.2.3</dependency.poi-ooxml-lite.version>
<dependency.jboss.logging.version>3.5.0.Final</dependency.jboss.logging.version> <dependency.jboss.logging.version>3.5.0.Final</dependency.jboss.logging.version>
<dependency.camel.version>3.20.2</dependency.camel.version> <!-- when bumping this version, please keep track/sync with included netty.io dependencies --> <dependency.camel.version>4.0.0-M3</dependency.camel.version> <!-- when bumping this version, please keep track/sync with included netty.io dependencies -->
<dependency.netty.version>4.1.87.Final</dependency.netty.version> <!-- must be in sync with camels transitive dependencies, e.g.: netty-common --> <dependency.netty.version>4.1.87.Final</dependency.netty.version> <!-- must be in sync with camels transitive dependencies, e.g.: netty-common -->
<dependency.netty.qpid.version>4.1.82.Final</dependency.netty.qpid.version> <!-- must be in sync with camels transitive dependencies: native-unix-common/native-epoll/native-kqueue --> <dependency.netty.qpid.version>4.1.82.Final</dependency.netty.qpid.version> <!-- must be in sync with camels transitive dependencies: native-unix-common/native-epoll/native-kqueue -->
<dependency.netty-tcnative.version>2.0.56.Final</dependency.netty-tcnative.version> <!-- must be in sync with camels transitive dependencies --> <dependency.netty-tcnative.version>2.0.56.Final</dependency.netty-tcnative.version> <!-- must be in sync with camels transitive dependencies -->
<dependency.activemq.version>5.17.4</dependency.activemq.version> <dependency.activemq.version>5.18.1</dependency.activemq.version>
<dependency.apache-compress.version>1.23.0</dependency.apache-compress.version> <dependency.apache-compress.version>1.23.0</dependency.apache-compress.version>
<dependency.apache.taglibs.version>1.2.5</dependency.apache.taglibs.version> <dependency.apache.taglibs.version>1.2.5</dependency.apache.taglibs.version>
<dependency.awaitility.version>4.2.0</dependency.awaitility.version> <dependency.awaitility.version>4.2.0</dependency.awaitility.version>
@@ -96,22 +98,26 @@
<dependency.maven-filtering.version>3.1.1</dependency.maven-filtering.version> <dependency.maven-filtering.version>3.1.1</dependency.maven-filtering.version>
<dependency.maven-artifact.version>3.8.6</dependency.maven-artifact.version> <dependency.maven-artifact.version>3.8.6</dependency.maven-artifact.version>
<dependency.jdom2.version>2.0.6.1</dependency.jdom2.version> <dependency.jdom2.version>2.0.6.1</dependency.jdom2.version>
<dependency.pooled-jms.version>3.1.0</dependency.pooled-jms.version>
<dependency.jakarta-jaxb-api.version>2.3.3</dependency.jakarta-jaxb-api.version> <dependency.jakarta-ee-jaxb-api.version>3.0.1</dependency.jakarta-ee-jaxb-api.version>
<dependency.jakarta-ws-api.version>2.3.3</dependency.jakarta-ws-api.version> <dependency.java-ee-jaxb-api.version>2.3.3</dependency.java-ee-jaxb-api.version>
<dependency.jakarta-soap-api.version>1.4.2</dependency.jakarta-soap-api.version> <dependency.jakarta-ws-api.version>3.0.1</dependency.jakarta-ws-api.version>
<dependency.jakarta-activation-api.version>1.2.2</dependency.jakarta-activation-api.version> <dependency.jakarta-soap-api.version>2.0.1</dependency.jakarta-soap-api.version>
<dependency.jakarta-annotation-api.version>2.1.1</dependency.jakarta-annotation-api.version> <dependency.jakarta-annotation-api.version>2.1.1</dependency.jakarta-annotation-api.version>
<dependency.jakarta-transaction-api.version>1.3.3</dependency.jakarta-transaction-api.version> <dependency.jakarta-transaction-api.version>1.3.3</dependency.jakarta-transaction-api.version>
<dependency.jakarta-jws-api.version>2.1.0</dependency.jakarta-jws-api.version> <dependency.jakarta-jws-api.version>3.0.0</dependency.jakarta-jws-api.version>
<dependency.jakarta-mail-api.version>1.6.5</dependency.jakarta-mail-api.version> <dependency.jakarta-ee-mail.version>2.0.1</dependency.jakarta-ee-mail.version>
<dependency.jakarta-ee-activation.version>2.0.1</dependency.jakarta-ee-activation.version>
<dependency.jakarta-ee-jms.version>3.0.0</dependency.jakarta-ee-jms.version>
<dependency.java-ee-activation.version>1.2.0</dependency.java-ee-activation.version>
<dependency.jakarta-json-api.version>1.1.6</dependency.jakarta-json-api.version> <dependency.jakarta-json-api.version>1.1.6</dependency.jakarta-json-api.version>
<dependency.jakarta-json-path.version>2.8.0</dependency.jakarta-json-path.version> <dependency.jakarta-json-path.version>2.8.0</dependency.jakarta-json-path.version>
<dependency.json-smart.version>2.4.11</dependency.json-smart.version> <dependency.json-smart.version>2.4.11</dependency.json-smart.version>
<dependency.jakarta-rpc-api.version>1.1.4</dependency.jakarta-rpc-api.version> <dependency.jakarta-rpc-api.version>1.1.4</dependency.jakarta-rpc-api.version>
<alfresco.googledrive.version>3.4.1</alfresco.googledrive.version> <alfresco.googledrive.version>3.4.1</alfresco.googledrive.version>
<alfresco.aos-module.version>1.6.1</alfresco.aos-module.version> <alfresco.aos-module.version>1.6.1-A2-SNAPSHOT</alfresco.aos-module.version>
<alfresco.api-explorer.version>23.1.0-A1</alfresco.api-explorer.version> <!-- Also in alfresco-enterprise-share --> <alfresco.api-explorer.version>23.1.0-A1</alfresco.api-explorer.version> <!-- Also in alfresco-enterprise-share -->
<alfresco.maven-plugin.version>2.2.0</alfresco.maven-plugin.version> <alfresco.maven-plugin.version>2.2.0</alfresco.maven-plugin.version>
@@ -121,9 +127,9 @@
<dependency.mysql.version>8.0.30</dependency.mysql.version> <dependency.mysql.version>8.0.30</dependency.mysql.version>
<dependency.mysql-image.version>8</dependency.mysql-image.version> <dependency.mysql-image.version>8</dependency.mysql-image.version>
<dependency.mariadb.version>2.7.4</dependency.mariadb.version> <dependency.mariadb.version>2.7.4</dependency.mariadb.version>
<dependency.tas-utility.version>4.0.3</dependency.tas-utility.version> <dependency.tas-utility.version>4.0.4-SNAPSHOT</dependency.tas-utility.version>
<dependency.rest-assured.version>5.3.1</dependency.rest-assured.version> <dependency.rest-assured.version>5.3.1</dependency.rest-assured.version>
<dependency.tas-email.version>1.21</dependency.tas-email.version> <dependency.tas-email.version>1.23-SNAPSHOT</dependency.tas-email.version>
<dependency.tas-webdav.version>1.16</dependency.tas-webdav.version> <dependency.tas-webdav.version>1.16</dependency.tas-webdav.version>
<dependency.tas-ftp.version>1.17</dependency.tas-ftp.version> <dependency.tas-ftp.version>1.17</dependency.tas-ftp.version>
<dependency.tas-dataprep.version>2.6</dependency.tas-dataprep.version> <dependency.tas-dataprep.version>2.6</dependency.tas-dataprep.version>
@@ -169,12 +175,12 @@
<dependency> <dependency>
<groupId>jakarta.xml.bind</groupId> <groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId> <artifactId>jakarta.xml.bind-api</artifactId>
<version>${dependency.jakarta-jaxb-api.version}</version> <version>${dependency.jakarta-ee-jaxb-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.glassfish.jaxb</groupId> <groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId> <artifactId>jaxb-runtime</artifactId>
<version>${dependency.jakarta-jaxb-api.version}</version> <version>${dependency.jakarta-ee-jaxb-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -189,17 +195,6 @@
<version>${dependency.jakarta-soap-api.version}</version> <version>${dependency.jakarta-soap-api.version}</version>
</dependency> </dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>${dependency.jakarta-activation-api.version}</version>
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
<version>${dependency.jakarta-activation-api.version}</version>
</dependency>
<dependency> <dependency>
<groupId>jakarta.annotation</groupId> <groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId> <artifactId>jakarta.annotation-api</artifactId>
@@ -218,15 +213,51 @@
<version>${dependency.jakarta-jws-api.version}</version> <version>${dependency.jakarta-jws-api.version}</version>
</dependency> </dependency>
<dependency> <!-- <dependency>-->
<groupId>jakarta.mail</groupId> <!-- <groupId>com.sun.mail</groupId>-->
<artifactId>jakarta.mail-api</artifactId> <!-- <artifactId>javax.mail</artifactId>-->
<version>${dependency.jakarta-mail-api.version}</version> <!-- <version>${dependency.java-ee-mail.version}</version>-->
</dependency> <!-- </dependency>-->
<dependency> <dependency>
<groupId>com.sun.mail</groupId> <groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId> <artifactId>jakarta.mail</artifactId>
<version>${dependency.jakarta-mail-api.version}</version> <version>${dependency.jakarta-ee-mail.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>${dependency.jakarta-ee-mail.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
<version>${dependency.jakarta-ee-activation.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>${dependency.jakarta-ee-activation.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>${dependency.java-ee-activation.version}</version>
</dependency>
<dependency>
<groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId>
<version>${dependency.jakarta-ee-jms.version}</version>
</dependency>
<dependency>
<groupId>org.messaginghub</groupId>
<artifactId>pooled-jms</artifactId>
<version>${dependency.pooled-jms.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -262,6 +293,33 @@
<version>${dependency.jakarta-rpc-api.version}</version> <version>${dependency.jakarta-rpc-api.version}</version>
</dependency> </dependency>
<!--CMIS-->
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-bindings</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-api</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>${dependency.opencmis.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-jlan-embed</artifactId> <artifactId>alfresco-jlan-embed</artifactId>
@@ -346,6 +404,16 @@
<artifactId>commons-httpclient</artifactId> <artifactId>commons-httpclient</artifactId>
<version>${dependency.commons-httpclient.version}</version> <version>${dependency.commons-httpclient.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${dependency.httpcomponents-httpclient5.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>${dependency.httpcomponents-httpcore5.version}</version>
</dependency>
<dependency> <dependency>
<groupId>commons-logging</groupId> <groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId> <artifactId>commons-logging</artifactId>
@@ -385,7 +453,7 @@
<dependency> <dependency>
<groupId>commons-fileupload</groupId> <groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId> <artifactId>commons-fileupload</artifactId>
<version>1.5</version> <version>1.5-jakarta</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -734,9 +802,16 @@
<!-- provided dependencies --> <!-- provided dependencies -->
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<version>3.0.1</version> <version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
<version>3.1.1</version>
<scope>provided</scope>
</dependency> </dependency>
<!-- Test only dependencies, as popped up while running mvn test --> <!-- Test only dependencies, as popped up while running mvn test -->
@@ -791,22 +866,6 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-activemq</artifactId>
<version>${dependency.camel.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
</exclusion>
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<!-- If you are going to bump dependency.camel.version, please check if the netty-codec-http has higher version that the one above.--> <!-- If you are going to bump dependency.camel.version, please check if the netty-codec-http has higher version that the one above.-->
<groupId>org.apache.camel</groupId> <groupId>org.apache.camel</groupId>
@@ -825,11 +884,6 @@
<artifactId>camel-jackson</artifactId> <artifactId>camel-jackson</artifactId>
<version>${dependency.camel.version}</version> <version>${dependency.camel.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-directvm</artifactId>
<version>${dependency.camel.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.camel</groupId> <groupId>org.apache.camel</groupId>
<artifactId>camel-direct</artifactId> <artifactId>camel-direct</artifactId>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId> <artifactId>alfresco-community-repo</artifactId>
<version>23.1.0.153-SNAPSHOT</version> <version>23.1.0.155-SNAPSHOT</version>
</parent> </parent>
<dependencies> <dependencies>
@@ -36,9 +36,12 @@
<artifactId>jackson-annotations</artifactId> <artifactId>jackson-annotations</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope> </dependency>
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
@@ -59,22 +62,8 @@
<groupId>org.apache.chemistry.opencmis</groupId> <groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-test-tck</artifactId> <artifactId>chemistry-opencmis-test-tck</artifactId>
<version>${dependency.opencmis.version}</version> <version>${dependency.opencmis.version}</version>
<exclusions> <scope>test</scope>
<!-- REPO-5009 Excluded to avoid duplicated classes with javax.jws:javax.jws-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
</exclusion>
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
</exclusions>
<!-- <scope>test</scope> -->
</dependency> </dependency>
<!-- the cxf libs were updated, see dependencyManagement section -->
<!-- Test dependencies --> <!-- Test dependencies -->
<dependency> <dependency>
@@ -130,7 +119,7 @@
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId> <artifactId>jetty-server</artifactId>
<version>10.0.14</version> <version>11.0.15</version>
<scope>test</scope> <scope>test</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
@@ -142,13 +131,13 @@
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-security</artifactId> <artifactId>jetty-security</artifactId>
<version>10.0.11</version> <version>11.0.15</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId> <artifactId>jetty-webapp</artifactId>
<version>10.0.11</version> <version>11.0.15</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -157,21 +146,10 @@
<version>2.3</version> <version>2.3</version>
<scope>test</scope> <scope>test</scope>
<exclusions> <exclusions>
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api --> <exclusion>
<exclusion> <groupId>*</groupId>
<groupId>org.apache.geronimo.specs</groupId> <artifactId>*</artifactId>
<artifactId>geronimo-jta_1.1_spec</artifactId> </exclusion>
</exclusion>
<!-- REPO-5009 Excluded to avoid duplicated classes with javax.jws:javax.jws-api -->
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
</exclusion>
<!-- MNT-20557: Excluding javax.annotation:javax.annotation-api, jakarta.annotation:jakarta.annotation-api will be used instead -->
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
import org.alfresco.repo.tenant.TenantUtil; import org.alfresco.repo.tenant.TenantUtil;

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServlet;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet; import org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet;

View File

@@ -23,22 +23,22 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
/** /**
* Generates an OpenCMIS base url based on the request, repository id and binding. * Generates an OpenCMIS base url based on the request, repository id and binding.
* *
* @author steveglover * @author steveglover
* *
*/ */
public interface BaseUrlGenerator public interface BaseUrlGenerator
{ {
String getContextPath(HttpServletRequest httpReq); String getContextPath(HttpServletRequest httpReq);
String getServletPath(HttpServletRequest req); String getServletPath(HttpServletRequest req);
String getBaseUrl(HttpServletRequest req, String repositoryId, Binding binding); String getBaseUrl(HttpServletRequest req, String repositoryId, Binding binding);
String getRequestURI(HttpServletRequest req, String repositoryId, String operation, String id); String getRequestURI(HttpServletRequest req, String repositoryId, String operation, String id);
} }

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServlet;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
import org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet; import org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet;

View File

@@ -25,31 +25,14 @@
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.Principal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import javax.servlet.AsyncContext; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.DispatcherType; import jakarta.servlet.http.HttpServletRequestWrapper;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.AuthenticationUtil;
@@ -70,10 +53,9 @@ import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime
* Wraps an OpenCMIS HttpServletRequest, mapping urls and adding servlet attributes specific to the Alfresco implementation of OpenCMIS. * Wraps an OpenCMIS HttpServletRequest, mapping urls and adding servlet attributes specific to the Alfresco implementation of OpenCMIS.
*/ */
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public class CMISHttpServletRequest implements HttpServletRequest public class CMISHttpServletRequest extends HttpServletRequestWrapper
{ {
protected WebScriptRequest req; protected WebScriptRequest req;
protected HttpServletRequest httpReq;
protected String networkId; protected String networkId;
protected String operation; protected String operation;
protected String id; // object id (or path for browser binding) protected String id; // object id (or path for browser binding)
@@ -85,6 +67,7 @@ public class CMISHttpServletRequest implements HttpServletRequest
public CMISHttpServletRequest(WebScriptRequest req, String serviceName, BaseUrlGenerator baseUrlGenerator, Binding binding, Descriptor currentDescriptor, public CMISHttpServletRequest(WebScriptRequest req, String serviceName, BaseUrlGenerator baseUrlGenerator, Binding binding, Descriptor currentDescriptor,
TenantAdminService tenantAdminService) TenantAdminService tenantAdminService)
{ {
super(WebScriptServletRuntime.getHttpServletRequest(req));
this.req = req; this.req = req;
this.serviceName = serviceName; this.serviceName = serviceName;
this.baseUrlGenerator = baseUrlGenerator; this.baseUrlGenerator = baseUrlGenerator;
@@ -119,13 +102,17 @@ public class CMISHttpServletRequest implements HttpServletRequest
Match match = req.getServiceMatch(); Match match = req.getServiceMatch();
Map<String, String> templateVars = match.getTemplateVars(); Map<String, String> templateVars = match.getTemplateVars();
HttpServletRequest httpReq = WebScriptServletRuntime.getHttpServletRequest(req);
this.httpReq = httpReq;
this.operation = templateVars.get("operation"); this.operation = templateVars.get("operation");
this.id = templateVars.get("id"); this.id = templateVars.get("id");
addAttributes(); addAttributes();
} }
@Override
public HttpServletRequest getRequest()
{
return (HttpServletRequest) super.getRequest();
}
/* /*
* Recursively unwrap req if it is a WrappingWebScriptRequest * Recursively unwrap req if it is a WrappingWebScriptRequest
@@ -145,9 +132,9 @@ public class CMISHttpServletRequest implements HttpServletRequest
{ {
if(networkId != null) if(networkId != null)
{ {
httpReq.setAttribute(Constants.PARAM_REPOSITORY_ID, networkId); super.setAttribute(Constants.PARAM_REPOSITORY_ID, networkId);
} }
httpReq.setAttribute("serviceName", serviceName); super.setAttribute("serviceName", serviceName);
} }
@Override @Override
@@ -155,11 +142,11 @@ public class CMISHttpServletRequest implements HttpServletRequest
{ {
if(arg0.equals(Dispatcher.BASE_URL_ATTRIBUTE)) if(arg0.equals(Dispatcher.BASE_URL_ATTRIBUTE))
{ {
return baseUrlGenerator.getBaseUrl(this, networkId, binding); return baseUrlGenerator.getBaseUrl(getRequest(), networkId, binding);
} }
else else
{ {
return httpReq.getAttribute(arg0); return super.getAttribute(arg0);
} }
} }
@@ -167,7 +154,7 @@ public class CMISHttpServletRequest implements HttpServletRequest
@Override @Override
public Enumeration getAttributeNames() public Enumeration getAttributeNames()
{ {
Enumeration e = httpReq.getAttributeNames(); Enumeration e = super.getAttributeNames();
List attrNames = new ArrayList(); List attrNames = new ArrayList();
while(e.hasMoreElements()) while(e.hasMoreElements())
{ {
@@ -190,60 +177,6 @@ public class CMISHttpServletRequest implements HttpServletRequest
}; };
} }
@Override
public String getCharacterEncoding()
{
return httpReq.getCharacterEncoding();
}
@Override
public int getContentLength()
{
return httpReq.getContentLength();
}
@Override
public String getContentType()
{
return httpReq.getContentType();
}
@Override
public ServletInputStream getInputStream() throws IOException
{
return httpReq.getInputStream();
}
@Override
public String getLocalAddr()
{
return httpReq.getLocalAddr();
}
@Override
public String getLocalName()
{
return httpReq.getLocalName();
}
@Override
public int getLocalPort()
{
return httpReq.getLocalPort();
}
@Override
public Locale getLocale()
{
return httpReq.getLocale();
}
@Override
public Enumeration getLocales()
{
return httpReq.getLocales();
}
@Override @Override
public String getParameter(String arg0) public String getParameter(String arg0)
{ {
@@ -251,14 +184,14 @@ public class CMISHttpServletRequest implements HttpServletRequest
{ {
return networkId; return networkId;
} }
return httpReq.getParameter(arg0); return super.getParameter(arg0);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
public Map getParameterMap() public Map getParameterMap()
{ {
Map map = httpReq.getParameterMap(); Map map = super.getParameterMap();
Map ret = new HashedMap(map); Map ret = new HashedMap(map);
if(networkId != null) if(networkId != null)
{ {
@@ -271,7 +204,7 @@ public class CMISHttpServletRequest implements HttpServletRequest
@Override @Override
public Enumeration getParameterNames() public Enumeration getParameterNames()
{ {
final Enumeration e = httpReq.getParameterNames(); final Enumeration e = super.getParameterNames();
List l = new ArrayList(); List l = new ArrayList();
while(e.hasMoreElements()) while(e.hasMoreElements())
{ {
@@ -300,152 +233,13 @@ public class CMISHttpServletRequest implements HttpServletRequest
return ret; return ret;
} }
@Override
public String[] getParameterValues(String arg0)
{
return httpReq.getParameterValues(arg0);
}
@Override
public String getProtocol()
{
return httpReq.getProtocol();
}
@Override
public BufferedReader getReader() throws IOException
{
return httpReq.getReader();
}
@SuppressWarnings("deprecation")
@Override
public String getRealPath(String arg0)
{
return httpReq.getRealPath(arg0);
}
@Override
public String getRemoteAddr()
{
return httpReq.getRemoteAddr();
}
@Override
public String getRemoteHost()
{
return httpReq.getRemoteHost();
}
@Override
public int getRemotePort()
{
return httpReq.getRemotePort();
}
@Override
public RequestDispatcher getRequestDispatcher(String arg0)
{
return httpReq.getRequestDispatcher(arg0);
}
@Override
public String getScheme()
{
return httpReq.getScheme();
}
@Override
public String getServerName()
{
return httpReq.getServerName();
}
@Override
public int getServerPort()
{
return httpReq.getServerPort();
}
@Override
public boolean isSecure()
{
return httpReq.isSecure();
}
@Override
public void removeAttribute(String arg0)
{
httpReq.removeAttribute(arg0);
}
@Override
public void setAttribute(String arg0, Object arg1)
{
httpReq.setAttribute(arg0, arg1);
}
@Override
public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
{
httpReq.setCharacterEncoding(arg0);
}
@Override
public String getAuthType()
{
return httpReq.getAuthType();
}
@Override @Override
public String getContextPath() public String getContextPath()
{ {
String contextPath = baseUrlGenerator.getContextPath(httpReq); String contextPath = baseUrlGenerator.getContextPath(getRequest());
return contextPath; return contextPath;
} }
@Override
public Cookie[] getCookies()
{
return httpReq.getCookies();
}
@Override
public long getDateHeader(String arg0)
{
return httpReq.getDateHeader(arg0);
}
@Override
public String getHeader(String arg0)
{
return httpReq.getHeader(arg0);
}
@Override
public Enumeration getHeaderNames()
{
return httpReq.getHeaderNames();
}
@Override
public Enumeration getHeaders(String arg0)
{
return httpReq.getHeaders(arg0);
}
@Override
public int getIntHeader(String arg0)
{
return httpReq.getIntHeader(arg0);
}
@Override
public String getMethod()
{
return httpReq.getMethod();
}
@Override @Override
public String getPathInfo() public String getPathInfo()
{ {
@@ -459,17 +253,11 @@ public class CMISHttpServletRequest implements HttpServletRequest
return sb.toString(); return sb.toString();
} }
@Override
public String getPathTranslated()
{
return httpReq.getPathTranslated();
}
@Override @Override
public String getQueryString() public String getQueryString()
{ {
StringBuilder queryString = new StringBuilder(); StringBuilder queryString = new StringBuilder();
String reqQueryString = httpReq.getQueryString(); String reqQueryString = super.getQueryString();
if(networkId != null && networkId.length() > 0) if(networkId != null && networkId.length() > 0)
{ {
@@ -488,156 +276,17 @@ public class CMISHttpServletRequest implements HttpServletRequest
return reqQueryString; return reqQueryString;
} }
@Override
public String getRemoteUser()
{
return httpReq.getRemoteUser();
}
@Override @Override
public String getRequestURI() public String getRequestURI()
{ {
String requestURI = baseUrlGenerator.getRequestURI(httpReq, networkId, operation, id); String requestURI = baseUrlGenerator.getRequestURI(getRequest(), networkId, operation, id);
return requestURI; return requestURI;
} }
@Override
public StringBuffer getRequestURL()
{
return httpReq.getRequestURL();
}
@Override
public String getRequestedSessionId()
{
return httpReq.getRequestedSessionId();
}
@Override @Override
public String getServletPath() public String getServletPath()
{ {
String servletPath = baseUrlGenerator.getServletPath(httpReq); String servletPath = baseUrlGenerator.getServletPath(getRequest());
return servletPath; return servletPath;
} }
@Override
public HttpSession getSession()
{
return httpReq.getSession();
}
@Override
public HttpSession getSession(boolean arg0)
{
return httpReq.getSession(arg0);
}
@Override
public Principal getUserPrincipal()
{
return httpReq.getUserPrincipal();
}
@Override
public boolean isRequestedSessionIdFromCookie()
{
return httpReq.isRequestedSessionIdFromCookie();
}
@Override
public boolean isRequestedSessionIdFromURL()
{
return httpReq.isRequestedSessionIdFromURL();
}
@Override
public boolean isRequestedSessionIdFromUrl()
{
return httpReq.isRequestedSessionIdFromURL();
}
@Override
public boolean isRequestedSessionIdValid()
{
return httpReq.isRequestedSessionIdValid();
}
@Override
public boolean isUserInRole(String arg0)
{
return httpReq.isUserInRole(arg0);
}
@Override
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException
{
return httpReq.authenticate(response);
}
@Override
public void login(String username, String password) throws ServletException
{
httpReq.login(username, password);
}
@Override
public void logout() throws ServletException
{
httpReq.logout();
}
@Override
public Collection<Part> getParts() throws IOException, ServletException
{
return httpReq.getParts();
}
@Override
public Part getPart(String name) throws IOException, ServletException
{
return httpReq.getPart(name);
}
@Override
public ServletContext getServletContext()
{
return httpReq.getServletContext();
}
@Override
public AsyncContext startAsync() throws IllegalStateException
{
return httpReq.startAsync();
}
@Override
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
{
return httpReq.startAsync(servletRequest, servletResponse);
}
@Override
public boolean isAsyncStarted()
{
return httpReq.isAsyncStarted();
}
@Override
public boolean isAsyncSupported()
{
return httpReq.isAsyncSupported();
}
@Override
public AsyncContext getAsyncContext()
{
return httpReq.getAsyncContext();
}
@Override
public DispatcherType getDispatcherType()
{
return httpReq.getDispatcherType();
}
} }

View File

@@ -25,18 +25,12 @@
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import jakarta.servlet.http.HttpServletResponseWrapper;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;
import org.springframework.extensions.webscripts.WebScriptResponse; import org.springframework.extensions.webscripts.WebScriptResponse;
import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime; import org.springframework.extensions.webscripts.servlet.WebScriptServletRuntime;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Locale;
import java.util.Set; import java.util.Set;
/** /**
@@ -44,10 +38,8 @@ import java.util.Set;
* *
* @author janv * @author janv
*/ */
public class CMISHttpServletResponse implements HttpServletResponse public class CMISHttpServletResponse extends HttpServletResponseWrapper
{ {
protected HttpServletResponse httpResp;
protected Set<String> nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf protected Set<String> nonAttachContentTypes = Collections.emptySet(); // pre-configured whitelist, eg. images & pdf
private final static String HDR_CONTENT_DISPOSITION = "Content-Disposition"; private final static String HDR_CONTENT_DISPOSITION = "Content-Disposition";
@@ -57,89 +49,21 @@ public class CMISHttpServletResponse implements HttpServletResponse
public CMISHttpServletResponse(WebScriptResponse res, Set<String> nonAttachContentTypes) public CMISHttpServletResponse(WebScriptResponse res, Set<String> nonAttachContentTypes)
{ {
httpResp = WebScriptServletRuntime.getHttpServletResponse(res); super(WebScriptServletRuntime.getHttpServletResponse(res));
this.nonAttachContentTypes = nonAttachContentTypes; this.nonAttachContentTypes = nonAttachContentTypes;
} }
@Override
public void addCookie(Cookie cookie)
{
httpResp.addCookie(cookie);
}
@Override
public boolean containsHeader(String name)
{
return httpResp.containsHeader(name);
}
@Override
public String encodeURL(String url)
{
return httpResp.encodeURL(url);
}
@Override
public String encodeRedirectURL(String url)
{
return httpResp.encodeRedirectURL(url);
}
@Override
public String encodeUrl(String url)
{
return encodeUrl(url);
}
@Override
public String encodeRedirectUrl(String url)
{
return httpResp.encodeRedirectUrl(url);
}
@Override
public void sendError(int sc, String msg) throws IOException
{
httpResp.sendError(sc, msg);
}
@Override
public void sendError(int sc) throws IOException
{
httpResp.sendError(sc);
}
@Override
public void sendRedirect(String location) throws IOException
{
httpResp.sendRedirect(location);
}
@Override
public void setDateHeader(String name, long date)
{
httpResp.setDateHeader(name, date);
}
@Override
public void addDateHeader(String name, long date)
{
httpResp.addDateHeader(name, date);
}
@Override @Override
public void setHeader(String name, String value) public void setHeader(String name, String value)
{ {
httpResp.setHeader(name, getStringHeaderValue(name, value, httpResp.getContentType())); super.setHeader(name, getStringHeaderValue(name, value, super.getContentType()));
} }
@Override @Override
public void addHeader(String name, String value) public void addHeader(String name, String value)
{ {
httpResp.addHeader(name, getStringHeaderValue(name, value, httpResp.getContentType())); super.addHeader(name, getStringHeaderValue(name, value, super.getContentType()));
} }
private String getStringHeaderValue(String name, String value, String contentType) private String getStringHeaderValue(String name, String value, String contentType)
{ {
@@ -161,142 +85,4 @@ public class CMISHttpServletResponse implements HttpServletResponse
return value; return value;
} }
@Override
public void setIntHeader(String name, int value)
{
httpResp.setIntHeader(name, value);
}
@Override
public void addIntHeader(String name, int value)
{
httpResp.addIntHeader(name, value);
}
@Override
public void setStatus(int sc)
{
httpResp.setStatus(sc);
}
@Override
public void setStatus(int sc, String sm)
{
httpResp.setStatus(sc, sm);
}
@Override
public int getStatus()
{
return httpResp.getStatus();
}
@Override
public String getHeader(String name)
{
return httpResp.getHeader(name);
}
@Override
public Collection<String> getHeaders(String name)
{
return httpResp.getHeaders(name);
}
@Override
public Collection<String> getHeaderNames()
{
return httpResp.getHeaderNames();
}
@Override
public String getCharacterEncoding()
{
return httpResp.getCharacterEncoding();
}
@Override
public String getContentType()
{
return httpResp.getContentType();
}
@Override
public ServletOutputStream getOutputStream() throws IOException
{
return httpResp.getOutputStream();
}
@Override
public PrintWriter getWriter() throws IOException
{
return httpResp.getWriter();
}
@Override
public void setCharacterEncoding(String charset)
{
httpResp.setCharacterEncoding(charset);
}
@Override
public void setContentLength(int len)
{
httpResp.setContentLength(len);
}
@Override
public void setContentType(String type)
{
httpResp.setContentType(type);
}
@Override
public void setBufferSize(int size)
{
httpResp.setBufferSize(size);
}
@Override
public int getBufferSize()
{
return httpResp.getBufferSize();
}
@Override
public void flushBuffer() throws IOException
{
httpResp.flushBuffer();
}
@Override
public void resetBuffer()
{
httpResp.resetBuffer();
}
@Override
public boolean isCommitted()
{
return httpResp.isCommitted();
}
@Override
public void reset()
{
httpResp.reset();
}
@Override
public void setLocale(Locale loc)
{
httpResp.setLocale(loc);
}
@Override
public Locale getLocale()
{
return httpResp.getLocale();
}
} }

View File

@@ -38,18 +38,19 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.servlet.Filter; import jakarta.servlet.Filter;
import javax.servlet.FilterRegistration; import jakarta.servlet.FilterRegistration;
import javax.servlet.RequestDispatcher; import jakarta.servlet.RequestDispatcher;
import javax.servlet.Servlet; import jakarta.servlet.Servlet;
import javax.servlet.ServletConfig; import jakarta.servlet.ServletConfig;
import javax.servlet.ServletContext; import jakarta.servlet.ServletContext;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRegistration; import jakarta.servlet.ServletRegistration;
import javax.servlet.SessionCookieConfig; import jakarta.servlet.ServletRegistration.Dynamic;
import javax.servlet.SessionTrackingMode; import jakarta.servlet.SessionCookieConfig;
import javax.servlet.descriptor.JspConfigDescriptor; import jakarta.servlet.SessionTrackingMode;
import javax.servlet.http.HttpServlet; import jakarta.servlet.descriptor.JspConfigDescriptor;
import jakarta.servlet.http.HttpServlet;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
@@ -306,6 +307,8 @@ public abstract class CMISServletDispatcher implements CMISDispatcher
@Override @Override
public ServletContext getServletContext() public ServletContext getServletContext()
{ {
return new ServletContext() return new ServletContext()
{ {
@@ -423,12 +426,6 @@ public abstract class CMISServletDispatcher implements CMISDispatcher
return null; return null;
} }
@Override
public Servlet getServlet(String arg0) throws ServletException
{
return null;
}
@Override @Override
public String getServletContextName() public String getServletContextName()
{ {
@@ -453,6 +450,12 @@ public abstract class CMISServletDispatcher implements CMISDispatcher
return null; return null;
} }
@Override
public Dynamic addJspFile(String servletName, String jspFile)
{
return null;
}
@Override @Override
public <T extends Servlet> T createServlet(Class<T> clazz) throws ServletException public <T extends Servlet> T createServlet(Class<T> clazz) throws ServletException
{ {
@@ -574,27 +577,52 @@ public abstract class CMISServletDispatcher implements CMISDispatcher
} }
@Override @Override
public Enumeration getServletNames() public String getVirtualServerName()
{ {
return null; return null;
} }
@Override @Override
public Enumeration getServlets() public int getSessionTimeout()
{
return 0;
}
@Override
public void setSessionTimeout(int sessionTimeout)
{
}
@Override
public String getRequestCharacterEncoding()
{ {
return null; return null;
} }
@Override
public void setRequestCharacterEncoding(String encoding)
{
}
@Override
public String getResponseCharacterEncoding()
{
return null;
}
@Override
public void setResponseCharacterEncoding(String encoding)
{
}
@Override @Override
public void log(String arg0) public void log(String arg0)
{ {
} }
@Override
public void log(Exception arg0, String arg1)
{
}
@Override @Override
public void log(String arg0, Throwable arg1) public void log(String arg0, Throwable arg1)
{ {

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
/** /**
* Generates an OpenCMIS base url based on the request, repository id and binding. The url scheme, host and port * Generates an OpenCMIS base url based on the request, repository id and binding. The url scheme, host and port

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
import org.alfresco.repo.tenant.TenantUtil; import org.alfresco.repo.tenant.TenantUtil;

View File

@@ -23,19 +23,19 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
/** /**
* Generates an OpenCMIS path based on the repositoryId and binding. * Generates an OpenCMIS path based on the repositoryId and binding.
* *
* @author steveglover * @author steveglover
* *
*/ */
public interface PathGenerator public interface PathGenerator
{ {
public void generatePath(HttpServletRequest req, StringBuilder url, String repositoryId, Binding binding); public void generatePath(HttpServletRequest req, StringBuilder url, String repositoryId, Binding binding);
} }

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
/** /**
* Generates an OpenCMIS base url based on the request, repository id and binding. The url scheme, host and port * Generates an OpenCMIS base url based on the request, repository id and binding. The url scheme, host and port

View File

@@ -1,28 +1,28 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import java.util.Map; import java.util.Map;
@@ -55,12 +55,12 @@ public class PublicApiCMISHttpServletRequest extends CMISHttpServletRequest
if(apiScope != null) if(apiScope != null)
{ {
httpReq.setAttribute("apiScope", apiScope); setAttribute("apiScope", apiScope);
} }
if(apiVersion != null) if(apiVersion != null)
{ {
httpReq.setAttribute("apiVersion", apiVersion); setAttribute("apiVersion", apiVersion);
} }
} }

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding; import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;

View File

@@ -1,31 +1,31 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.opencmis; package org.alfresco.opencmis;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.alfresco.repo.admin.SysAdminParams; import org.alfresco.repo.admin.SysAdminParams;

View File

@@ -1,39 +1,39 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.repo.web.filter.beans; package org.alfresco.repo.web.filter.beans;
import java.io.IOException; import java.io.IOException;
import javax.servlet.Filter; import jakarta.servlet.Filter;
import javax.servlet.FilterChain; import jakarta.servlet.FilterChain;
import javax.servlet.FilterConfig; import jakarta.servlet.FilterConfig;
import javax.servlet.ServletContext; import jakarta.servlet.ServletContext;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import javax.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils; import org.springframework.web.context.support.WebApplicationContextUtils;
@@ -73,7 +73,7 @@ public class BeanProxyFilter implements Filter
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Filter#destroy() * @see jakarta.servlet.Filter#destroy()
*/ */
public void destroy() public void destroy()
{ {
@@ -81,7 +81,7 @@ public class BeanProxyFilter implements Filter
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) * @see jakarta.servlet.Filter#doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
*/ */
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
ServletException ServletException

View File

@@ -1,37 +1,37 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.repo.web.filter.beans; package org.alfresco.repo.web.filter.beans;
import java.io.IOException; import java.io.IOException;
import javax.servlet.FilterChain; import jakarta.servlet.FilterChain;
import javax.servlet.ServletContext; import jakarta.servlet.ServletContext;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import javax.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
/** /**
* A bean-like equivalent of a servlet filter, designed to be managed by a Spring container. * A bean-like equivalent of a servlet filter, designed to be managed by a Spring container.

View File

@@ -1,37 +1,37 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.repo.web.filter.beans; package org.alfresco.repo.web.filter.beans;
import java.io.IOException; import java.io.IOException;
import javax.servlet.FilterChain; import jakarta.servlet.FilterChain;
import javax.servlet.ServletContext; import jakarta.servlet.ServletContext;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import javax.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
import org.alfresco.repo.management.subsystems.ActivateableBean; import org.alfresco.repo.management.subsystems.ActivateableBean;
@@ -66,8 +66,8 @@ public class NullFilter implements DependencyInjectedFilter, ActivateableBean
/* /*
* (non-Javadoc) * (non-Javadoc)
* @see org.alfresco.repo.web.filter.beans.DependencyInjectedFilter#doFilter(javax.servlet.ServletContext, * @see org.alfresco.repo.web.filter.beans.DependencyInjectedFilter#doFilter(jakarta.servlet.ServletContext,
* javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) * jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
*/ */
public void doFilter(ServletContext context, ServletRequest request, ServletResponse response, FilterChain chain) public void doFilter(ServletContext context, ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException throws IOException, ServletException

View File

@@ -1,40 +1,40 @@
/* /*
* #%L * #%L
* Alfresco Remote API * Alfresco Remote API
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2016 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is * the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms: * provided under the following open source license terms:
* *
* Alfresco is free software: you can redistribute it and/or modify * 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 * 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 * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* Alfresco is distributed in the hope that it will be useful, * Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.repo.web.filter.beans; package org.alfresco.repo.web.filter.beans;
import java.io.IOException; import java.io.IOException;
import javax.servlet.Filter; import jakarta.servlet.Filter;
import javax.servlet.FilterChain; import jakarta.servlet.FilterChain;
import javax.servlet.FilterConfig; import jakarta.servlet.FilterConfig;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import javax.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession; import jakarta.servlet.http.HttpSession;
/** /**
* A filter that will use the HttpSession (if it exists) as the monitor for a * A filter that will use the HttpSession (if it exists) as the monitor for a

View File

@@ -28,9 +28,9 @@ package org.alfresco.repo.web.scripts;
import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.springframework.extensions.webscripts.servlet.WebScriptServlet; import org.springframework.extensions.webscripts.servlet.WebScriptServlet;
import javax.servlet.ServletException; import jakarta.servlet.ServletException;
import javax.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
public class AlfrescoWebScriptServlet extends WebScriptServlet public class AlfrescoWebScriptServlet extends WebScriptServlet

Some files were not shown because too many files have changed in this diff Show More