jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: svn commit: r522858 - /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java
Date Tue, 27 Mar 2007 11:34:52 GMT
Hi,

On 3/27/07, tripod@apache.org <tripod@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

Mime
View raw message