Unable to add Inline comment if link contains the same word

XMLWordPrintable

    • 6
    • Severity 3 - Minor
    • 19

      Issue Summary

      • If an "Inline" link is added to a page, any word that matches the text of the link cannot have an inline comment added to it.

      Steps to Reproduce

      1. Create a new page in Confluence.
      2. Type the text below.
        • Chrome
      3. And add the link below to the page and publish the page.
        • https://www.google.com/intl/en_au/chrome/
        • Smartlinks will choose the "Inline view" by default.
        • Storage format:
          <p>Chrome</p>
          <p><a href="https://www.google.com/intl/en_au/chrome/" data-card-appearance="inline">https://www.google.com/intl/en_au/chrome/</a>   </p>
      4. Attempt to add an inline comment on the "Chrome" text from Step 2 above.
      5. We'll not be able to.

      Expected Results

      • We're able to add inline comment

      Actual Results

      • Any word that matches the words in the link cannot have Inline comments added to it.
      • The error below is thrown by the Inline comment editor.
        • We're having trouble adding your comment. Try highlighting more or less text.
      • The error below is seen in the network tab.
        • [{errors: [{,...}], data: null}]
          0: {errors: [{,...}], data: null}
          data: null
          errors: [{,...}]
          0: {,...}
          extensions: {microsID: "...............",...}
          message: "..............: com.atlassian.confluence.api.service.exceptions.BadRequestException: Failed to insert highlight, invalid originalSelection, numMatches, or matchIndex"
          path: ["createInlineComment"]
          0: "createInlineComment"

      Workaround

      • Change the Smart link type from "Inline" to either "URL", or "Card".

            Assignee:
            William Paoli (Inactive)
            Reporter:
            Sattesh M
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: