Sling Filter for detecting package manager "install" POST request. | Community
Skip to main content
Level 2
October 16, 2015
Solved

Sling Filter for detecting package manager "install" POST request.

  • October 16, 2015
  • 1 reply
  • 630 views

Hi,

We are trying to detect the POST request send out on click of "install" in the CRX Package Manager. The request can be seen in the inspect element console but the sling filter is not detecting it. Is some specific configuration required in the AEM or in the filter for the same or some a different approach can be taken?

Our final goal is to perform some activity before the package installs (nothing to do with the package being installed nor do we want to interfere with the default AEM package install process). 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by gopalKa

Try your approach using com.day.jcr.vault.packaging.InstallHook.

Usually, you should capture the click, do some thing and then call install or capture the click, install and then after success do something. You cannot both post at the same time. May be I misunderstood.

1 reply

gopalKaAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Try your approach using com.day.jcr.vault.packaging.InstallHook.

Usually, you should capture the click, do some thing and then call install or capture the click, install and then after success do something. You cannot both post at the same time. May be I misunderstood.