Send a Signing message with a gzip attachment
AlbertTse opened this issue · comments
Hi,
I configured Pmode with "signing" property.
When I send out message with "gzip" attachment,
"Authentication of message unit failed" error show.
If I send out message with a simple document attachment (e.g., xml), it works.
Any additional configuration is required for "gzip" attachment? Does it support signing with a gzip attachment?
Pmode / mmd files as follow
- Sender Pmode setting:
Sender_Pmode_ex-pm-push-auth-init_with_sign.txt - Receiver Pmode setting:
Receiver_Pmode_ex-pm-push-auth-resp_with_sign.txt - mmd with "gzip" attachment
Sender_msg_ex-mmd-push-auth_with_sign_gzip.mmd.txt - mmd with simple xml attachment
Sender_msg_ex-mmd-push-auth_with_sign_xml.mmd.txt
Hi @AlbertTse,
please note that compression of the payloads can only be enabled in the P-Mode by adding a //UserMessageFlow/PayloadProfile/UseAS4Compression
element with value true. This means that in you "gzip" scenario the compression feature is not used and the payload and its meta-data is sent as is, meaning that the MIME type of the attachment is incorrectly indicated as application/xml. This probably causes the signature validation to fail as XML attachment are processed differently than other file types.