Skip to content

Number of violations reported for a project built from latest AEM archetype #24

@teropikala

Description

@teropikala

Expected Behaviour

Project built from latest AEM archetype doesn't report any issues.

Actual Behaviour

12 violations are reported

Steps to Reproduce

  1. Generate AEM project using archetype with following arguments

mvn -B archetype:generate
-D archetypeGroupId=com.adobe.aem
-D archetypeArtifactId=aem-project-archetype
-D archetypeVersion=32
-D appTitle="My Site"
-D appId="mysite"
-D groupId="com.mysite"
-D aemVersion=6.5.7

  1. Add dispatcher-optimizer-tool to dispatcher/pom.xml as per instructions in this repository
  2. Set verbosity to FULL
  3. Run mvn dispatcher-optimizer:analyze in dispatcher folder

Platform and Version

Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
Maven home: /Applications/apache-maven-3.8.3
Java version: 1.8.0_301, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Logs taken while reproducing problem

[INFO] [Dispatcher Optimizer] Violations detected: 12
[INFO] [Dispatcher Optimizer] Details:
[INFO] Violation { severity=MAJOR, description='Include directive must include existing files. Check path, or use IncludeOptional.', context='Include directive must include existing files. Check path, or use IncludeOptional.' }
[INFO] Violation { severity=MAJOR, description='Include directive must include existing files. Check path, or use IncludeOptional.', context='Include directive must include existing files. Check path, or use IncludeOptional.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm cache should have its ignoreUrlParams rules configured in an allow list manner.', context='Farm "publishfarm" has its farm.cache.ignoreUrlParams misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm gracePeriod property should be >= 2.', context='Farm "publishfarm" has its farm.cache.gracePeriod misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm filters should specify the allowed Sling suffix patterns in an allow list manner.', context='Farm "publishfarm" has its farm.filter misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm filters should specify the allowed Sling selectors in an allow list manner.', context='Farm "publishfarm" has its farm.filter misconfigured.' }
[INFO] Violation { severity=MAJOR, description='Include directive must include existing files. Check path, or use IncludeOptional.', context='Include directive must include existing files. Check path, or use IncludeOptional.' }
[INFO] Violation { severity=MAJOR, description='Include directive must include existing files. Check path, or use IncludeOptional.', context='Include directive must include existing files. Check path, or use IncludeOptional.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm cache should have its ignoreUrlParams rules configured in an allow list manner.', context='Farm "publishfarm" has its farm.cache.ignoreUrlParams misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm gracePeriod property should be >= 2.', context='Farm "publishfarm" has its farm.cache.gracePeriod misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm filters should specify the allowed Sling suffix patterns in an allow list manner.', context='Farm "publishfarm" has its farm.filter misconfigured.' }
[INFO] Violation { severity=MAJOR, description='The Dispatcher publish farm filters should specify the allowed Sling selectors in an allow list manner.', context='Farm "publishfarm" has its farm.filter misconfigured.' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions