-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async MDN isn't working in version 4.4.4 (Missing start boundary) #97
Comments
Hi, |
Hi, |
In version 4.4.2 the sync is also not working and getting disposition type is null. |
Okay, do you have the dump of the incoming MDN for evaluation? |
Hi, |
That depends on your setup... and the setup of the sending side. |
ASYNC-as2-incoming-1570473703393-0.http.log Attached 4 files from incoming dump. |
It contains the error message "Large File Support: body was not read yet". That means that dumping is not possible :( |
The last file contains data. And there you can see, that they are sending the header with a newline:
May that be the cause for that? |
Last file is sync mode.its working fine.I am testing the async mode via as2 server - sending from client to server and server send back to the same host for return the mdn.only as2 server of you not external as2 server. |
Dont know how to proceed.it was working fine 2-3 months ago. |
Thank you for the explanation. Will check |
If you have any fix for this issue.Please let me know. |
Sure of course. I'm tracking it down... |
Any updates? |
Can you please try with 4.4.6 - I tried to aligned header handling between receiving and async MDN. thx |
Hi philip, |
Hi Philip, |
The log is interesting. The boundary at the end is missing. I'm checking if a flush is missing |
I added an explicit |
Hi Philip, |
Yes, that is correct, because the Jakarta-artefacts are replacing the old Sun Java EE artefacts (as part of the migration to Eclipse). So this is functionally the same, just a new name |
Hi Philip, |
Can you manually download from https://oss.sonatype.org/content/repositories/snapshots/com/helger/as2-lib/4.4.7-SNAPSHOT/ - I don't want to make a release that does not work ;-) |
The fix is in as2-lib.jar ? |
Hopefully. I want you to test before I release :D |
So I need to replace as2-lib.jar and as2-server.jar and that is? |
Yes exactly. Just grab them from oss.sonatype.org and replace them. Than test pls :) |
Same issue. |
Okay, I tried to fix it. The sending of the async MDN happened asynchronously what makes no sense and causes a lot of issues (as you can see in your logfile). So I made the sending synchronously, especially because the "async" in "async MDN" only refers to the receipt of the original message, but not to the sending process itself. |
HI Philip, final String sPendingFolder = FilenameHelper.getAsSecureValidASCIIFilename (getSession ().getMessageProcessor () remove the call to getAsSecureValidASCIIFilename for folders.it's needed for filenames becasue Thanks a lot , |
Please let me know when the 4.4.7 release can be ready for download including the minor fix in AS2SenderModule |
Thanks for testing - will do :) |
I am really need this version.When you finish repack the version just email me. |
Release 4.4.7 is available, fixing both issues |
Hi Philip, |
4.4.8-SNAPSHOT does the trick |
Hi Philip, could you please create version 4.4.8? I would like to use this version.10x:) |
Thanks for the quick response |
Is it possible to issue 4.4.8? |
yes later. I am on vacation. . |
10x:) really appreciate your help. |
4.4.8 is out. New requests as new issue pls. Thx. |
10x a lot. |
Hi Philip,
When I try to perfrom async mdn I am failing in :
2019-10-07 16:05:43,199 DEBUG [AS2ConnectionThread-AS2MftMDNReceiverModule] (BCCryptoHelper:685) - BCCryptoHelper.verify; X509 subject=CN=CTM_MFT,OU=CONTROL-MaD,O=BMC Software Ltd.,L=Houston,ST=TX,C=US; useCertificateInBodyPart=true; forceVerify=false
2019-10-07 16:05:43,201 INFO [AS2ConnectionThread-AS2MftMDNReceiverModule] (OpenAS2Exception:118) - OpenAS2 NetException terminated: Address = /127.0.0.1 port = 56675
com.helger.as2lib.exception.WrappedOpenAS2Exception: javax.mail.internet.ParseException: Missing start boundary
at com.helger.as2lib.exception.WrappedOpenAS2Exception.wrap(WrappedOpenAS2Exception.java:66) ~[as2-lib-4.4.4.jar!/:4.4.4]
at com.helger.as2lib.processor.receiver.net.AS2MDNReceiverHandler.receiveMDN(AS2MDNReceiverHandler.java:291) ~[classes!/:4.4.4]
at com.helger.as2lib.processor.receiver.net.AS2MDNReceiverHandler.handle(AS2MDNReceiverHandler.java:173) [classes!/:4.4.4]
at com.helger.as2lib.processor.receiver.AbstractActiveNetModule$ConnectionThread.run(AbstractActiveNetModule.java:264) [as2-lib-4.4.4.jar!/:4.4.4]
Caused by: javax.mail.internet.ParseException: Missing start boundary
at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:680) ~[javax.mail-1.6.2.jar!/:1.6.2]
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:698) ~[javax.mail-1.6.2.jar!/:1.6.2]
at com.helger.as2lib.crypto.BCCryptoHelper.verify(BCCryptoHelper.java:696) ~[as2-lib-4.4.4.jar!/:4.4.4]
at com.helger.as2lib.util.AS2Helper.parseMDN(AS2Helper.java:404) ~[as2-lib-4.4.4.jar!/:4.4.4]
at com.helger.as2lib.processor.receiver.net.AS2MDNReceiverHandler.receiveMDN(AS2MDNReceiverHandler.java:238) ~[classes!/:4.4.4]
... 2 more
Do you know how to solve this issue?
Thanks,
Itay
The text was updated successfully, but these errors were encountered: