OpenAS2 / OpenAs2App

OpenAS2 is a java-based implementation of the EDIINT AS2 standard. It is intended to be used as a server. It is extremely configurable and supports a wide variety of signing and encryption algorithms.

Home Page:https://sourceforge.net/projects/openas2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Error in code for GET /api/messages/view

jfstarnaud opened this issue · comments

.prepareStatement("SELECT * FROM " + tableName + " WHERE " + FIELDS.MSG_ID + " msg_id = ?");

There is a small typo here causing a syntax error in the SQL statement intended for message viewing.

Any time you are meant to use the call you get this error:
org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "SELECT * FROM msg_metadata WHERE msg_id [*]msg_id = ?"; SQL statement:
SELECT * FROM msg_metadata WHERE msg_id msg_id = ?

Simply removing the "extra" msg_id from the string would solve the issue.

Thank you. When do you think the fix will be live?

3.6.0 just released fixes persistence issues and other bugs around the REST API that the WebUI app uses so you should upgrade.