diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 809eaed0..af4b0f67 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,20 +1,20 @@ # OpenAS2 Server -# Version 4.4.0 +# Version 4.5.0 # RELEASE NOTES ----- -The OpenAS2 project is pleased to announce the release of OpenAS2 4.4.0 +The OpenAS2 project is pleased to announce the release of OpenAS2 4.5.0 -The release download file is: OpenAS2Server-4.4.0.zip +The release download file is: OpenAS2Server-4.5.0.zip The zip file contains a PDF document (OpenAS2HowTo.pdf) providing information on installing and using the application. ## NOTE: Testing covers Java 11 to 21. ## Java 8 is NO LONGER SUPPORTED. -Version 4.4.0 - 2025-05-10 +Version 4.5.0 - 2025-05-10 This is an enhancement release. -1. Log the file size of the file being processed in the AS2 vmessage builder. +1. Add configuration paramerter "resend_on_ssl_exception" to enter into a resend loop when an SSL exception occurs connecting to a partner. ##Upgrade Notes See the openAS2HowTo appendix for the general process on upgrading OpenAS2. @@ -24,7 +24,7 @@ This is an enhancement release. 2. The property for email configuration in the config.xml changed: Change ALL occurrences of javax.mail.properties to jakarta.mail.properties in config.xml and the .properties file if you implemented it. 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. - 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). + 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). ### Upgrading to 3.6 or newer from 3.5 (or older) version: 1. Run the following command after the upgrade of the code base is complete and BEFORE you start the OpenAS2 server: diff --git a/Server/pom.xml b/Server/pom.xml index 4892b12a..734aa85a 100644 --- a/Server/pom.xml +++ b/Server/pom.xml @@ -7,7 +7,7 @@ net.sf.openas2 OpenAS2 - 4.4.0 + 4.5.0 ../pom.xml diff --git a/Server/src/main/java/org/openas2/partner/Partnership.java b/Server/src/main/java/org/openas2/partner/Partnership.java index 98e23504..3a591fb0 100644 --- a/Server/src/main/java/org/openas2/partner/Partnership.java +++ b/Server/src/main/java/org/openas2/partner/Partnership.java @@ -68,6 +68,7 @@ public class Partnership implements Serializable { public static final String PA_SPLIT_FILE_THRESHOLD_SIZE_IN_BYTES = "split_file_threshold_size_in_bytes"; public static final String PA_SPLIT_FILE_CONTAINS_HEADER_ROW = "split_file_contains_header_row"; public static final String PA_SPLIT_FILE_NAME_PREFIX = "split_file_name_prefix"; + public static final String PA_RESEND_ON_SSL_EXCEPTION = "resend_on_ssl_exception"; // A hopefully temporary key to maintain backwards compatibility public static final String USE_NEW_CERTIFICATE_LOOKUP_MODE = "use_new_certificate_lookup_mode"; diff --git a/Server/src/main/java/org/openas2/processor/sender/AS2SenderModule.java b/Server/src/main/java/org/openas2/processor/sender/AS2SenderModule.java index adb796f0..b7e0d6d1 100644 --- a/Server/src/main/java/org/openas2/processor/sender/AS2SenderModule.java +++ b/Server/src/main/java/org/openas2/processor/sender/AS2SenderModule.java @@ -144,6 +144,9 @@ public void handle(String action, Message msg, Map options) thro logger.error(msg.getLogMsg(), e); msg.setOption("STATE", Message.MSG_STATE_SEND_FAIL); msg.trackMsgState(getSession()); + if ("true".equalsIgnoreCase(msg.getPartnership().getAttributeOrProperty(Partnership.PA_RESEND_ON_SSL_EXCEPTION, "false"))) { + resend(msg, new OpenAS2Exception(org.openas2.util.Logging.getExceptionMsg(e)), false); + } return; } catch (Exception e) { msg.setLogMsg("Unexpected error sending file: " + org.openas2.util.Logging.getExceptionMsg(e)); diff --git a/changes.txt b/changes.txt index f7c2e573..1182de41 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,11 @@ **IMPORTANT NOTE**: Please review upgrade notes in the RELEASE-NOTES.md if you are upgrading +Version 4.5.0 - 2025-05-18 + +This is an enhancement release. + +1. Add configuration paramerter "resend_on_ssl_exception" to enter into a resend loop when an SSL exception occurs connecting to a partner. + Version 4.4.0 - 2025-05-10 This is an enhancement release. diff --git a/docs/OpenAS2HowTo.odt b/docs/OpenAS2HowTo.odt index d8f39511..6f4f32bb 100644 Binary files a/docs/OpenAS2HowTo.odt and b/docs/OpenAS2HowTo.odt differ diff --git a/docs/OpenAS2HowTo.pdf b/docs/OpenAS2HowTo.pdf index 69c6e9ce..993efd5c 100644 Binary files a/docs/OpenAS2HowTo.pdf and b/docs/OpenAS2HowTo.pdf differ diff --git a/pom.xml b/pom.xml index d6826d48..a0de552a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 net.sf.openas2 OpenAS2 - 4.4.0 + 4.5.0 OpenAS2 pom