Closed kwin closed 5 years ago
@kwin I think it would be better to create specific issues for each violation. When I review the list, I see a lot of things which appear to be invalid. The first one in your screenshot is a good example of this.
Well, the first ones are issued because https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/content/src/main/content/jcr_root/apps/acs-commons/components/workflow/watson-audio-transcription/.content.xml inherit (via sling:resourceSuperType
) from cq/workflow/components/model/external_process
which has mixin granite:FinalArea
. That means according to the Adobe documentation
Defines a node as final. Nodes classified as final cannot be overlaid or inherited. Final nodes can be used directly via sling:resourceType. Subnodes under final node are considered internal by default
You are clearly violating that guideline by inheriting from that resource type. So I don't think this is a false positive.
On the other hand https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/workflows-customizing-extending.html#CreatingCustomWorkflowStepComponents clearly states
To inherit from one of the (existing) base step components, add the following property to the cq:Component node: Name: sling:resourceSuperType Type: String Value: One of the following paths that resolves to a base component: cq/workflow/components/model/process cq/workflow/components/model/participant cq/workflow/components/model/dynamic_participant
Again, we should have this discussion in an "violation"-specific issue. But I'm quite confident that this is a false positive since otherwise there is no way to create an External Workflow Process. This is a documentation gap.
The workflow-related supertypes have been acknowledged meanwhile as false-positive and the fix is being tracked in CQ-4249019 (fixed with AEM 6.5). The only other types being reported as violations are
granite/ui/components/foundation/form/select
andgranite/ui/components/foundation/form/pathbrowser
andcq/cloudserviceconfigs/templates/configpage
About those I am not too sure. @justinedelson Do you know whether those are false-positives as well or whether those are just no longer allowed to be inherited.
I believe #3 is a false positive. Using this supertype is explicitly documented at https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/extending-cloud-config.html
I'm not sure about #1 and #2.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Just checked again on AEM 6.5 (/libs/granite/operations/content/healthreports/healthreport.html/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/SlingContentHealthCheck
) and with acs-aem-commons 4.0.0 no content classification issues are reported any longer!
Outstanding issues tracked in #1511
Required Information
Expected Behavior
ACS Commons should fully comply with the Content Classification rules being outlined at https://helpx.adobe.com/experience-manager/6-4/sites/deploying/using/sustainable-upgrades.html
Actual Behavior
If you verify the according health-check at
/libs/granite/operations/content/healthreports/healthreport.html/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/SlingContentHealthCheck
you get a lot of warning due to ACS Commons violating content classification.Steps to Reproduce
Just open
/libs/granite/operations/content/healthreports/healthreport.html/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/SlingContentHealthCheck
on AEM 6.4+ and check the warnings.Links
https://helpx.adobe.com/experience-manager/6-4/sites/deploying/using/sustainable-upgrades.html