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 keyBannedPath
Adobe's rule nameDo not create or modify nodes under libs in customer packages
TypeBug
SeverityCritical
Since2019.6.0
Checked byOakPAL 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 changedMove it to
A product component's dialog or scriptOverlay under /apps/<same path> using Sling Resource Merger, or a proxy component
A console or navigation itemOverlay under /apps with sling:hideResource or new nodes
An i18n dictionaryYour own dictionary under /apps/myco/i18n
A product configuration nodeAn 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

  1. Search every META-INF/vault/filter.xml for roots starting with /libs.
  2. For each, diff your version against the product's to see what was really changed.
  3. Recreate only that change as an overlay in /apps (or a supported config), keeping the rest of the product node untouched.
  4. 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

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.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples.

On AEM 6.5 code: Scan AEM 6.5 code free. The scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.