-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce creation of /var/groovyconsole with the right node type #50
Comments
To me it is not clear which code is supposed to create/creating the parent node Update: So repoinit itself creates non-existing ancestors with default type (and in case that fails with
on AEM 6.5.x (still shipping with a very outdated JR FileVault version). In case Groovy Console's OSGi configuration for repoinit kicks in first, everything is fine, but in case our package is installed first |
@kwin didn't even know that create path was deprecated, thanks for that! This does indeed make it a hard case to fix in AEM 6.5 though... (or any AEM instance where you use an What I could do is rewrite this to The only other alternative I can think of is putting package dependencies between the config package of Do you have any other suggestions? |
I don’t have a good idea either. The proper solution is „enforce path“ but only available in AEMaaCS unfortunately. Maybe the node /var/groovyconsole/audit can be converted to |
less likely Only create those nodes via repoinit which are not created implicitly through packages. This closes orbinson#50
@kwin sorry for the long wait, we had issues with releasing this repo because of GPG issues. This is now released. FYI, I'm planning to release a version 20.x in the upcoming weeks with the changes from Barry and to upgrade groovy to JDK 22 support (Groovy 4.0.18) and a new feature inspired from Jenkins pipeline libraries where you can do @Library('path/in/crx') to load in extra groovy "snippets" that you'd like to share over multiple groovy files at runtime instead of having to do a code deploy to add extra functionality |
Right now in https://github.com/orbinson/aem-groovy-console/blob/main/ui.config/src/main/content/jcr_root/apps/groovyconsole-config/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer-groovyconsole.config you enforce creation of subnodes within /var/groovyconsole which require that to be a lenient type (e.g.
sling:Folder
). If for some reason the node/var/groovyconsole
is of typent:folder
starting the repository fails with the following exception:The text was updated successfully, but these errors were encountered: