Cloud Manager code quality · Content package rules (OakPAL) · updated
BannedPath: Do not create or modify nodes under libs in customer packages
BannedPath flags any customer content package that creates or changes nodes under /libs. Treat /libs as read-only: put overlays under /apps (same relative path) or use the extension point Adobe provides, and remove the /libs filter roots from your packages.
| Rule key | BannedPath |
|---|---|
| Adobe's rule name | Do not create or modify nodes under libs in customer packages |
| Type | Bug |
| Severity | Critical |
| Since | 2019.6.0 |
| Checked by | OakPAL scan of your content packages |
Why Cloud Manager flags it
/libs belongs to the product. On AEM as a Cloud Service it is part of the immutable image and is replaced on every update, so anything you put there is either rejected or silently overwritten. On AEM 6.5 the same changes survived until the next service pack and then broke. Adobe's Best Practices Analyzer reports the same problem on a running instance as LOCP (packages writing to /libs) and as content classification violations (CAV/ECU).
Adobe's rule page has no code example. The usual offenders are a filter.xml root under /libs, copies of /libs components edited in place, and i18n dictionaries or clientlibs dropped into /libs folders.
Where each kind of change should go
| You changed | Move it to |
|---|---|
| A product component's dialog or script | Overlay under /apps/<same path> using Sling Resource Merger, or a proxy component |
| A console or navigation item | Overlay under /apps with sling:hideResource or new nodes |
| An i18n dictionary | Your own dictionary under /apps/myco/i18n |
| A product configuration node | An OSGi configuration or /conf (context-aware configuration) |
Example
Non-compliant filter.xml
<workspaceFilter version="1.0">
<filter root="/libs/cq/gui/components/authoring/dialog"/>
</workspaceFilter>Compliant: overlay under /apps
<workspaceFilter version="1.0">
<filter root="/apps/cq/gui/components/authoring/dialog"/>
</workspaceFilter>
<!-- only the nodes you change, merged by the Sling Resource Merger -->How to fix it
- Search every META-INF/vault/filter.xml for roots starting with /libs.
- For each, diff your version against the product's to see what was really changed.
- Recreate only that change as an overlay in /apps (or a supported config), keeping the rest of the product node untouched.
- Re-test the affected console or component after the next AEM update on a development environment.
Does it stop the pipeline?
A critical bug lowers the Reliability Rating to D. Adobe's critical gate only trips below D, so on its own it does not stop the pipeline, but it is one step away and it shows as an open issue in the report.
If a finding is a genuine false positive, Adobe's code quality page lets you annotate the code with @SuppressWarnings and the rule ID. In a full-stack pipeline, important failures can be overridden by a deployment manager, project manager or business lead; in a code-quality-only pipeline they cannot.
Related pages on this site
Questions
Is an overlay in /apps allowed?
Yes, overlays through the Sling Resource Merger are the supported way to change product UI. Keep them small, because each one must be checked after AEM updates.
What does BPA call this?
BPA reports packages that write to /libs as LOCP and content in restricted areas as CAV or ECU.
Will the pipeline fail?
BannedPath is a critical bug, which lowers the Reliability Rating to D. The bigger risk is that the change is lost on the next update.
See the Cloud Service blockers in your code before Cloud Manager shows them. The free Surge Migrate readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists them with file, fix and effort. Nothing is uploaded.
Sources
- Adobe: Custom code quality rules (checked 10 Nov 2026)
- Adobe: Code quality testing in Cloud Manager (checked 10 Nov 2026)
Rule key, type, severity and version are as listed on Adobe's page, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.