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-501) validate mediator strips off namespace: result valid messages are rejected.
Date Thu, 22 Jan 2009 17:10:03 GMT

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

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

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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message