synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available
Date Mon, 11 May 2009 08:49:45 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707938#action_12707938
] 

Andreas Veithen commented on SYNAPSE-525:
-----------------------------------------

I think that neither the preserve-by-default nor the remove-by-default approach are appropriate
and consistent, but that the most reasonable default behavior would be as follows:

- If the SOAP header has been processed by a module engaged on the proxy service, remove it
when forwarding the message.
- If the SOAP header has not been processed by a module engaged on the proxy service, preserve
it and forward it to the target service.

This would even extend to WS-Security: if Rampart is engaged on a proxy service (I don't know
if that is possible for the moment), it means that the security headers are for Synapse and
in general it would be wrong to forward them. On the other hand, if Rampart is not engaged
on the proxy, in most cases this means that they are for the target service and we should
forward them.

Since currently only addressing is engaged by default on proxy services, the old behavior
(remove addressing headers, but preserve security and RM headers) was actually consistent!
On the other hand, I agree with you that hardcoding this decision in the core is not a good
idea. I think that Axis2 keeps track of the headers that have been processed (for the must
understand check). Therefore my counterproposal would be:

- For 1.3, revert to the old behavior (remove addressing information by default).
- For the next release after 1.3, implement a proper mechanism that preserves or removes headers
based on the rules above.

> Option to preserve addressing headers should be available
> ---------------------------------------------------------
>
>                 Key: SYNAPSE-525
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>         Environment: all env
>            Reporter: Ruwan Linton
>            Assignee: Ruwan Linton
>             Fix For: 1.3
>
>
> For the moment Synapse replaces all the addressing headers when sending the message out
to the routed service, but there can be case where the mediation configuration should preserve
the addressing headers. For example like wsa:Reply-To
> So this requires a switch to configure the send mediator to not to alter addressing headers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message