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

Andreas Veithen commented on SYNAPSE-501:
-----------------------------------------

I fixed this issue in Axiom. I believe that this fix should resolve the problem 
in Synapse trunk, but I didn't test this yet. That's why I'm not marking this 
issue as resolved. Anyway before doing this we should add a unit test to 
Synapse.

Some more comments:
* The fix in Axiom will not solve the problem for Synapse releases < 1.3 (even 
when replacing the Axiom JARs with snapshot versions). The reason is that 
instead of OMSource (which is quite recent and only exists in Axiom 1.2.8), 
previous versions of ValidateMediator used StaxSource from Spring WS, and even 
older ones used StreamSource (if I remember well).
* We need to pay attention to avoid regression on this issue if we release 
Synapse 1.3 with Axiom 1.2.8, maybe using the patch mechanism. Adding a unit 
test will help us remembering this.

> validate mediator strips off namespace: result valid messages are rejected.
> ---------------------------------------------------------------------------
>
>                 Key: SYNAPSE-501
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-501
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: harm verhagen
>            Assignee: Andreas Veithen
>         Attachments: soap-problem.xml, soap-working.xml, synapse_sample_7.xml
>
>
> I found that using the validation mediator to validate incoming messages 
> sometimes marks valid messages as invalid.
> A namespace that is in the envelope part, will be cut off by the ESB before 
> passing to the validator. The validator then barfs on a missing namespace.
> steps to reproduce
> ===============
> see tha attached file: synapse_sample_7.xml
> send the soap message as found in the attached file soap-problem.xml
> result
> The ESB rejects the message, the validation fails
> expected result
> The ESB validates the message as OK.
> version
> ======
> Found in wso2esb v1.7.1

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to