Uploaded image for project: 'Publishing'
  1. Publishing
  2. PUBLISHING-66

Groovy script fails sometimes when publishing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • 1.1
    • None

    Description

      Sometimes, while using groovy for publish content from website workspace, a PublicationException is launched and the message java.util.concurrent.ExecutionException: info.magnolia.publishing.exception.PublicationException: <ul><li>null: null</li></ul> is thrown.

      It's not easy to reproduce because it looks like it mostly depends on the page name. Creating a page called "publish-me" and then executing the snippet below triggers the exception.

      cm = info.magnolia.commands.CommandsManager.getInstance()
      command = cm.getCommand('activate')
      command.setRepository('website')
      command.setPath('/publish-me')
      command.execute(ctx)
      

      Other page names like "intranet" won't get published.

      The exception is launched by the class AbstractSender, method send, line 155 is throwing the nullPointer:

      getOperationByName(PUBLISH) : getOperationByName(UNPUBLISH);
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ccantalapiedra Carlos Cantalapiedra
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD