Uploaded image for project: 'Book Versions'
  1. Book Versions
  2. BVERSION-149

Exception when updatingg pinned pages upon publication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0
    • None
    • None
    • None
    • Unknown

    Description

      When publishing the following space, I'm hitting the following stack trace in the logs :

      Updating pinned pages
      The old reference [Space sub:Test Book] does not belong to the parents chain of the reference [Wiki xwiki]
      class java.lang.IllegalArgumentException: The old reference [Space sub:Test Book] does not belong to the parents chain of the reference [Wiki xwiki]
          at org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:126)
          at org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:132)
          at org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:132)
          at org.xwiki.model.reference.AbstractLocalizedEntityReference.<init>(AbstractLocalizedEntityReference.java:139)
          at org.xwiki.model.reference.DocumentReference.<init>(DocumentReference.java:87)
          at org.xwiki.model.reference.DocumentReference.replaceParent(DocumentReference.java:336)
          at wiki:sub//org.xwiki.contrib.bookversions.internal.DefaultBookVersionsManager.getPublishedReference(DefaultBookVersionsManager.java:2319)
          at wiki:sub//org.xwiki.contrib.bookversions.internal.DefaultBookVersionsManager.copyPinnedPagesInfo(DefaultBookVersionsManager.java:2580)
          at wiki:sub//org.xwiki.contrib.bookversions.internal.DefaultBookVersionsManager.publishInternal(DefaultBookVersionsManager.java:1921)
          at wiki:sub//org.xwiki.contrib.bookversions.internal.PublicationJob.runInternal(PublicationJob.java:84)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
          at java.base/java.lang.Thread.run(Thread.java:833)
      

      The test book I'm using is located in the sub-wiki sub. I'm attaching the XAR of this book to this issue.

      Attachments

        Activity

          People

            josue Josué Tille
            caubin Clément Aubin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: