Skip to content

Commit

Permalink
chore: SDK 4.7 and Alfresco 23.1 Compatibility
Browse files Browse the repository at this point in the history
Issue: #201056
Change-Id: Ib460fcfe144b1e4c4555919981f3a922deadfbc8
  • Loading branch information
jupatolcd committed Jan 9, 2024
1 parent 9c6c4ae commit 3ea33e0
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 87 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Supported DBMS:
- SQL Server
- DB2


## [2.2.0] - 2024-01-09
### Changed
- SDK 4.7 and Alfresco 23.1 Compatibility
- SDK 4.6 migration and Alfresco 7.4.1 compatibility
- Upgrade to log4j2 - ACS 7.4 compatibility
- Updates modules "ootbee-support-tools" - ACS 7.4 compatibility
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG_FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ SGBD supportés :
- SQL Server
- DB2


## [2.2.0] - 2024-01-09
### Changed
- Migration SDK 4.7 et compatibilité Alfresco 23.1
- Migration SDK 4.6 et compatibilité Alfresco 7.4.1
- Passage à log4j2 - compatibilité ACS 7.4
- Mise à jour des modules "ootbee-support-tools" - compatibilité ACS 7.4
Expand Down
9 changes: 5 additions & 4 deletions audit-share-platform-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<parent>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X</artifactId>
<artifactId>auditshare-23X</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>

Expand All @@ -19,16 +19,17 @@
<dependencies>
<dependency>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X-repo</artifactId>
<artifactId>auditshare-23X-repo</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<!-- TEMPORARY COMMENT : Check Pull Request - Alfresco Content Services 23.1 compatibility : https://github.com/OrderOfTheBee/ootbee-support-tools/pull/215 -->
<!-- <dependency>
<groupId>org.orderofthebee.support-tools</groupId>
<artifactId>support-tools-repo</artifactId>
<version>${support-tools.version}</version>
<classifier>amp</classifier>
<type>amp</type>
</dependency>
</dependency> -->
<!-- Uncomment this dependency if you already have the AMP in your M2_HOME folder
or see the documentation for 3rd party amps installation: https://docs.alfresco.com/content-services/latest/develop/sdk/#installing3rdpartyamps
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ csrf.filter.enabled=false
messaging.broker.url=vm://localhost?broker.persistent=false

# Enable ATS
transform.service.enabled=true
transform.service.url=http://transform-router:8095/
transform.service.enabled=false
#transform.service.url=http://transform-router:8095/
localTransform.core-aio.url=http://transform-core-aio:8090/
sfs.url=http://shared-file-store:8099/
#sfs.url=http://shared-file-store:8099/

# Enable DTE - enable also t-engine in docker-compose
# localTransform.transform-dte.url=http://transform-dte-engine:8090/
Expand Down
4 changes: 2 additions & 2 deletions audit-share-platform/pom.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>auditshare-74X-repo</artifactId>
<artifactId>auditshare-23X-repo</artifactId>
<name>AuditShare - Repository</name>
<description>AuditShare repository project</description>
<packaging>jar</packaging>

<parent>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X</artifactId>
<artifactId>auditshare-23X</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.util.Collections;
import java.util.List;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.Unmarshaller;

import org.alfresco.model.ContentModel;
import org.alfresco.service.cmr.repository.ContentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
package com.atolcd.auditshare.repo.xml;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "id", "libelle" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "Groups" })
Expand Down
9 changes: 5 additions & 4 deletions audit-share-share-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<parent>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X</artifactId>
<artifactId>auditshare-23X</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>

Expand All @@ -19,16 +19,17 @@
<dependencies>
<dependency>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X-share</artifactId>
<artifactId>auditshare-23X-share</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<!-- TEMPORARY COMMENT : Check Pull Request - Alfresco Content Services 23.1 compatibility : https://github.com/OrderOfTheBee/ootbee-support-tools/pull/215 -->
<!-- <dependency>
<groupId>org.orderofthebee.support-tools</groupId>
<artifactId>support-tools-share</artifactId>
<version>${support-tools.version}</version>
<classifier>amp</classifier>
<type>amp</type>
</dependency>
</dependency> -->
<!-- Uncomment this dependency if you already have the AMP in your M2_HOME folder
or see the documentation for 3rd party amps installation: https://docs.alfresco.com/content-services/latest/develop/sdk/#installing3rdpartyamps
<dependency>
Expand Down
10 changes: 5 additions & 5 deletions audit-share-share/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>auditshare-74X-share</artifactId>
<artifactId>auditshare-23X-share</artifactId>
<name>AuditShare - Share</name>
<description>AuditShare Share project</description>
<packaging>jar</packaging>

