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

Annotations cannot be added one after another on the same line anymore in some conditions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • 18.4.0-rc-1
    • 18.0.0
    • Annotations
    • Windows 11 Pro, Firefox 150, using an instance of XWiki 18.0.0 on MySQL 9.7, Tomcat 11.0.22
    • Unknown

    Description

      Steps to reproduce

      1. Go to Sandbox.WebHome
      2. Go to a line that has multiple words with punctuation between them (like commas or periods)
      3. Select a word that has punctuation right next to it (before or after)
      4. Press CTRL+M, add some annotation text
      5. Click 'Add annotation'
      6. Select another word on the same line that has punctuation next to it
      7. Press CTRL+M, add some annotation text as well
      8. Click 'Add annotation'

      Expected results

      All annotation are added.

      Actual results

      The success message that the annotation was added is displayed for the second word, but the word does not appear to be annotated - is not highlighted even after page refresh and enabling Annotations again, and if the word is clicked from the Comment section, the anchor does not work.

      From what I could see, it's related to the punctuation located right next to the annotated word.

      Reproduced as well on XWiki 18.3.0, but could not be reproduced on XWiki 17.10.8.

      Attachments

        Issue Links

          Activity

            People

              Lucas C Charpentier Lucas
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: