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

Right after a migration to 4.0, the current Annotations class is not updated and new annotations are not created properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0-rc-1
    • Fix Version/s: 4.0
    • Component/s: Annotations
    • Labels:
      None
    • keywords:
      annotations migration class create new
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      1. ...
      1. start the 4.0 snapshot
      2. import the 4.0 snapshot xar
      – Migration complete –
      3. add a new annotation

      You will get the message that the annotations has been successfully added, but even after refresh, the annotated content is not shown in the Comments tab, nor the small yellow icon appears near the annotated text making annotation feature unusable after migration.

      It seems that the ApplicationReadyEvent listener that is supposed to update the currently configured annotations class is not being triggered. Since it also listens to DocumentUpdatedEvents, (for testing purposes) doing a simple save on the AnnotationsCode.AnnotationsConfig page will fix the annotations class and new annotations can be added.

      Issue originally reported by Sorin Burjan.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: