Skip to content

Commit 2a1480c

Browse files
Update target JDK to 17 and move to JakartaEE 10 (Pax Web 11) (#114)
Co-authored-by: Valery Kharseko <[email protected]>
1 parent 0c2314a commit 2a1480c

File tree

156 files changed

+558
-391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+558
-391
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
java: [ '8', '11', '17', '21', '25' ]
13+
java: [ '17', '21', '25' ]
1414
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
1515
fail-fast: false
1616
steps:
@@ -157,7 +157,7 @@ jobs:
157157
file: ./Dockerfile-alpine
158158
build-args: |
159159
VERSION=${{ env.release_version }}
160-
platforms: linux/amd64, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6, linux/ppc64le ,linux/arm64/8
160+
platforms: linux/amd64, linux/arm64/8, linux/s390x, linux/ppc64le
161161
push: true
162162
tags: ${{ steps.meta.outputs.tags }}
163163
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Java for publishing to Maven Central Repository OSS
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: '8'
29+
java-version: '17'
3030
distribution: 'temurin'
3131
server-id: ossrh
3232
server-username: MAVEN_USERNAME
@@ -201,7 +201,7 @@ jobs:
201201
file: ./Dockerfile-alpine
202202
build-args: |
203203
VERSION=${{ github.event.inputs.releaseVersion }}
204-
platforms: linux/amd64, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6, linux/ppc64le ,linux/arm64/8
204+
platforms: linux/amd64, linux/arm64/8, linux/s390x, linux/ppc64le
205205
push: true
206206
tags: ${{ steps.meta.outputs.tags }}
207207
labels: ${{ steps.meta.outputs.labels }}

Dockerfile-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:8-jre-alpine
1+
FROM alpine:latest
22

33
LABEL org.opencontainers.image.authors="Open Identity Platform Community"
44

@@ -12,7 +12,7 @@ WORKDIR /opt
1212

1313
#COPY openidm-zip/target/openidm-*.zip ./
1414

15-
RUN apk add --update --no-cache --virtual builddeps curl unzip \
15+
RUN apk add --update --no-cache --virtual builddeps curl unzip libc6-compat openjdk17 \
1616
&& apk upgrade --update --no-cache \
1717
&& apk add bash \
1818
&& apk update \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This project is licensed under the [Common Development and Distribution License
2525
* [OpenIDM ZIP](https://github.com/OpenIdentityPlatform/OpenIDM/releases)
2626
* [OpenIDM Docker](https://hub.docker.com/r/openidentityplatform/openidm/) (All OS)
2727

28-
Java 1.8+ required
28+
Java 17 or later required
2929

3030
## How-to build
3131
For windows use:

SECURITY.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Java Versions Support | EE | Supported |
9+
|------------------------------------|-----------------------|------------|-------------------------------------------------------------------------------------------------------------------------------------------|
10+
| Open Identity Platform OpenIDM 7.x | 17 and later | Jakarta EE | :white_check_mark: Community support, [approved vendor support](https://github.com/OpenIdentityPlatform/.github/wiki/Approved-Vendor-List) |
11+
| Open Identity Platform OpenIDM 6.x | 8 and later | Java EE | :white_check_mark: [Approved vendor support](https://github.com/OpenIdentityPlatform/.github/wiki/Approved-Vendor-List) |
12+
| Open Identity Platform OpenIDM 5.x | 8 and later | Java EE | :white_check_mark: [Approved vendor support](https://github.com/OpenIdentityPlatform/.github/wiki/Approved-Vendor-List) |
13+
| ForgeRock OpenIDM 5.x | 8 and later | Java EE | :x: upgrade to Open Identity Platform OpenIDM |
14+
| ForgeRock OpenIDM 4.x | 1.7, 8 and later | Java EE | :x: upgrade to Open Identity Platform OpenIDM |
15+
16+
## Reporting a Vulnerability
17+
18+
Please draft [security advisory](https://github.com/OpenIdentityPlatform/OpenIDM/security/advisories/new)

custom-scripted-connector-bundler/pom.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
<parent>
3030
<groupId>org.openidentityplatform.openidm</groupId>
3131
<artifactId>openidm-project</artifactId>
32-
<version>6.3.1-SNAPSHOT</version>
32+
<version>7.0.0-SNAPSHOT</version>
3333
</parent>
3434

3535
<groupId>org.openidentityplatform.openidm.tools</groupId>
3636
<artifactId>custom-scripted-connector-bundler</artifactId>
37-
<version>6.3.1-SNAPSHOT</version>
37+
<version>7.0.0-SNAPSHOT</version>
3838
<name>OpenIDM Custom Scripted Groovy Connector Bundler</name>
3939
<description>This is a tool to bundle the Groovy connector using configured bundle name and configuration
4040
parameters without the user needing to write connector code manually (aside from the Groovy scripts).
@@ -94,13 +94,7 @@
9494
<dependency>
9595
<groupId>com.github.jknack</groupId>
9696
<artifactId>handlebars</artifactId>
97-
<version>2.0.0</version>
98-
<exclusions>
99-
<exclusion>
100-
<groupId>org.mozilla</groupId>
101-
<artifactId>rhino</artifactId>
102-
</exclusion>
103-
</exclusions>
97+
<version>4.4.0</version>
10498
</dependency>
10599
<dependency>
106100
<groupId>org.slf4j</groupId>

custom-scripted-connector-bundler/src/main/resources/provisioner.openicf.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author" : "{{author}}",
77
"connectorRef" : {
88
"bundleName" : "org.openidentityplatform.openicf.connectors.{{lower packageName}}-connector",
9-
"bundleVersion" : "[1.4.0.0,2.0.0.0)",
9+
"bundleVersion" : "[2.0.0.0,3)",
1010
"connectorName" : "org.forgerock.openicf.connectors.{{lower packageName}}.{{packageName}}Connector"
1111
},
1212
"producerBufferSize" : 100,

openidm-api-servlet/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
~ information: "Portions copyright [year] [name of copyright owner]".
1414
~
1515
~ Copyright 2013-2016 ForgeRock AS.
16-
~ Portions Copyrighted 2024 3A Systems LLC.
16+
~ Portions Copyrighted 2024-2025 3A Systems LLC.
1717
-->
1818
<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">
1919
<modelVersion>4.0.0</modelVersion>
2020
<parent>
2121
<groupId>org.openidentityplatform.openidm</groupId>
2222
<artifactId>openidm-project</artifactId>
23-
<version>6.3.1-SNAPSHOT</version>
23+
<version>7.0.0-SNAPSHOT</version>
2424
</parent>
2525
<artifactId>openidm-api-servlet</artifactId>
2626
<packaging>bundle</packaging>
@@ -94,8 +94,8 @@
9494

9595
<!-- Provided Dependencies -->
9696
<dependency>
97-
<groupId>javax.servlet</groupId>
98-
<artifactId>javax.servlet-api</artifactId>
97+
<groupId>jakarta.servlet</groupId>
98+
<artifactId>jakarta.servlet-api</artifactId>
9999
<scope>provided</scope>
100100
</dependency>
101101

openidm-api-servlet/src/main/java/org/forgerock/openidm/servlet/internal/ErrorServletComponent.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
* information: "Portions copyright [year] [name of copyright owner]".
1313
*
1414
* Copyright 2016 ForgeRock AS.
15-
* Portions Copyrighted 2024 3A Systems LLC.
15+
* Portions Copyrighted 2024-2025 3A Systems LLC.
1616
*/
1717

1818
package org.forgerock.openidm.servlet.internal;
1919

20-
import javax.servlet.ServletException;
21-
import javax.servlet.http.HttpServlet;
22-
import javax.servlet.http.HttpServletRequest;
23-
import javax.servlet.http.HttpServletResponse;
20+
import jakarta.servlet.ServletException;
21+
import jakarta.servlet.http.HttpServlet;
22+
import jakarta.servlet.http.HttpServletRequest;
23+
import jakarta.servlet.http.HttpServletResponse;
2424

2525
import java.io.IOException;
2626
import java.util.Dictionary;
2727
import java.util.Hashtable;
2828

29-
import org.eclipse.jetty.servlet.ErrorPageErrorHandler;
29+
import org.eclipse.jetty.ee10.servlet.ErrorPageErrorHandler;
3030
import org.forgerock.openidm.jetty.JettyErrorHandler;
3131
import org.forgerock.openidm.servletregistration.ServletRegistration;
3232
import org.ops4j.pax.web.service.WebContainer;
@@ -36,7 +36,7 @@
3636
import org.osgi.service.component.annotations.ConfigurationPolicy;
3737
import org.osgi.service.component.annotations.Deactivate;
3838
import org.osgi.service.component.annotations.Reference;
39-
import org.osgi.service.http.NamespaceException;
39+
import org.ops4j.pax.web.service.http.NamespaceException;
4040
import org.slf4j.Logger;
4141
import org.slf4j.LoggerFactory;
4242

@@ -81,14 +81,14 @@ protected void doGet(final HttpServletRequest request, final HttpServletResponse
8181
logger.info("Registered servlet at {}", ERROR_SERVLET_ALIAS);
8282

8383
httpService.registerErrorPage(ErrorPageErrorHandler.GLOBAL_ERROR_PAGE, ERROR_SERVLET_ALIAS,
84-
httpService.getDefaultSharedHttpContext());
84+
servletRegistration.getContext());
8585
}
8686

8787
@Deactivate
8888
protected synchronized void deactivate(ComponentContext context) {
8989
servletRegistration.unregisterServlet(errorServlet);
9090
httpService.unregisterErrorPage(ErrorPageErrorHandler.GLOBAL_ERROR_PAGE,
91-
httpService.getDefaultSharedHttpContext());
91+
servletRegistration.getContext());
9292
}
9393

9494
}

openidm-api-servlet/src/main/java/org/forgerock/openidm/servlet/internal/ServletComponent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* information: "Portions copyright [year] [name of copyright owner]".
1313
*
1414
* Copyright 2013-2016 ForgeRock AS.
15-
* Portions Copyrighted 2024 3A Systems LLC.
15+
* Portions Copyrighted 2024-2025 3A Systems LLC.
1616
*/
1717
package org.forgerock.openidm.servlet.internal;
1818

@@ -27,8 +27,8 @@
2727
import java.util.concurrent.CopyOnWriteArrayList;
2828

2929
import javax.script.ScriptException;
30-
import javax.servlet.ServletException;
31-
import javax.servlet.http.HttpServlet;
30+
import jakarta.servlet.ServletException;
31+
import jakarta.servlet.http.HttpServlet;
3232

3333
import org.forgerock.http.ApiProducer;
3434
import org.forgerock.http.DescribedHttpApplication;
@@ -64,7 +64,7 @@
6464
import org.osgi.service.event.Event;
6565
import org.osgi.service.event.EventHandler;
6666
import org.osgi.service.event.propertytypes.EventTopics;
67-
import org.osgi.service.http.NamespaceException;
67+
import org.ops4j.pax.web.service.http.NamespaceException;
6868
import org.slf4j.Logger;
6969
import org.slf4j.LoggerFactory;
7070

0 commit comments

Comments
 (0)