Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-31 Thread Abimaran Kugathasan
Hi All,

RESTAPISecurityInterceptor is used to bypass the authentication for swagger
json via /api/am/admin/v1/policies/swagger.json. There should be a
microservice registered in /api/am/admin/v1/policies, but there weren't. So
this issue occurred.

Any MSF4J interception will be invoked if there are matching path
registered in the MSF4J registry.

On Wed, Mar 29, 2017 at 12:09 PM, Abimaran Kugathasan 
wrote:

> Hi Thusitha,
>
>
> On Wed, Mar 29, 2017 at 12:04 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Abimaran,
>>
>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>>> org.wso2.msf4j.Interceptor.
>>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>>> works correctly.
>>> I debugged MSF4JMessageProcessor, there is a method named
>>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>>> haven't hit when I send GET.
>>
>> This is the entry point for MSF4J. If that doesn't get hit, it implies
>> due to some reason the http message doesn't reach to MSF4J side through the
>> transport. But that is strange. COuold you please verify that?
>>
>
> I'm getting 405 for GET, who is responding with 405? How can I verify? I
> thought MSF4J uses carbon-transport as underlying framework for HTTP
> transport.
>
>
>
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Dev,
>>>
>>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>>> org.wso2.msf4j.Interceptor.
>>>
>>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>>> works correctly.
>>>
>>> I debugged MSF4JMessageProcessor, there is a method named
>>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>>> haven't hit when I send GET.
>>>
>>> Which component calls this method? Also is there any configuration to
>>> decide which HTTP verb should be served?
>>>
>>> Appreciate your responses.
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Abimaran Kugathasan
Hi Thusitha,


On Wed, Mar 29, 2017 at 12:04 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Abimaran,
>
> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>> org.wso2.msf4j.Interceptor.
>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>> works correctly.
>> I debugged MSF4JMessageProcessor, there is a method named
>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>> haven't hit when I send GET.
>
> This is the entry point for MSF4J. If that doesn't get hit, it implies due
> to some reason the http message doesn't reach to MSF4J side through the
> transport. But that is strange. COuold you please verify that?
>

I'm getting 405 for GET, who is responding with 405? How can I verify? I
thought MSF4J uses carbon-transport as underlying framework for HTTP
transport.



>
> Thanks
> Thusitha
>
> On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Dev,
>>
>> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
>> org.wso2.msf4j.Interceptor.
>>
>> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
>> works correctly.
>>
>> I debugged MSF4JMessageProcessor, there is a method named
>> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
>> haven't hit when I send GET.
>>
>> Which component calls this method? Also is there any configuration to
>> decide which HTTP verb should be served?
>>
>> Appreciate your responses.
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Thusitha Thilina Dayaratne
Hi Abimaran,

In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
> org.wso2.msf4j.Interceptor.
> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
> works correctly.
> I debugged MSF4JMessageProcessor, there is a method named
> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
> haven't hit when I send GET.

This is the entry point for MSF4J. If that doesn't get hit, it implies due
to some reason the http message doesn't reach to MSF4J side through the
transport. But that is strange. COuold you please verify that?

Thanks
Thusitha

On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan 
wrote:

> Hi Dev,
>
> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
> org.wso2.msf4j.Interceptor.
>
> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
> works correctly.
>
> I debugged MSF4JMessageProcessor, there is a method named
> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
> haven't hit when I send GET.
>
> Which component calls this method? Also is there any configuration to
> decide which HTTP verb should be served?
>
> Appreciate your responses.
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Abimaran Kugathasan
Hi Dev,

In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
org.wso2.msf4j.Interceptor.

When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
works correctly.

I debugged MSF4JMessageProcessor, there is a method named
'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
haven't hit when I send GET.

Which component calls this method? Also is there any configuration to
decide which HTTP verb should be served?

Appreciate your responses.


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev