wttech / APM

AEM Permission Management (APM) is an AEM based, cloud compatible tool focused on streamlining the permission configuration.
Apache License 2.0
54 stars 15 forks source link

APM Down on cloudservice #405

Open adamzwoniarski opened 1 year ago

adamzwoniarski commented 1 year ago

Hi, Recently we are facing ConstraintViolationException while creating a property under the script file.

This was working fine before

  1. Install the package , check the installation Active logs console in the package manager .
  2. Manually create a property under a file with name "apm:launchRunModes".

The same works fine in SDK as well as with Rapid Dev environment

Stack trace: [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED 14.08.2023 14:27:09.663 [cm-p35702-e148937-aem-author-65944dfdc9-r2qrt] ERROR [92.29.91.38 [1692023229659] POST /bin/apm/scripts/upload HTTP/1.1] com.cognifide.apm.core.scripts.ScriptStorageImpl No matching property definition: apm:launchRunModes = [] javax.jcr.nodetype.ConstraintViolationException: No matching property definition: apm:launchRunModes = [] at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.setProperty(NodeDelegate.java:514) [org.apache.jackrabbit.oak-jcr:1.52.0.T20230629133256-25c01b8] at org.apache.jackrabbit.oak.jcr.session.NodeImpl$39.perform(NodeImpl.java:1495) [org.apache.jackrabbit.oak-jcr:1.52.0.T20230629133256-25c01b8] ....

Passed to adobe as well, could you please assist?

dprzybyl commented 1 year ago

Hi, please add following details:

adamzwoniarski commented 1 year ago

Hey, here you are

APM Version latest : https://github.com/wttech/APM/releases/tag/apm-5.6.25

AEM Cloud Version : 2023.7.12874.20230726T072051Z

Steps to reproduce : The latest APM version should be installed on AEM cloud sandbox instance (NOT on local SDK or RDE), and try to create new script file, and the save fails with 500 error request in the console.

dprzybyl commented 1 year ago

Do you use this dependency?

<dependency>
  <groupId>com.cognifide.apm.crx</groupId>
  <artifactId>apm-ui.apps.cloud</artifactId>
  <version>5.6.26</version>
  <type>zip</type>
</dependency> 
adamzwoniarski commented 1 year ago

We are using 5.6.25, as 5.6.26 is a prerelease version. Thanks

W dniu wt., 22.08.2023 o 11:38 Dominik Przybyl @.***> napisał(a):

Do you use this dependency?

com.cognifide.apm.crx apm-ui.apps.cloud 5.6.26 zip

— Reply to this email directly, view it on GitHub https://github.com/wttech/APM/issues/405#issuecomment-1687835375, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZVSRSBM6CQWVTY2NU6HILXWR4ZFANCNFSM6AAAAAA3SHRBJI . You are receiving this because you authored the thread.Message ID: @.***>

-- Kind regards, Adam Zwoniarski

adamzwoniarski commented 11 months ago

Hey, Seems the root cause for this issue is the bold one below is missing in cloud env, and exists in local.

It is there in the repoinit configs of APM package but it's not getting updated to the cloud env.

[apm:Script] mixin