<parent>
<groupId>com.atolcd.alfresco</groupId>
<artifactId>auditshare-74X</artifactId>
<artifactId>auditshare-23X</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>

Expand All @@ -26,9 +26,9 @@
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
import java.util.Map;
import java.util.Set;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import jakarta.servlet.Filter;
import jakarta.servlet.FilterChain;
import jakarta.servlet.FilterConfig;
import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpServletRequest;

import org.apache.commons.httpclient.URIException;
import org.apache.commons.logging.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
import java.util.HashMap;
import java.util.Map;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import jakarta.servlet.Filter;
import jakarta.servlet.FilterChain;
import jakarta.servlet.FilterConfig;
import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpServletRequest;

import org.apache.commons.httpclient.URIException;
import org.apache.commons.logging.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
import java.io.InputStream;
import java.io.StringWriter;

import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import jakarta.servlet.ReadListener;
import jakarta.servlet.ServletInputStream;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletRequestWrapper;

import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
Expand Down Expand Up @@ -73,6 +74,19 @@ public int read() throws IOException {
return 0;
}
}
@Override
public boolean isFinished() {
return false;
}

@Override
public boolean isReady() {
return false;
}

@Override
public void setReadListener(ReadListener readListener) {
}
};
} else
inputStream = this.getRequest().getInputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSession;

import org.alfresco.web.extensibility.SlingshotEvaluatorUtil;
import org.alfresco.web.site.SlingshotUserFactory;
Expand Down
56 changes: 28 additions & 28 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- audit-share-postgres

audit-share-postgres:
image: postgres:14.4
image: postgres:15.4
environment:
POSTGRES_DB: alfresco
POSTGRES_USER: alfresco
Expand Down Expand Up @@ -66,7 +66,7 @@ services:
- audit-share-ass-volume:/opt/alfresco-search-services/data

transform-core-aio:
image: alfresco/alfresco-transform-core-aio:4.0.0
image: alfresco/alfresco-transform-core-aio:5.0.1
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
ACTIVEMQ_URL: "nio://activemq:61616"
Expand All @@ -79,29 +79,29 @@ services:
- activemq

# Block to comment in Community version
transform-router:
image: quay.io/alfresco/alfresco-transform-router:3.0.0
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
ACTIVEMQ_URL: "nio://activemq:61616"
CORE_AIO_URL : "http://transform-core-aio:8090"
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
ports:
- 8095:8095
links:
- activemq
# transform-router:
# image: quay.io/alfresco/alfresco-transform-router:3.0.0
# environment:
# JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
# ACTIVEMQ_URL: "nio://activemq:61616"
# CORE_AIO_URL : "http://transform-core-aio:8090"
# FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
# ports:
# - 8095:8095
# links:
# - activemq

shared-file-store:
image: quay.io/alfresco/alfresco-shared-file-store:3.0.0
# Community : alfresco/alfresco-shared-file-store:0.16.1
environment:
JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
- 8099:8099
volumes:
- sfs-data:/tmp/Alfresco/sfs
# shared-file-store:
# image: quay.io/alfresco/alfresco-shared-file-store:3.0.0
# # Community : alfresco/alfresco-shared-file-store:0.16.1
# environment:
# JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
# scheduler.content.age.millis: 86400000
# scheduler.cleanup.interval: 86400000
# ports:
# - 8099:8099
# volumes:
# - sfs-data:/tmp/Alfresco/sfs

# transform-dte-engine:
# image: alfresco/transform-dte-engine:2.4.0
Expand Down Expand Up @@ -131,7 +131,7 @@ volumes:
external: true
audit-share-ass-volume:
external: true
sfs-data:
driver_opts:
type: tmpfs
device: tmpfs
# sfs-data:
# driver_opts:
# type: tmpfs
# device: tmpfs
Loading

0 comments on commit 3ea33e0

Please sign in to comment.