adobe / aem-modernize-tools

A suite of tools to modernize your AEM Sites implementations off legacy features.
http://opensource.adobe.com/aem-modernize-tools/
Apache License 2.0
64 stars 42 forks source link

You do not have permissions, while scheduling Modernization tools -> component update job #199

Open sivavishnu11 opened 1 year ago

sivavishnu11 commented 1 year ago

Expected Behaviour

It should update the component references on the pages with new references

Actual Behaviour

Throwing error. Attached screenshot

Reproduce Scenario (including but not limited to)

1) Created the rule to replace component references 2) Make sure to add rules path for below configuration com.adobe.aem.modernize.component.impl.ComponentRewriteRuleServiceImpl 3) Select Tools -> AEM Modernize Tools -> Component Conversion and select the pages that you want to apply the rule.

Run the schedule job to see the error.

Steps to Reproduce

As described above

Platform and Version

AEM version 6.5.13

Sample Code that illustrates the problem

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="sling:OrderedFolder">

<grid_builder jcr:primaryType="nt:unstructured">
    <patterns jcr:primaryType="nt:unstructured">
        <grid_builder
                jcr:primaryType="nt:unstructured"
                sling:resourceType="chevrolet/components/structure/grid_builder" />
    </patterns>
    <replacement jcr:primaryType="nt:unstructured">
        <grid_builder
                jcr:primaryType="nt:unstructured"
                sling:resourceType="chevrolet/components/structure/chevy_grid_builder"
        />
    </replacement>
</grid_builder>

</jcr:root>

Logs taken while reproducing problem

Moderniztion tools - Component converter (1).pdf