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

veithen edited comment on SYNAPSE-501 at 1/22/09 11:26 AM:
-------------------------------------------------------------------

I don't think it's a problem with the XPath evaluation. I think the issue 
arises in OMXMLReader (which is used to construct the Source object in trunk). 
I didn't test this but it's clear that in the particular case we have here 
(subelement + namespace mapping declared on a parent element and that is not 
used in an attribute or element name but only in an attribute value), the 
current OMXMLReader implementation can't give the expected result.

      was (Author: veithen):
    I don't think it's a problem with the XPath evaluation. I think the issue 
arises in SAXOMBuilder (which is used to construct the Source object in trunk). 
I didn't test this but it's clear that in the particular case we have here 
(subelement + namespace mapping declared on a parent element and that is not 
used in an attribute or element name but only in an attribute value), the 
current SAXOMBuilder implementation can't give the expected result.
  
> 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