Empty Subject header causing null pointer exception

We recently connect a partner who did send a subject header, but no value. This caused Mendelson AS2 to raise an HTTP error 500 due to a null pointer exception. The work around was to add a valid value. I'm not certain if not having a value is against the specs; just thought to mention it. Using a full trace in the web front end, the subject content was shown as \r\n.

Forum
AS2 compatibility

Comments

Profile picture for user service
Permalink

bdijk,

thanks for the hint, we will check this.

Regards

Profile picture for user service
Permalink

phernas,

it's still not clear if empty HTTP headers are allowed in HTTP POSTs but we modified the mendelson AS2 to work with it anyway. It's available in the commercial version of mendelson AS2 since 03/2015 and would be part of the next open source version.

Regards

Permalink

Dear service,
thank you for your support!
Talked to my partners and filled the http headers.

Regards
Patrick