Hi Eranda,

The following commit is breaking tenant login and is a blocker at the
moment. It seems you are setting the RealmService to null explicitly which
is causing the issue .. can you please have a look and fix this ASAP ..

On Sun, Oct 7, 2012 at 5:05 PM, <era...@wso2.com> wrote:

> Author: eranda
> Date: Sun Oct  7 17:05:55 2012
> New Revision: 145003
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=145003
>
> Log:
> Fixing WS-Discovery issues
>
> Modified:
>
>  
> carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
>
> Modified:
> carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java?rev=145003&r1=145002&r2=145003&view=diff
>
> ==============================================================================
> ---
> carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
>  (original)
> +++
> carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
>  Sun Oct  7 17:05:55 2012
> @@ -19,33 +19,26 @@
>  package org.wso2.carbon.registry.core.ghostregistry;
>
>
> -import java.io.Reader;
> -import java.io.Writer;
> -import java.util.Date;
> -import java.util.Map;
> -
>  import org.apache.commons.logging.Log;
>  import org.apache.commons.logging.LogFactory;
> +import org.wso2.carbon.CarbonConstants;
>  import org.wso2.carbon.context.RegistryType;
>  import org.wso2.carbon.registry.api.RegistryService;
> -import org.wso2.carbon.registry.core.Aspect;
> -import org.wso2.carbon.registry.core.Association;
> -import org.wso2.carbon.registry.core.Collection;
> -import org.wso2.carbon.registry.core.Comment;
> -import org.wso2.carbon.registry.core.LogEntry;
> -import org.wso2.carbon.registry.core.LogEntryCollection;
> -import org.wso2.carbon.registry.core.Registry;
> -import org.wso2.carbon.registry.core.Resource;
> -import org.wso2.carbon.registry.core.Tag;
> -import org.wso2.carbon.registry.core.TaggedResourcePath;
> +import org.wso2.carbon.registry.core.*;
>  import org.wso2.carbon.registry.core.config.RegistryContext;
>  import org.wso2.carbon.registry.core.exceptions.RegistryException;
> +import org.wso2.carbon.registry.core.session.UserRegistry;
> +
> +import java.io.Reader;
> +import java.io.Writer;
> +import java.util.Date;
> +import java.util.Map;
>
>  /**
>   * This implements the Ghost lazy loading pattern for the Registry. An
> actual registry instance will
>   * not be created until first access.
>   */
> -public class GhostRegistry implements Registry {
> +public class GhostRegistry extends UserRegistry{
>
>      private static Log log = LogFactory.getLog(GhostRegistry.class);
>
> @@ -56,7 +49,10 @@
>      private Registry registry;
>
>
> -    public GhostRegistry(RegistryService registryService, int tenantId,
> RegistryType registryType) {
> +    public GhostRegistry(RegistryService registryService, int tenantId,
> RegistryType registryType)
> +            throws org.wso2.carbon.registry.api.RegistryException {
> +        super(CarbonConstants.REGISTRY_SYSTEM_USERNAME, tenantId,
> +                (Registry)registryService.getRegistry(), null, null );
>          this.registryService = registryService;
>          this.tenantId = tenantId;
>          this.registryType = registryType;
> _______________________________________________
> Commits mailing list
> comm...@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/commits
>



-- 
Thanks,
Shariq.
Phone: +94 777 202 225
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to