Uploaded image for project: 'Magnolia Synchronization Module'
  1. Magnolia Synchronization Module
  2. MGNLSYNC-44

Syncing nodes with missing versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.8.3, 1.9
    • 1.8.2, 1.9
    • Core, REST
    • Maintenance 10, Maintenance 11
    • 3

      The case can sometimes occur where a node has the hasVersion mixin but the versions do not exist.

      'stories':
        'jcr:mixinTypes': ['mgnl:hasVersion']
      

      Which can lead to:

      2020-05-25 13:50:20,552 DEBUG ynchronization.commands.RestSynchronizationCommand: Synchronization execuded successfully for node /travel/tour.
      2020-05-25 13:50:20,568 ERROR info.magnolia.module.scheduler.CommandJob         : Cannot execute command {0}-{1}.
      java.lang.NullPointerException: null
      	at info.magnolia.synchronization.commands.RestSynchronizationCommand.execute(RestSynchronizationCommand.java:87) ~[magnolia-synchronization-rest-1.9-beta2.jar:?]
      	at info.magnolia.synchronization.commands.RestSynchronizationCommand.execute(RestSynchronizationCommand.java:124) ~[magnolia-synchronization-rest-1.9-beta2.jar:?]
      	at info.magnolia.synchronization.commands.RestSynchronizationCommand.execute(RestSynchronizationCommand.java:69) ~[magnolia-synchronization-rest-1.9-beta2.jar:?]
      	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) ~[magnolia-core-6.2.jar:?]
      	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) ~[magnolia-core-6.2.jar:?]
      	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) [magnolia-module-scheduler-2.3.3.jar:?]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
      

      This needs to be fixed in both commands:

      • RestSynchronizationCommand
      • SynchronizationCommand

       

      AC

      • Check whether if it happens only for stories

        Acceptance criteria

              yen.lactue Yen Lac Tue
              rgange Richard Gange
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2h 23m
                    2h 23m