Comments (3)
This is not as per AS2 standards, refer here https://tools.ietf.org/html/rfc4130#section-7.4.2
If it had at least been in the body then something could have been done but since its not you need to ask your partner to either user a proper AS2 software or disable Request MDN
for this partner and PyAs2 wont try to process this.
from django-pyas2.
Thanks for your reference.
In Sectionn 4.2 https://tools.ietf.org/html/rfc4130#section-4.2 i see this structure.
When no encryption or signature is used, the request is not wrapped in MIME... that is, no multipart.
Based on the same principle, I assumed that the MDN is also not wrapped.
4.2. Structure of an Internet EDI MIME Message
No encryption, no signature
-RFC2616/2045
-RFC1767/RFC3023 (application/EDIxxxx or /xml)
MDN over HTTP, no signature
-RFC2616/2045
-RFC3798 (message/disposition-notification)
Also in section 7.4.2 I see
When the message is
unsigned, the transfer-layer ("outermost") entity-headers of the
AS2-MDN contain the content-type header that specifies a content-type
of "multipart/report" and parameters indicating the report-type, and
the value of the outermost multipart boundary.
Here, with transfer-layer outermost, I understand the HTTP response/request headers or SMTP headers.
I now see that there is seprate librarty used by django-pyas2 to parse the MDN, I I guess that this should be closed anyway and moved there.
I have also tested JScape AS2 implementation which is advertised as "certified" and I see the same error.
from django-pyas2.
Thanks for your time. I got it wrong.
For the reference.
For unsigned MDN the sync response should look like.
HTTP/1.0 200 OK
AS2-From: 0123456780000
AS2-To: "\" as2Name \""
AS2-Version: 1.1
Message-ID: <709700825.1028122454671.JavaMail@ediXchange>
Content-Type: multipart/report; report-type=disposition-notification; boundary="----=_Part_336_6069110.1040310218718"
------=_Part_336_6069110.1040310218718
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
The message <x12.edi> sent to Recipient <AS2 Test> on Thu, 19 Dec
2002 15:04:18 GMT with Subject <async MDN request> has been received.
The EDI Interchange was successfully decrypted, and its integrity was
verified. In addition, the sender of the message, Sender
<as2_company> at Location http://10.240.1.2:8201/exchange/as2_company
was authenticated as the originator of the message. There is no
guarantee, however, that the EDI interchange was syntactically
correct, or that it was received by the EDI application/translator.
------=_Part_336_6069110.1040310218718
Content-Type: message/disposition-notification
Content-Transfer-Encoding: 7bit
Reporting-UA: AS2@test:8101
Original-Recipient: rfc822; "AS2 Test"
Final-Recipient: rfc822; "AS2 Test"
Original-Message-ID: <#as2_company#01#a4260as2_companyout#>
Disposition: automatic-action/MDN-sent-automatically; processed
Received-Content-MIC: Hes6my+vIxIYxmvsA+MNpEOTPAc=, sha1
------=_Part_336_6069110.1040310218718--
from django-pyas2.
Related Issues (20)
- AS2 Platforms HOT 2
- manageas2server --retry doesn't work HOT 2
- Duplicate message because of 500 error HOT 1
- mTLS HOT 2
- Email event notifications. HOT 1
- MSSQL 'payload' FileField max_length restrictions HOT 4
- how would you convert a message back to original file? HOT 7
- Debian 12.5 - Error during install HOT 3
- REST API to for listing, retrieving, and sending files HOT 2
- Dependency Conflict HOT 3
- Save Received File to S3 Bucket HOT 1
- Model change
- Optimization for Queries required HOT 1
- Error when sending/receiving files EVP_PKEY_size HOT 1
- HTTPS HOT 1
- AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' HOT 2
- Invalid Private key file or Public key not included. HOT 1
- Support for SSL client authentication HOT 3
- Using django 4.2 storages HOT 4
- Signature Failed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-pyas2.