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

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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)

Environment

None

Status

Assignee

Unassigned

Reporter

Sync User [K15t]

Participants

None

Deployment

None

Sprint

None

Fix versions

Affects versions

3.3.2

Priority

Major
Configure