icfnext / aem-groovy-console

The AEM Groovy Console provides an interface for running Groovy scripts in the AEM container. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the CQ, Sling, or JCR APIs.
Other
159 stars 94 forks source link

Groovy console does not execute scripts with admin user #102

Closed olimination closed 4 years ago

olimination commented 4 years ago

In the README file it is described that the admin user by default can execute scripts, but this somehow does not seem to work.

If we add an appropriate OSGi config for the "Groovy Console Service", then it works.

But according to the code here: https://github.com/icfnext/aem-groovy-console/blob/7f3bc579aaa4f77510a5cf481429acd0d5be2102/src/main/groovy/com/icfolson/aem/groovy/console/configuration/impl/DefaultConfigurationService.groovy#L52

I actually assume that it should work.

Do I miss something or could this be some bug?

Tested with AEM 6.5.2.0

markdaugherty commented 4 years ago

This is fixed in the latest develop snapshot but has not been released yet.

markdaugherty commented 4 years ago

What version are you running?

olimination commented 4 years ago

Ah cool, version 14.0.0. Then we'll wait for the next version.

Thank you!