Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12894

[Script] Content.migrate is not robust when live session does not exist yet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.10.5, 4.11.0
    • None
    • None
    • None
    • 4.11M3
    • Oui

      When we call the Content.migrate method with the argument synchonizeLiveWorkspace to true and the live workspace does not exist, the script can fail with the following error:

      java.lang.NullPointerException: Cannot invoke "javax.jcr.Session.getNodeByIdentifier(String)" because "liveSession" is null

      We should not call this method if the live session is null.

      It can appear on some automatic migrations when we have deleted the live workspace manually.

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: