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.
https://sourceforge.net/projects/openas2/
GNU General Public License v3.0
185 stars 137 forks source link

Misleading error message when partnership/receiver is missing #255

Closed akasparas closed 2 years ago

akasparas commented 2 years ago

I had recipient tag instead of receiver in my partnership configuration. Yet OpenAS2 complained that sender is missing. Spent way too much time trying to find what's wrong.

https://github.com/OpenAS2/OpenAs2App/blob/3d566b06493b44b23e3dbb13272f3efed2ab2687/Server/src/main/java/org/openas2/partner/XMLPartnershipFactory.java#L139

uhurusurfa commented 2 years ago

thanks for the feedback. The message will be updarted to this in the next release: throw new OpenAS2Exception("Partnership \"" + partnershipName + "\" is missing a node entry for the " + partnerType + ".");

akasparas commented 2 years ago

Thanks! On a related note, could you please also check that partner node has both name and as2_id attributes defined. Due to spelling mistakes in these names server could not find relationships. And reason for that was very difficult to find.

uhurusurfa commented 2 years ago

Message changed in release 3.0.0