Skip to content

Commit 700ed28

Browse files
Merge pull request #21 from OpenAS2/dev
Merge latest changes for 2.1.3 release
2 parents 25596f3 + fc72106 commit 700ed28

17 files changed

+61
-54
lines changed

RELEASE-NOTES.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
OpenAS2 Server
2-
Version 2.1.2
2+
Version 2.1.3
33
RELEASE NOTES
44

5-
The OpenAS2 project is pleased to announce the release of OpenAS2 2.1.2
5+
The OpenAS2 project is pleased to announce the release of OpenAS2 2.1.3
66

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

10-
Version 2.1.2 - 2016-10-29
10+
Version 2.1.3 - 2016-11-09
1111
This release is a bugfix release:
12-
1. Swap call to scan directory with the tracking processing call to ensure there is at least one full poll interval between scan and call to tracking processing to avoid sending incomplete files.
13-
2. Add documentation on Java tuning for large fiules and/or busy AS2 systems
12+
1. Revert to default for allowing restricted HTTP headers (see OpenAS2HowTo for discussion on this issue)
13+
2. Remove \r (CR) character from logging and use the the system property to avoid issues on NIX based systems that parse logs
14+
3. Enhance documentation
1415

1516
Upgrade Notes (if upgrading from versions older than 2.1.0):
1617
1. Add the new module to your existing config.xml (see classname="org.openas2.processor.msgtracking.DbTrackingModule" in release config.xml)

Server/bin/start-openas2.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ rem Set some of the base system properties for the Java environment and logging
55
rem remove -Dorg.apache.commons.logging.Log=org.openas2.logging.Log if using another logging package
66
rem
77
set EXTRA_PARMS=-Xms32m -Xmx384m -Dorg.apache.commons.logging.Log=org.openas2.logging.Log
8-
rem By default allow restricted HTTP headers
9-
set EXTRA_PARMS=%EXTRA_PARMS% -Dsun.net.http.allowRestrictedHeaders=true
8+
rem For versions of Java that prevent restricted HTTP headers (see documentation for discussion on this)
9+
rem set EXTRA_PARMS=%EXTRA_PARMS% -Dsun.net.http.allowRestrictedHeaders=true
1010

1111
rem Uncomment any of the following for enhanced debug
1212
rem set EXTRA_PARMS=%EXTRA_PARMS% -Dmaillogger.debug.enabled=true

Server/bin/start-openas2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ PWD_OVERRIDE=""
1010
# remove -Dorg.apache.commons.logging.Log=org.openas2.logging.Log if using another logging package
1111
#
1212
EXTRA_PARMS="-Xms32m -Xmx384m -Dorg.apache.commons.logging.Log=org.openas2.logging.Log"
13-
# By default allow restricted HTTP headers
14-
EXTRA_PARMS="$EXTRA_PARMS -Dsun.net.http.allowRestrictedHeaders=true"
13+
# For versions of Java that prevent restricted HTTP headers (see documentation for discussion on this)
14+
#EXTRA_PARMS="$EXTRA_PARMS -Dsun.net.http.allowRestrictedHeaders=true"
1515
# Uncomment any of the following for enhanced debug
1616
#EXTRA_PARMS="$EXTRA_PARMS -Dmaillogger.debug.enabled=true"
1717
#EXTRA_PARMS="$EXTRA_PARMS -DlogRxdMsgMimeBodyParts=true"

Server/lib/openas2-server.jar

398 Bytes
Binary file not shown.

