Hidden Page Properties makes words unusable for inline comments on page

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Issue Summary

      • When a Page Properties is set to "Hidden", any word on the page that matches any partial text inside the Page Properties macro, cannot have an inline comment added to it.

      Steps to Reproduce

      1. Create a new page, and add a "Page Properties" macro, and tick the "Hidden" option.
      2. Add some text inside of the "Page Properties" macro.
        • Apples
          Caterpillar
      3. Now add the following text on the page itself, outside of the "Page Properties" macro.
        • Apples
          Application
          Caterpillar
          Cat
          Cats
          
      4. Publish the page, and try to add some inline comments.
      5. Any word that matches the full, or partial text inside of the "Page Properties" macro will fail.
        • Apples
        • Application
        • App (from Application)
          • Fails as it matches "App" from "Apple" inside of the "Page Properties" macro.
        • Caterpillar
        • Cat
          • Fails as it matches "Cat" from "Caterpillar" inside of the "Page Properties" macro.
        • Cats
        • Cat (from Cats)
          • Fails as it matches "Cat" from "Caterpillar" inside of the "Page Properties" macro.

      Expected Results

      • We're able to add inline comments for any words in the Page Properties macro.

      Actual Results

      • Any word that matches the words in the Page Properties macro cannot have inline comments added to them.
      • 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

      • Make the Page Properties macro visible by unchecking the "Hidden" checkbox.
      • Highlight more text so that it unmatches any string than the words inside the Page Properties macro.
        • Example: From above, we cannot highlight "Cat", but "Cats" is fine.

            Assignee:
            Unassigned
            Reporter:
            Sattesh M
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: