Skip to content

Allow to run AC Tool in phase "INSTALLED" rather than "PREPARE"  #287

Closed

Description

@kwin

Currently the install hook for applying the yaml files is being executed in Phase "Prepare" (https://jackrabbit.apache.org/filevault/apidocs/org/apache/jackrabbit/vault/packaging/InstallContext.Phase.html). The reason for that is most probably due to the description in https://jackrabbit.apache.org/filevault/apidocs/org/apache/jackrabbit/vault/packaging/InstallHook.html which states that only from Phase "Prepare" you can throw exceptions which lead to package installation failures.

The drawback of using PREPARE though is that

  1. you cannot create/update some initial content through a regular package structure and afterwards set ACLs for those in the same package.
  2. You cannot use repository structures as workaround for missing support for global variables (Allow to reuse variables from other YAML files #257)
  3. Initial content should be defined as regular content to be able to depend on it for application package type (https://issues.apache.org/jira/browse/JCRVLT-170). Those package types are not allowed to contain uncovered roots!

We should check again if PREPARE is really the only phase where Exception are being properly propagated.

Activity

  1. kwin commented on Apr 30, 2018

    @kwin
    MemberAuthor
  2. kwin commented on Jun 28, 2018

    @kwin
    MemberAuthor

    https://issues.apache.org/jira/browse/JCRVLT-289 is fixed now and should be contained in the upcoming version 3.2 of Jackrabbit FileVault.

  3. kwin commented on Nov 12, 2018

    @kwin
    MemberAuthor

    FileVault 3.2 is contained in AEM 6.4.2 or greater.

  4. kwin commented on Oct 11, 2019

    @kwin
    MemberAuthor

    To still support older AEM versions, the default behaviour should stay as is, but optionally the hook should be executed in a different phase.

  5. self-assigned this
    on Oct 11, 2019
  6. added a commit that references this issue on Oct 11, 2019
    20650c1
  7. added this to the milestone on Oct 11, 2019
  8. added 3 commits that reference this issue on Oct 11, 2019
    0df3892
    77a13c9
    405398c
  9. removed this from the milestone on Nov 4, 2019
  10. added this to the milestone on Nov 12, 2019
  11. changed the title [-]InstallHook should be executed in phase "INSTALLED" rather than "PREPARE"[/-] [+]Allow to run AC Tool in phase "INSTALLED" rather than "PREPARE" [/+] on Nov 12, 2019
  12. modified the milestones: , 2.4.1 on Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions