You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Jukka Zitting <ju...@gmail.com> on 2007/03/27 13:34:52 UTC

Re: svn commit: r522858 - /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java

Hi,

On 3/27/07, tripod@apache.org <tr...@apache.org> wrote:
> Log:
> Use different login method if credentials are NULL
> [...]
>          Credentials creds = cp.getCredentials(request);
> -        return repository.login(creds, workspace);
> +        if (creds == null) {
> +            return repository.login(workspace);
> +        } else {
> +            return repository.login(creds, workspace);
> +        }

Is there a difference? At least the spec says that a null value should
be equivalent to not including the argument.

BR,

Jukka Zitting