Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7314

Dry run not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Pipes 1.1.0
    • Pipes 2.0.2
    • Extensions
    • None

    Description

      I worked with npeltier to define a pipe to perform content migration, see below for an example of this pipe:

      def plumber = getService("org.apache.sling.pipes.Plumber");
      
      plumber.newPipe(resourceResolver)
          .echo('/content/foo/bar').name('startPath')
          .mv('${path.startPath.replace("/bar", "/xyz")}')
          .parent().name('parentContent')
          .mkdir('${path.parentContent}/bar').with('nodeType', 'nt:unstructured').name('targetResource')
          .write('sling:resourceType', 'test/components/somecomponent')
          .echo('${path.parentContent}/xyz')
          .mv('${path.targetResource}/xyz')
          .runWith("dryRun", "true");
      

      However, the dryRun argument is not taken into account, the changes are actually persisted in the repository.

      Attachments

        Activity

          People

            npeltier Nicolas Peltier
            hwong Honwai Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: