Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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). 

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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.