-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
None
-
Affects Version/s: 7.16.0, 7.19.0, 7.19.8, 8.2.3, 8.4.5, 7.19.18, 8.5.5, 8.5.6, 8.5.7, 8.9.1, 8.5.11, 8.5.14, 8.5.17, 8.5.18, 8.5.19, 9.2.3, 9.2.6, 9.2.7, 9.2.13, 9.2.20, 10.2.15, 9.2.23
-
Component/s: Macros - Other Macros
-
None
-
11
-
Severity 3 - Minor
-
43
Issue Summary
In some situations users are unable to add inline comments to similar/repeated words that exist inside a macro body. For example, a macro body contains the text "This is inside a macro" and the text "I am not inside" lives outside the macro.
Adding an inline comment to the word "inside" results in this error
We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text.
This issue may affect other macros as well. This list may be updated upon confirmation of impact, but please ensure the macro has code updating frontend content and not solely in backend. Other cases with similar symptoms but different environmental conditions should be resolved by resolved by CONFSERVER-79879: Inline comment is broken if a page contains Capitioned Item, HTML Macro, Table Transformer,Hidden Data, Draw.io, MultiExcerpt Include and Confiform macros (fixed in Confluence Data Center 9.4.0, 9.2.3, 8.5.21).
Additional macros with reported impact:
- Coloredpanel macro
- Scroll Title macro
- Tables, Charts & Spreadsheets Plugin for Confluence
- add-label macro from Adaptavist ScriptRunner for Confluence
Steps to reproduce
Steps to Draw.io Macro:
Can't add an inline comment to a string or substring which is similar to the content inside a hidden macro
- Start editing a page, insert a "Draw.io" macro.
- Type some text inside the macro.
- Type the same text outside the macro.
- Save the page.
From now on you won't be able to make inline comments for any substring, which matches the text inside the macro.
Expected Results
Inline comments will be placed successfully.
Actual Results
We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text.
Workaround
Whilst there is no consistent workaround to correct this behaviour, it is possible to highlight a section of text that is now shared within and without the macro. This can generally be achieved by making the highlighted text longer to avoid the chance of matching strings.
However highlighting a section which is not common for both outside and inside macro works fine
- causes
-
CONFSERVER-99836 Attempting to add an inline comment to rendered text from a user macro results in an error
-
- Closed
-
- is cloned from
-
CONFSERVER-79879 Inline comment is broken if a page contains Capitioned Item, HTML Macro, Table Transformer,Hidden Data, Draw.io, MultiExcerpt Include and Confiform macros
-
- Closed
-