jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Micah Whitacre" <mkwhita...@gmail.com>
Subject Re: JSR 283 and PrincipalProviders
Date Thu, 05 Jun 2008 13:11:12 GMT
Thanks for the help.  I went and logged JCR-1640[1] for the stacktrace.

[1] -https://issues.apache.org/jira/browse/JCR-1640

On Thu, Jun 5, 2008 at 1:57 AM, Angela Schreiber <anchela@day.com> wrote:
> hi micah
> first of all: principal discovery and/or user management is not
> covered by JSR 283 and left to the implementation.
> what jackrabbit core currently does:
>> retrieve adminId and anonymousId from the config in order to
>  initialize those users (if missing some internal default
>  id value is used).
>> it's not meant that other users must be configured in the
>  repository.xml
>> instead you should be able to obtain the UserManager from the
>  JackrabbitSession in order to create additional users/groups
>  as you need them.
>> the default principal provider obtains principals from
>  the user manager.
>> Looking through the code I
>> came to the conclusion I'd need to write a PrincipalProvider that
>> would support the multiple Principals with various names.  Is that a
>> correct assumption?
> see above. it's not required unless you want the principals
> not to be obtained from the user manager.
>> And running a test that calls RepositoryImpl.login(Credentials) gives
>> me the following stack trace:
> that's probably a bug. can you open an issue for that?
> regards
> angela

View raw message