OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
124 stars 90 forks source link

MIC mismatch #453

Closed nathalieDOXA closed 4 years ago

nathalieDOXA commented 4 years ago

Hi,

We complete the Oxalis set up with the Test Cetificate: https://stag1-peppol.doxa-holdings.com/oxalis/status I can send the file to my local server successfully.

But when send to an external server it has MIC mismatch error. receiverId: 0088:5488888004948, and received the following error: java -jar oxalis/target/oxalis-standalone.jar -f invoice-sample/sample1.xml -r 0088:5488888004948 -s 0088:5488888004948

2020-01-08 09:56:51,931 WARN [no.difi.oxalis.as2.util.MdnMimeMessageInspector] MIC mismatch, received MIC was '/ubQp02g4Ir1XY4Oe53EZSFSTM8=, sha1' while sent MIC was 'PThxKcSsaAATefLJWasFmFEdQkg=, sha1'. 2020-01-08 09:56:51,931 ERROR [no.difi.oxalis.as2.outbound.As2MessageSender] AS2 transmission failed with some error message 'The message sent to Recipient POP000178 on Wed, 08 Jan 2020 09:56:50 +0000 with Subject AS2 message from Oxalis has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. In addition, the sender of the message, Sender PSG000361 at Location 3.0.231.91 was authenticated as the originator of the message. There is no guarantee however that the EDI Interchange was syntactically correct, or was received by the EDI application/translator. '. 2020-01-08 09:56:51,933 ERROR [eu.sendregning.oxalis.Main] Execution failed: no.difi.oxalis.api.lang.OxalisTransmissionException: AS2 transmission failed : The message sent to Recipient POP000178 on Wed, 08 Jan 2020 09:56:50 +0000 with Subject AS2 message from Oxalis has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. In addition, the sender of the message, Sender PSG000361 at Location 3.0.231.91 was authenticated as the originator of the message. There is no guarantee however that the EDI Interchange was syntactically correct, or was received by the EDI application/translator.

java.util.concurrent.ExecutionException: no.difi.oxalis.api.lang.OxalisTransmissionException: AS2 transmission failed : The message sent to Recipient POP000178 on Wed, 08 Jan 2020 09:56:50 +0000 with Subject AS2 message from Oxalis has been received, the EDI Interchange was successfully decrypted and it's integrity was verified. In addition, the sender of the message, Sender PSG000361 at Location 3.0.231.91 was authenticated as the originator of the message. There is no guarantee however that the EDI Interchange was syntactically correct, or was received by the EDI application/translator.

When we do the testbed, we get the following error:

Transaction (with instance identifier PSG000361-38-20200115T022406) to testing AP failed to be delivered. Error; Unable to parse received MDN..

We have no clue for this error. Have you experienced it? Hope someone can help. Thanks in advance, Nathalie

nathalieDOXA commented 4 years ago

Hi, I found the solution for the testbed, we used the incorrect endpoint. Endpoint should point to /oxalis/as2. For the internal error, I still haven't figured out, but very probably, it is because a test certificate cannot send file to other server yet. I closed the ticket as well.