Comments (5)
is resolved by #30
from aem-cloud-validator.
@royteeuwen Thanks for the PR. Do you know if install hooks in mutable packages work meanwhile in Cloud Manager as well? Adobe recently updated FileVault to a newer version so potentially they have fixed this...
from aem-cloud-validator.
I just checked the OSGi configuration of an AEM Cloud instance version 2023.4.11873.20230421T153841Z
and it still doesn't contain the necessary OSGi config for PID org.apache.jackrabbit.vault.packaging.impl.PackagingImpl
to grant the sling-distribution-importer
the rights to execute install hooks, unfortunately.
But as the configuration PID org.apache.jackrabbit.vault.packaging.impl.PackagingImpl
is not listed as protected (https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/docs/api-regions.md#configurations) in https://repo1.maven.org/maven2/com/adobe/aem/aem-sdk-api/2023.4.11873.20230421T153841Z-230200/aem-sdk-api-2023.4.11873.20230421T153841Z-230200-aem-publish-sdk.slingosgifeature it is possible to allow hooks with a custom OSGi configuration extending the default one:
"org.apache.jackrabbit.vault.packaging.impl.PackagingImpl": {
"overwritePrimaryTypesOfFolders":"false",
"isStrict":"false",
"defaultIdConflictPolicy":"LEGACY"
},
with the following option
"org.apache.jackrabbit.vault.packaging.impl.PackagingImpl": {
"authIdsForHookExecution":[
"sling-distribution-importer"
]
},
from aem-cloud-validator.
@kwin ok, good to know! Nowadays we just use the startuphooks for cloud, dont know if it covers all cases though.
what do you recommend for this PR? I can update the readme with the osgi conf you show, or we can create support cases to request the osgi conf ;)?
from aem-cloud-validator.
I will take care of both :-) and go ahead with your PR as is first.
from aem-cloud-validator.
Related Issues (16)
- No nodes below /var in package
- Rule for client libraries
- Make sure that "mixed" packages don't contain mutable content HOT 1
- Add integration test
- Only include index definitions in package type "application" or "mixed"
- Also detect external install hooks
- Check for run mode orders and values of OSGi configurations and bundles HOT 1
- Make GH Action work with PRs from forked repos
- the allowReadOnlyMutablePaths option does not work HOT 1
- Make build succeed on Windows
- Add rule for preventing install hooks in mutable content packages
- New rule for enforcing correct naming schema for index definitions
- Prevent "property" index definitions
- Add rule to check for nodes below /libs HOT 1
- Extend rule what may be included in mutable content packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aem-cloud-validator.