Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20699

Annotations are pointing to the old document after move

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.3
    • Annotations
    • Unknown
    • Awaiting Committer feedback

    Description

      Reproduction step:

      1. create a page P1 with some content
      2. add an annotation
      3. rename the page to P2
      4. display the annotation

      Expected

      • the annotated content is displayed back

      Actual

      • no annotations are displayed

      Technical note
      This is cause by the Target field of the annotation XWiki.XWikiComments xobject pointing to the old document reference (e.g., P1 in the reproduction steps above)

      Until XWIKI-18072 is fixed, the idea is to:

      1. make the target field optional
      2. write a data migration to remove target field pointing to the current doc
      3. document the limitation for annotations pointing to other docs (which should never happen in practice, at least not without an extension or manual manipulation of xobjects)

       

      Page move/rename is at least since XWIKI-1014

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: