Empty Subject header causing null pointer exception

You are here

Empty Subject header causing null pointer exception

5 posts / 0 new
Last post
bdijk
bdijk's picture
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.

service
service's picture

bdijk,

thanks for the hint, we will check this.

Regards

phernas
phernas's picture

Is there already a solution for this problem? Or a workaround?

Regards

service
service's picture

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

phernas
phernas's picture

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

Regards
Patrick