Skip to content

Commit 5e5c6b0

Browse files
authored
Allow ssl exception to enter resend loop (#444)
* Release version documentation and upgraded library versions. * Log message on file size being processed. * Allow SSL exceptions to go into resend cycle by config option. * Update documentation for vrelease. * Parameter static for controlling resend on SSL exceptions. * Update release version
1 parent 2c71553 commit 5e5c6b0

8 files changed

Lines changed: 18 additions & 8 deletions

File tree

RELEASE-NOTES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# OpenAS2 Server
2-
# Version 4.4.0
2+
# Version 4.5.0
33
# RELEASE NOTES
44
-----
5-
The OpenAS2 project is pleased to announce the release of OpenAS2 4.4.0
5+
The OpenAS2 project is pleased to announce the release of OpenAS2 4.5.0
66

7-
The release download file is: OpenAS2Server-4.4.0.zip
7+
The release download file is: OpenAS2Server-4.5.0.zip
88

99
The zip file contains a PDF document (OpenAS2HowTo.pdf) providing information on installing and using the application.
1010
## NOTE: Testing covers Java 11 to 21.
1111
## Java 8 is NO LONGER SUPPORTED.
1212

13-
Version 4.4.0 - 2025-05-10
13+
Version 4.5.0 - 2025-05-10
1414

1515
This is an enhancement release.
1616

17-
1. Log the file size of the file being processed in the AS2 vmessage builder.
17+
1. Add configuration paramerter "resend_on_ssl_exception" to enter into a resend loop when an SSL exception occurs connecting to a partner.
1818

1919
##Upgrade Notes
2020
See the openAS2HowTo appendix for the general process on upgrading OpenAS2.
@@ -24,7 +24,7 @@ This is an enhancement release.
2424
2. The property for email configuration in the config.xml changed:
2525
Change ALL occurrences of javax.mail.properties to jakarta.mail.properties in config.xml and the .properties file if you implemented it.
2626
3. If using an external database for message state tracking, make sure that your configuration will work with the new Hikari JDBC pool that improves performance. See the OpenAS2HowTo.pdf message state tracking section for more details.
27-
4. Completely replace all library files in the existing "lib" folder wit hthe ones supplied in the new install package (per recommended standard procedure in the user guide).
27+
4. Completely replace all library files in the existing "lib" folder with the ones supplied in the new install package (per recommended standard procedure in the user guide).
2828

2929
### Upgrading to 3.6 or newer from 3.5 (or older) version:
3030
1. Run the following command after the upgrade of the code base is complete and BEFORE you start the OpenAS2 server:

Server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- DO NOT CHANGE THIS "groupId" WITHOUT CHANGING XMLSession.getManifestAttributes.MANIFEST_VENDOR_ID_ATTRIB -->
88
<groupId>net.sf.openas2</groupId>
99
<artifactId>OpenAS2</artifactId>
10-
<version>4.4.0</version>
10+
<version>4.5.0</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

Server/src/main/java/org/openas2/partner/Partnership.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public class Partnership implements Serializable {
6868
public static final String PA_SPLIT_FILE_THRESHOLD_SIZE_IN_BYTES = "split_file_threshold_size_in_bytes";
6969
public static final String PA_SPLIT_FILE_CONTAINS_HEADER_ROW = "split_file_contains_header_row";
7070
public static final String PA_SPLIT_FILE_NAME_PREFIX = "split_file_name_prefix";
71+
public static final String PA_RESEND_ON_SSL_EXCEPTION = "resend_on_ssl_exception";
7172
// A hopefully temporary key to maintain backwards compatibility
7273
public static final String USE_NEW_CERTIFICATE_LOOKUP_MODE = "use_new_certificate_lookup_mode";
7374

Server/src/main/java/org/openas2/processor/sender/AS2SenderModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ public void handle(String action, Message msg, Map<String, Object> options) thro
144144
logger.error(msg.getLogMsg(), e);
145145
msg.setOption("STATE", Message.MSG_STATE_SEND_FAIL);
146146
msg.trackMsgState(getSession());
147+
if ("true".equalsIgnoreCase(msg.getPartnership().getAttributeOrProperty(Partnership.PA_RESEND_ON_SSL_EXCEPTION, "false"))) {
148+
resend(msg, new OpenAS2Exception(org.openas2.util.Logging.getExceptionMsg(e)), false);
149+
}
147150
return;
148151
} catch (Exception e) {
149152
msg.setLogMsg("Unexpected error sending file: " + org.openas2.util.Logging.getExceptionMsg(e));

changes.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
**IMPORTANT NOTE**: Please review upgrade notes in the RELEASE-NOTES.md if you are upgrading
22

3+
Version 4.5.0 - 2025-05-18
4+
5+
This is an enhancement release.
6+
7+
1. Add configuration paramerter "resend_on_ssl_exception" to enter into a resend loop when an SSL exception occurs connecting to a partner.
8+
39
Version 4.4.0 - 2025-05-10
410

511
This is an enhancement release.

docs/OpenAS2HowTo.odt

833 Bytes
Binary file not shown.

docs/OpenAS2HowTo.pdf

504 Bytes
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>4.4.0</version>
8+
<version>4.5.0</version>
99
<name>OpenAS2</name>
1010
<packaging>pom</packaging>
1111

0 commit comments

Comments
 (0)