Uploaded image for project: 'Scroll Content Management'
  1. VSN-3154

Publishing from Scroll Content Management bar without Scroll Translations into a new space doesn't work

    Details

    • Sprint:
      3.3.2

      Description

      Steps to reproduce

      • Create a space and create an initial version.
      • Create one page
      • Go to Scroll Content Management bar and click on "Publish Version" and choose "Publish to new space"

      Expected
      Space is published into new space

      Actual
      Publishing fails with exception

      Workaround

      Use the "Publish" action in the space tools for Scroll Versions to publish.

      Additional information

      Page 'com.k15t.scroll.platform.model.translation.pages.TranslatedUnversionedPage@436ce15e' could not be published.Reason: java.lang.ArrayIndexOutOfBoundsException: -1
      com.k15t.scroll.platform.model.space.exception.CannotPublishPageException: Page 'com.k15t.scroll.platform.model.translation.pages.TranslatedUnversionedPage@436ce15e' could not be published.Reason: java.lang.ArrayIndexOutOfBoundsException: -1
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher.publishScrollPageRecursively(AbstractPublisher.java:346)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher.publish(AbstractPublisher.java:231)
      	at com.k15t.scroll.platform.services.publishing.impl.DefaultScrollPublishManager.publish(DefaultScrollPublishManager.java:280)
      	at com.k15t.scroll.platform.ui.spaceadmin.versions.PublishTask.execute(PublishTask.java:56)
      	at com.k15t.scroll.platform.ui.spaceadmin.versions.PublishTask.execute(PublishTask.java:34)
      	at com.k15t.scroll.platform.model.task.impl.DefaultAsyncTask.call(DefaultAsyncTask.java:232)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.ArrayList.elementData(ArrayList.java:418)
      	at java.util.ArrayList.get(ArrayList.java:431)
      	at com.k15t.scroll.platform.services.publishing.impl.handlers.TranslationMetadataHandler.publish(TranslationMetadataHandler.java:60)
      	at com.k15t.scroll.platform.services.publishing.impl.handlers.AbstractPagePublishHandler.publish(AbstractPagePublishHandler.java:22)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher.invokeHandlers(AbstractPublisher.java:458)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher.invokeHandlers(AbstractPublisher.java:466)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher.access$000(AbstractPublisher.java:61)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher$5.doInTransaction(AbstractPublisher.java:322)
      	at com.k15t.scroll.platform.model.space.publisher.impl.AbstractPublisher$5.doInTransaction(AbstractPublisher.java:270)
      	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
      	at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:88)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
      	at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:82)
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                daria Daria Huber (K15t)
                Reporter:
                daria Daria Huber (K15t)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                    Inspector Sketch