Code Monkey home page Code Monkey logo

aem-cloud-migration's People

Contributors

dichaudhary avatar ireasor avatar synox avatar ukgaurav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aem-cloud-migration's Issues

NPE on Archetype 22

Expected Behaviour

Running the jar on the maven archetype 22 should not cause any errors.

Actual Behaviour

Running the jar on the maven archetype 22 causes this error:
java.lang.NullPointerException at com.adobe.skyline.migration.parser.CustomerProjectLoader.isContentPackage(CustomerProjectLoader.java:96)

Fix (which I'm not able to push)

in CustomerProjectLoader.isContentPackage() replace

        String packaging = moduleXml.getElementsByTagName(MigrationConstants.PACKAGING_TAG_NAME).item(0).getTextContent();
        return packaging.equals(MigrationConstants.CONTENT_PACKAGE_PACKAGING);

with:

        NodeList packagingTags = moduleXml.getElementsByTagName(MigrationConstants.PACKAGING_TAG_NAME);
        if (packagingTags.getLength() > 0) {
            String packaging = packagingTags.item(0).getTextContent();
            return packaging.equals(MigrationConstants.CONTENT_PACKAGE_PACKAGING);
        }
        return false;

AssetSetLastModifiedProcess and DamMetadataWritebackWorkflowCompleted Process are in UNNECESSARY list, but they are supported in AEMaaCS

Expected Behaviour

Custom code in AEMaaCS should be able to make use of AssetSetLastModifiedProcess and DamMetadataWritebackWorkflowCompleted process step in their code base. As they are used in Writeback workflow of AEMaaCS and supported, hence should not be part of UNNECESSARY process list.

Actual Behaviour

Code with AssetSetLastModifiedProcess and DamMetadataWritebackWorkflowCompleted process step are reported as BLOCKER bug in code scan as they are marked as UNNECESSARY.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Moving workflow artifacts from legacy paths

Expected Behaviour

Expecting workflow artifacts in legacy paths (like /etc/workflow/models/dam/update_asset) to be migrated to paths expected by AEM as a Cloud Service (/conf/global/settings/workflow)

Actual Behaviour

When workflow artifacts in a legacy tree (/etc/workflow) are updated by the tool, they are updated in place and not migrated to /conf/global/settings/workflow

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Using version 0.2.4

Sample Code that illustrates the problem

Logs taken while reproducing problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.