This is
in 
./org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/app/RegistryResolver.java
and was a fix in recent hackathon. And this is the diff:

-                        if (tenantDomain == null) {
+                        if (tenantDomain == null ||
+
MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain))
{

It was a simple quick replace of the old logic using current mapping of *
tenantDomain* constants.

It's better to remove "||
MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain"
part I guess.

In fact do we need to proceed with the normal execution when there is no
tenantDomain in the servlet request? i.e. is it safe to try figure out the
domain name from username.

In case it's fine, there are two old bugs need to be fixed in
"getUserName()" and "getTenantId()".

 - Chethiya


> Going through the code in Registry Kernel I discovered that you have made
> changes to determine whether you are super tenant as follows:
>
> tenantDomain == null ||
> MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain)
>
> Is this correct? Why are we checking for null or some constant?
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Member - Integration Technologies Management Committee;
> Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chethiya Abeysinghe
Software Engineer; WSO2, Inc.;  http://wso2.com/
email: cheth...@wso2.com     phone: +94 777444891
blog: chethiya3000.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to