This was written assuming that the DBDeployer will always run in the super tenant. Danushka, Can you create a Jira to track this?
Thanks, Sameera. On Tue, Jun 3, 2014 at 6:05 PM, Anjana Fernando <anj...@wso2.com> wrote: > Hi, > > Yeah, seems like a bug, I also can't remember why we are doing this. > @Prabath, do you remember why we have done such a change there? .. and > @Chanika, please look into this, and fix for the next release. > > Cheers, > Anjana. > > > On Tue, Jun 3, 2014 at 5:58 PM, Danushka Fernando <danush...@wso2.com> > wrote: > >> Hi all >> I came across following issue recently. Always first call done to AS (As >> a tenant when tenant is not loaded yet) it fails with access denied. The >> reason was in authorization handler when we retrieve user realm from carbon >> context, its not tenant's realm it's super tenant realm. >> >> When I was debugging further I found that DBDeployer [1] is setting the >> wrong user realm to carbon context replacing the correct one set by Carbon >> Authentication Util. >> >> Is there a specific reason for this. Can we fix this to set the correct >> values ? >> >> [1] >> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/data-services/org.wso2.carbon.dataservices.core/4.2.1/src/main/java/org/wso2/carbon/dataservices/core/DBDeployer.java >> >> Thanks & Regards >> Danushka Fernando >> Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> > > > > -- > *Anjana Fernando* > Senior Technical Lead > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev