Skip to content
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

Returning AS4MessageProcessorResult.createFailure() in IAS4ServletMessageProcessorSPI#processAS4UserMessage returns unsinged error message #188

Closed
problemzebra2 opened this issue Nov 3, 2023 · 2 comments
Assignees
Labels
enhancement Profile BDEW BDEW AS4 related Profile Peppol Peppol AS4 related

Comments

@problemzebra2
Copy link
Contributor

Returning AS4MessageProcessorResult.createFailure() in a custom implementation of IAS4ServletMessageProcessorSPI#processAS4UserMessage returns a unsinged error message.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<S12:Envelope xmlns:S12=http://www.w3.org/2003/05/soap-envelope>
    <S12:Header>
        <eb:Messaging xmlns:ds=http://www.w3.org/2000/09/xmldsig#
            xmlns:eb=http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/
            xmlns:ebbp=http://docs.oasis-open.org/ebxml-bp/ebbp-signals-2.0
            xmlns:ns2=http://schemas.xmlsoap.org/soap/envelope/
            xmlns:ns3=http://www.w3.org/2003/05/soap-envelope
            xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
            xmlns:xlink=http://www.w3.org/1999/xlink wsu:Id="xxxxxxxxxxxxxxxxxx">
            <eb:SignalMessage>
                <eb:MessageInfo>
                    <eb:Timestamp>2023-11-03T13:13:01.443+01:00</eb:Timestamp>
                    <eb:MessageId>xxxxxxxxxx</eb:MessageId>
                    <eb:RefToMessageId>xxxxxxxxxxxxxxxxxx</eb:RefToMessageId>
                </eb:MessageInfo>
                <eb:Error category="Processing" errorCode="EBMS:0103" refToMessageInError=xxxxxxxxxxxxxxxxxx severity="failure" shortDescription="PolicyNoncompliance">
                    <eb:Description xml:lang="en">PolicyNoncompliance</eb:Description>
                    <eb:ErrorDetail>The processor determined that the message's security methods, parameters, scope or other security policy-level requirements or agreements were not satisfied.</eb:ErrorDetail>
                </eb:Error>
            </eb:SignalMessage>
        </eb:Messaging>
    </S12:Header>
    <S12:Body/>
</S12:Envelope>

Is this behaviour somehow configurable? Or is this behaviour unexepected and we are doing something wrong in our implementation or Phase4 integration?

@phax
Copy link
Owner

phax commented Nov 3, 2023

Nope, currently not. In case of certificate issues, the error might always be unsigned ...

@phax phax self-assigned this Nov 6, 2023
@phax phax added Profile Peppol Peppol AS4 related Profile BDEW BDEW AS4 related enhancement labels Nov 16, 2023
@phax
Copy link
Owner

phax commented Jan 7, 2024

This will be part of the 2.7.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Profile BDEW BDEW AS4 related Profile Peppol Peppol AS4 related
Projects
None yet
Development

No branches or pull requests

2 participants