[ 
http://wso2.org/jira/browse/WSAS-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charitha Kankanamge closed WSAS-722.
------------------------------------

    Resolution: Fixed

This is due to capitalizing "Other" in  throttle type="IP". Closed the bug.

> custom throttle policy does not get applied to the service correctly
> --------------------------------------------------------------------
>
>                 Key: WSAS-722
>                 URL: http://wso2.org/jira/browse/WSAS-722
>             Project: WSO2 WSAS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.2
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: indika kumara
>            Priority: Critical
>
> I customized the default policy in throttle module as follows.
> <wsp:Policy wsu:Id="urn:uuid:417FA87F89DB7D93B51202731235735" 
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
>    <throttle:ThrottleAssertion 
> xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle";>           
>                        
>       <wsp:All>                                               
>          <throttle:ID throttle:type="IP">Other</throttle:ID>                  
>                              
>          <wsp:ExactlyOne>                                                     
>    
>             <wsp:All>                                                         
>             
>                <throttle:MaximumCount>5</throttle:MaximumCount>               
>                                                       
>                <throttle:UnitTime>800000</throttle:UnitTime>                  
>                                                    
>                <throttle:ProhibitTimePeriod 
> wsp:Optional="true">10</throttle:ProhibitTimePeriod>                          
>                               
>             </wsp:All>                                                        
>             <throttle:IsAllow>true</throttle:IsAllow>                         
>                   
>          </wsp:ExactlyOne>                                             
>       </wsp:All>                                       
>    </throttle:ThrottleAssertion></wsp:Policy>
> Then I engaged throttling module to a service and invoked the service. I was 
> able to invoke the service more than 5 times. It seems my policy assertion 
> does not get applied properly. 
> Can someone please have a look at this? If my policy is wrong, please let me 
> know.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to