It seems like we can use the reverseProxyMode property to determine whether
a request should be dispatched internally or to a back-end. In
ELB, reverseProxyMode is set to true meaning that the requests it receive
should be dispatched to back-end. So, since we can not remove
POXSecurityHandler from ELB, we should do a check for this property, and if
true, then ignore any pox related processing. WDYT?

This property is a recent addition, and has been discussed in the following
thread in Dev - ELB - Exposing Admin services (AuthenticationAdmin)

Thanks,
KasunG


On Tue, Aug 20, 2013 at 3:58 PM, Pradeep Fernando <[email protected]> wrote:

>
>
>
> On Tue, Aug 20, 2013 at 3:56 PM, Kasun Gajasinghe <[email protected]> wrote:
>
>>
>>
>>
>> On Tue, Aug 20, 2013 at 3:48 PM, Pradeep Fernando <[email protected]>wrote:
>>
>>> no we did not remove. Can do for this release..
>>>
>> However going through the commited code changes are similar to ones we
>>> reverted.
>>> I asked to patch the security.mgt jar with previous packs one. That
>>> would allow them to proceed with testing in the meantime. Code in the
>>> POXSecurityHandler is very sensitive. We should be extra careful when
>>> making changes..
>>>
>>
>>
>> I went through the svn commits, it seems that the changes we reverted has
>> been added back in r181647. :(
>>
> Told you.. :)
>
>
>
>>  Even though the commit log say that it's a  fix for 
>> WSAS-1473<https://wso2.org/jira/browse/WSAS-1473>,
>> it's not. Don't understand why it got added. But I have reverted the change.
>>
>> Thanks,
>> KasunG
>>
>>
>>>
>>>
>>> On Tue, Aug 20, 2013 at 3:39 PM, Kasun Gajasinghe <[email protected]>wrote:
>>>
>>>> Hi Pradeep,
>>>>
>>>> No, this isn't a regression due to the said issue. Although the changes
>>>> are done in POXSecurityHandler, it's for a different issue related to
>>>> performance.
>>>>
>>>> And, did we not remove POX security handler from ELB?
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Aug 20, 2013 at 3:32 PM, Pradeep Fernando <[email protected]>wrote:
>>>>
>>>>> Hi Geeth, Piyum,
>>>>>
>>>>> I beleive the above is a regression due to
>>>>>
>>>>> https://wso2.org/jira/browse/WSAS-1473
>>>>>
>>>>> can you please have a look..
>>>>>
>>>>>
>>>>> On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I was setting up a worker/manager separated setup with the latest
>>>>>> packs (18th Aug) and noticed that I cannot access the Management console.
>>>>>> It throws the below NPE at ELB side.
>>>>>>
>>>>>>
>>>>>>
>>>>>> ************************************************************************************************
>>>>>> TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
>>>>>> {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
>>>>>> out after request is read: http-incoming-3
>>>>>> {org.apache.synapse.transport.passthru.SourceHandler}
>>>>>> TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
>>>>>> {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
>>>>>> exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
>>>>>> java.lang.NullPointerException: Tenant domain has not been set in
>>>>>> CarbonContext
>>>>>> at
>>>>>> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>>>>>>  at
>>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
>>>>>>  at
>>>>>> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
>>>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>>>>  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>>>>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>>>>> at
>>>>>> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
>>>>>>  at
>>>>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
>>>>>>  at
>>>>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>>>>>  at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>>>>>  at java.lang.Thread.run(Thread.java:722)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Evanthika Amarasiri
>>>>>> Senior Technical Lead - Quality Assurance
>>>>>> Mobile: +94773125935
>>>>>> *
>>>>>> *
>>>>>> wso2.com Lean Enterprise Middleware
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Pradeep Fernando*
>>>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>>>
>>>>> blog: http://pradeepfernando.blogspot.com
>>>>> m: +94776603662
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Kasun Gajasinghe*
>>>> Software Engineer;
>>>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>>>
>>>>
>>>>  ,
>>>> *email: **kasung AT spamfree wso2.com
>>>>
>>>>
>>>> ** cell: **+94 (77) 678-0813*
>>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>>
>>>>
>>>> *
>>>> *
>>>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>>>
>>>>
>>>> *
>>>> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>>>
>>>>
>>>> *
>>>> *
>>>>
>>>
>>>
>>>
>>> --
>>> *Pradeep Fernando*
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>>
>>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>
>>
>>  ,
>> *email: **kasung AT spamfree wso2.com
>>
>>
>> ** cell: **+94 (77) 678-0813*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>> *
>> *
>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>
>>
>> *
>> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>
>>
>> *
>> *
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>



-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* <http://kasunbg.org>


*
twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>


*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to