Skip to content

Commit 3136918

Browse files
authored
Java 6 and 7 compatibility fix (#55) (#56)
* Fix using a Java 8 method call to retain 1.6 compatibility * Enhance documentation around managing certificates. * Release notes for 2.4.2 * Version bump
1 parent e36027f commit 3136918

File tree

9 files changed

+22
-13
lines changed

9 files changed

+22
-13
lines changed

Bundle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>net.sf.openas2</groupId>
88
<artifactId>OpenAS2</artifactId>
9-
<version>2.4.1</version>
9+
<version>2.4.2</version>
1010
</parent>
1111

1212
<artifactId>openas2-osgi</artifactId>

RELEASE-NOTES.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
OpenAS2 Server
2-
Version 2.4.1
2+
Version 2.4.2
33
RELEASE NOTES
44

5-
The OpenAS2 project is pleased to announce the release of OpenAS2 2.4.1
5+
The OpenAS2 project is pleased to announce the release of OpenAS2 2.4.2
66

7-
The release download file is: OpenAS2Server-2.4.1.zip
7+
The release download file is: OpenAS2Server-2.4.2.zip
88
The zip file contains a PDF document providing information on installing and using the application.
99

10-
Version 2.4.1 - 2017-09-28
11-
This is a minor enhancement release:
10+
Version 2.4.2 - 2017-10-12
11+
This is a minor bugfix and documentation enhancement release:
1212
IMPORTANT NOTE: Please review upgrade notes below if you are upgrading
1313

14-
1. Enhance health check module to test all active modules. All modules now require implementing a healthcheck() method for self test.
15-
14+
1. Fix using a Java 1.8 call to ensure 1.6 compatibility
15+
2. Enhance documentation around certifcate creation and deployment.
1616

1717
Upgrade Notes
1818
See the openAS2HowTo appendix for the general process on upgrading OpenAS2.

Remote/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>net.sf.openas2</groupId>
66
<artifactId>OpenAS2</artifactId>
7-
<version>2.4.1</version>
7+
<version>2.4.2</version>
88
</parent>
99

1010
<modelVersion>4.0.0</modelVersion>

Server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.sf.openas2</groupId>
77
<artifactId>OpenAS2</artifactId>
8-
<version>2.4.1</version>
8+
<version>2.4.2</version>
99
</parent>
1010

1111
<artifactId>openas2-server</artifactId>

Server/src/main/java/org/openas2/processor/msgtracking/EmbeddedDBHandler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ public void start(String connectString, String userName, String pwd, Map<String,
4040
createConnectionPool(connectString, userName, pwd);
4141
if ("true".equalsIgnoreCase(getParameter(PARAM_TCP_SERVER_START, "true")))
4242
{
43-
String tcpPort = params.getOrDefault(PARAM_TCP_SERVER_PORT, "9092");
44-
String tcpPwd = params.getOrDefault(PARAM_TCP_SERVER_PWD, "OpenAS2");
43+
String tcpPort = params.get(PARAM_TCP_SERVER_PORT);
44+
if (tcpPort == null || tcpPort.length() < 1) tcpPort = "9092";
45+
String tcpPwd = params.get(PARAM_TCP_SERVER_PWD);
46+
if (tcpPwd == null || tcpPwd.length() < 1) tcpPwd = "OpenAS2";
4547
String dbDirectory = params.get(PARAM_DB_DIRECTORY);
4648
if (dbDirectory == null || dbDirectory.length() < 1)
4749
throw new OpenAS2Exception("TCP server requireds parameter: " + PARAM_DB_DIRECTORY);

changes.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 2.4.2 - 2017-10-12
2+
This is a minor bugfix and documentation enhancement release:
3+
IMPORTANT NOTE: Please review upgrade notes below if you are upgrading
4+
5+
1. Fix using a Java 1.8 call to ensure 1.6 compatibility
6+
2. Enhance documentation around certifcate creation and deployment.
7+
18
Version 2.4.1 - 2017-09-28
29
This is a minor enhancement release:
310
IMPORTANT NOTE: Please review upgrade notes below if you are upgrading

docs/OpenAS2HowTo.odt

1.54 KB
Binary file not shown.

docs/OpenAS2HowTo.pdf

4.49 KB
Binary file not shown.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>net.sf.openas2</groupId>
77
<artifactId>OpenAS2</artifactId>
8-
<version>2.4.1</version>
8+
<version>2.4.2</version>
99
<name>OpenAS2</name>
1010
<packaging>pom</packaging>
1111

0 commit comments

Comments
 (0)