You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Michael Buchholz <m....@subnatural.de> on 2007/08/13 09:46:17 UTC

Problem with VALIDATE mediator

Hi,

there seems to be a problem with the validate mediator. Seems to me like 
a caching issue.

I changed the schema used in sample 7 so that synapse accepts messages 
with symbol values that match the following restriction:
<xs:simpleType name="CharsOnly">
	<xs:restriction base="xs:string">
		<xs:pattern value="[A-Z]{3}"/>
	</xs:restriction>
</xs:simpleType>
(see attached file for the modified sample 7)

After starting synapse the following test sequence fails at test #3:

-----Test #1-----
ant stockquote 
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM

stockquote:
      [java] Standard :: Stock price = $184.12973898992993

... worked. The schema seems to be valid. "IBM" is a valid symbol. :)


-----Test #2-----
Then I tried this:
ant stockquote 
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM2

stockquote:
      [java] org.apache.axis2.AxisFault: Invalid custom quote request


... correct. The symbol "IBM2" doesn´t match the given restriction pattern.


-----Test #3-----
ant stockquote 
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM

stockquote:
      [java] org.apache.axis2.AxisFault: Invalid custom quote request


... this is the same as test #1 but it fails now. I think that the 
validate mediator somehow caches the error of test #2.


Can you confirm this or am I doing something wrong?

Michael

Re: Problem with VALIDATE mediator

Posted by indika kumara <in...@apache.org>.
hi Michael

we are planing to release the next version with in the next month.

thanks

indika


On 8/14/07, Michael Buchholz <m....@subnatural.de> wrote:
>
> Hi Indika,
>
> I´m pleased to see that issue fixed already. Do you have a release plan
> when the next official synapse 1.0.1 or 1.1 and wso2-esb release will be?
>
> Thanks,
> Michael
>
> indika kumara schrieb:
> > Hi Michae
> >
> > There are an issues in the Validate mediator due to the caching of the
> > validation error. But in the current svn truck It has already been
> fixed. I
> > have tested your test scenarios ,those are worked with the current svn
> > .Could you please check it with the current svn?
> >
> > thanks
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-user-help@ws.apache.org
>
>

Re: Problem with VALIDATE mediator

Posted by Michael Buchholz <m....@subnatural.de>.
Hi Indika,

I´m pleased to see that issue fixed already. Do you have a release plan 
when the next official synapse 1.0.1 or 1.1 and wso2-esb release will be?

Thanks,
Michael

indika kumara schrieb:
> Hi Michae
> 
> There are an issues in the Validate mediator due to the caching of the
> validation error. But in the current svn truck It has already been fixed. I
> have tested your test scenarios ,those are worked with the current svn
> .Could you please check it with the current svn?
> 
> thanks
> 

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


Re: Problem with VALIDATE mediator

Posted by indika kumara <in...@apache.org>.
Hi Michae

There are an issues in the Validate mediator due to the caching of the
validation error. But in the current svn truck It has already been fixed. I
have tested your test scenarios ,those are worked with the current svn
.Could you please check it with the current svn?

thanks

Re: Problem with VALIDATE mediator

Posted by indika kumara <in...@gmail.com>.
Hi Michae

There are an issues in the Validate mediator due to the caching of the
validation error. But in the current svn truck It has already been fixed. I
have tested your test scenarios ,those are worked with the current svn
.Could you please check it with the current svn?

thanks
indika

Re: Problem with VALIDATE mediator

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Michael

Thanks for letting us know. I remember Indika finding out some issue 
related to validate mediator and/or caching.. Thus I will let him reply 
to this as it may already be fixed. But if this is a defect that still 
exists, we will surely fix it ASAP before 1.0.1

asankha

Michael Buchholz wrote:
> Hi,
>
> there seems to be a problem with the validate mediator. Seems to me 
> like a caching issue.
>
> I changed the schema used in sample 7 so that synapse accepts messages 
> with symbol values that match the following restriction:
> <xs:simpleType name="CharsOnly">
>     <xs:restriction base="xs:string">
>         <xs:pattern value="[A-Z]{3}"/>
>     </xs:restriction>
> </xs:simpleType>
> (see attached file for the modified sample 7)
>
> After starting synapse the following test sequence fails at test #3:
>
> -----Test #1-----
> ant stockquote 
> -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
> -Dtrpurl=http://localhost:8080 -Dsymbol=IBM
>
> stockquote:
>      [java] Standard :: Stock price = $184.12973898992993
>
> ... worked. The schema seems to be valid. "IBM" is a valid symbol. :)
>
>
> -----Test #2-----
> Then I tried this:
> ant stockquote 
> -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
> -Dtrpurl=http://localhost:8080 -Dsymbol=IBM2
>
> stockquote:
>      [java] org.apache.axis2.AxisFault: Invalid custom quote request
>
>
> ... correct. The symbol "IBM2" doesn´t match the given restriction 
> pattern.
>
>
> -----Test #3-----
> ant stockquote 
> -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
> -Dtrpurl=http://localhost:8080 -Dsymbol=IBM
>
> stockquote:
>      [java] org.apache.axis2.AxisFault: Invalid custom quote request
>
>
> ... this is the same as test #1 but it fails now. I think that the 
> validate mediator somehow caches the error of test #2.
>
>
> Can you confirm this or am I doing something wrong?
>
> Michael
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-user-help@ws.apache.org