You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2019/08/13 08:21:00 UTC

[jira] [Commented] (JCRVLT-343) Check for index definitions also considers ACL entries

    [ https://issues.apache.org/jira/browse/JCRVLT-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905927#comment-16905927 ] 

Konrad Windszus commented on JCRVLT-343:
----------------------------------------

According to https://jackrabbit.apache.org/oak/docs/query/indexing.html#Index_Definition_Location, {{oak:QueryIndexDefinition}} nodes may be placed anywhere in the repo (not only below {{/oak:index}} on the root level). Those locations should be considered as well.

> Check for index definitions also considers ACL entries
> ------------------------------------------------------
>
>                 Key: JCRVLT-343
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-343
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: package maven plugin
>    Affects Versions: package-maven-plugin-1.0.4
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: package-maven-plugin-1.0.5
>
>
> The package for acs-aem-commons contains a rep:policy node at https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/content/src/main/content/jcr_root/_oak_index/_rep_policy.xml. This leads to the following build error when embedding acs-aem-commons-content in your own package as subpackage.
> {code}
> ....
> [INFO] --- filevault-package-maven-plugin:1.0.4:package (default-package) @ ... ---
> [INFO] using meta-inf/vault from /Users/konradwindszus/git/.../src/main/META-INF/vault
> [INFO] Scanning files for oak index definitions.
> [ERROR]  Package contains index /oak:index/rep:policy in filter, but not in package. Existing index will be removed.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  14.793 s
> [INFO] Finished at: 2019-07-25T11:25:51+02:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.4:package (default-package) on project ...: org.apache.maven.plugin.MojoExecutionException: Package should not contain index definitions, because 'allowIndexDefinitions=false'. -> [Help 1]
> [ERROR] 
> .
> {code}
> Either the check should be relaxed to skip rep:policy nodes or the warning message should be adjusted.
> The issue was originally reported through https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/1988.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)