tiamo / phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard.
42 stars 41 forks source link

Updated base64 decode on processMessage to fix problem on bigger mess… #23

Closed robsonala closed 3 years ago

robsonala commented 3 years ago

Depending of the size of the size the processor is not recognising the base64 message and encoding it twice so the parser is being unable to read the message.

The problem was causing the following errors:

Partner failed to process file. processed/error: Failed to decrypt S/Mime message. Error: "error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error".
Partner failed to process file. processed/error: Failed to decrypt S/Mime message. Error: "error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag".
Partner failed to process file. processed/error: Failed to decrypt S/Mime message. Error: "error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error".

thanks, Robson

tiamo commented 3 years ago

Thank you! @robsonala

homer8173 commented 3 years ago

I have seen those errors so many times ! thanks @robsonala