You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2017/10/27 13:05:00 UTC

[jira] [Reopened] (OAK-6873) UserInitializer should not use hard coded QueryIndexProvider

     [ https://issues.apache.org/jira/browse/OAK-6873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke reopened OAK-6873:
---------------------------------

Fails for me:
{noformat}
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.054 s <<< FAILURE! - in org.apache.jackrabbit.oak.segment.InitializerTest
[ERROR] testInitializerSegment(org.apache.jackrabbit.oak.segment.InitializerTest)  Time elapsed: 0.054 s  <<< ERROR!
java.lang.NullPointerException: QueryIndexProvider yet not initialized
        at org.apache.jackrabbit.oak.segment.InitializerTest.testInitializerSegment(InitializerTest.java:51)

{noformat}

> UserInitializer should not use hard coded QueryIndexProvider
> ------------------------------------------------------------
>
>                 Key: OAK-6873
>                 URL: https://issues.apache.org/jira/browse/OAK-6873
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: security
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.8, 1.7.11
>
>         Attachments: OAK-6873-v1.patch
>
>
> [UserInitializer|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserInitializer.java#L99] uses specific QueryIndexProvider
> {noformat}
>         Root root = RootFactory.createSystemRoot(store, EmptyHook.INSTANCE, workspaceName,
>                 securityProvider,
> new CompositeQueryIndexProvider(new PropertyIndexProvider(), new NodeTypeIndexProvider()));
> {noformat}
> Due to this its not possible to use other implementation of QueryIndexProvider like Lucene. To allow using other index types it should instead use {{WhiteboardIndexProvider}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)