Server/src/org/openas2/Session.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
public interface Session {
2222
/** Official OpenAS2 release version */
23-
public static final String VERSION = "2.1.2";
23+
public static final String VERSION = "2.1.3";
2424

2525
/** Official OpenAS2 title */
2626
public static final String TITLE = "OpenAS2 v" + VERSION;

Server/src/org/openas2/app/OpenAS2Server.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,32 @@ public void run()
4747
try {
4848
Log logger = LogFactory.getLog(OpenAS2Server.class.getSimpleName());
4949

50-
write(Session.TITLE + "\r\nStarting Server...\r\n");
50+
write(Session.TITLE + System.getProperty("line.separator") + "Starting Server..." + System.getProperty("line.separator"));
5151

5252
// create the OpenAS2 Session object
5353
// this is used by all other objects to access global configs and functionality
54-
write("Loading configuration...\r\n");
54+
write("Loading configuration..." + System.getProperty("line.separator"));
5555

5656
if (args.length > 0) {
5757
session = new XMLSession(args[0]);
5858
} else {
59-
write("Usage:\r\n");
60-
write("java org.openas2.app.OpenAS2Server <configuration file>\r\n");
59+
write("Usage:" + System.getProperty("line.separator"));
60+
write("java org.openas2.app.OpenAS2Server <configuration file>" + System.getProperty("line.separator"));
6161
throw new Exception("Missing configuration file");
6262
}
6363
// create a command processor
6464

6565
// get a registry of Command objects, and add Commands for the Session
66-
write("Registering Session to Command Processor...\r\n");
66+
write("Registering Session to Command Processor..." + System.getProperty("line.separator"));
6767

6868
CommandRegistry reg = session.getCommandRegistry();
6969

7070
// start the active processor modules
71-
write("Starting Active Modules...\r\n");
71+
write("Starting Active Modules..." + System.getProperty("line.separator"));
7272
session.getProcessor().startActiveModules();
7373

7474
// enter the command processing loop
75-
write("OpenAS2 V" + Session.VERSION + " Started\r\n");
75+
write("OpenAS2 V" + Session.VERSION + " Started" + System.getProperty("line.separator"));
7676

7777

7878
logger.info("- OpenAS2 Started - V" + Session.VERSION);
@@ -81,7 +81,7 @@ public void run()
8181
List<BaseCommandProcessor> processors = cmdMgr.getProcessors();
8282
for (int i = 0; i < processors.size(); i++) {
8383
write("Loading Command Processor..." + processors.toString()
84-
+ "\r\n");
84+
+ System.getProperty("line.separator"));
8585
cmd = (BaseCommandProcessor) processors.get(i);
8686
cmd.init();
8787
cmd.addCommands(reg);

Server/src/org/openas2/logging/DefaultFormatter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class DefaultFormatter extends BaseFormatter {
1414
public String getTerminatedMessage(OpenAS2Exception exception) {
15-
StringBuffer buf = new StringBuffer("Termination of exception:\r\n");
15+
StringBuffer buf = new StringBuffer("Termination of exception:" + System.getProperty("line.separator"));
1616

1717
// Write exception trace
1818
StringWriter strWriter = new StringWriter();
@@ -27,8 +27,8 @@ public String getTerminatedMessage(OpenAS2Exception exception) {
2727

2828
while (sourceIt.hasNext()) {
2929
source = sourceIt.next();
30-
buf.append(source.getKey().toString()).append("\r\n");
31-
buf.append(source.getValue().toString()).append("\r\n\r\n");
30+
buf.append(source.getKey().toString()).append(System.getProperty("line.separator"));
31+
buf.append(source.getValue().toString()).append(System.getProperty("line.separator")).append(System.getProperty("line.separator"));
3232
}
3333

3434
return buf.toString();

Server/src/org/openas2/logging/EmailLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected void doLog(OpenAS2Exception exception, boolean terminated) {
118118
body.append(parseText(exception, terminated, getParameter(PARAM_BODY, false)));
119119
}
120120

121-
body.append("\r\n");
121+
body.append(System.getProperty("line.separator"));
122122

123123
if (getParameter(PARAM_BODYTEMPLATE, false) != null) {
124124
body.append(parseText(exception, terminated, getTemplateText()));

Server/src/org/openas2/message/BaseMessage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public String toString() {
285285
buf.append("To:").append(getPartnership().getReceiverIDs());
286286

287287
Enumeration<Header> headerEn = getHeaders().getAllHeaders();
288-
buf.append("\r\nHeaders:{");
288+
buf.append(System.getProperty("line.separator") + "Headers:{");
289289

290290
while (headerEn.hasMoreElements()) {
291291
Header header = headerEn.nextElement();
@@ -297,12 +297,12 @@ public String toString() {
297297
}
298298

299299
buf.append("}");
300-
buf.append("\r\nAttributes:").append(getAttributes());
300+
buf.append(System.getProperty("line.separator") + "Attributes:").append(getAttributes());
301301

302302
MessageMDN mdn = getMDN();
303303

304304
if (mdn != null) {
305-
buf.append("\r\nMDN:");
305+
buf.append(System.getProperty("line.separator") + "MDN:");
306306
buf.append(mdn.toString());
307307
}
308308

0 commit comments

Comments
 (0)