holodeck-b2b / Holodeck-B2B

Holodeck B2B is an AS4 system-to-system messaging solution that implements the OASIS specifications for ebMS3 and it's AS4 profile. For more information visit the project website
http://holodeck-b2b.org
GNU General Public License v3.0
77 stars 38 forks source link

Receiving a User Message with empty PayloadInfo #16

Closed jaxgibbatamp closed 6 years ago

jaxgibbatamp commented 8 years ago

If my received message has no attachments, but the SOAP envelope explicitly states ns2:PayloadInfo/ this throws throw new PackagingException("PayloadInfo does not contain PartInfo elements");

thereafter, the message has a generated error for the header, & no further processing occurs - which means that any call to MessageContextUtils.getPrimaryMessageUnit(mc).entity will generate a null-pointer, as there are no primary message units left.

According to the spec, PartInfo can occur 0 or more times.

sfieten commented 6 years ago

Closing the issue as it cannot be reproduced in version 3.1.2.