-
Bug
-
Resolution: Fixed
-
Low
-
8.5.21, 9.4.1
-
2
-
Severity 3 - Minor
-
5
-
Issue Summary
It's no longer possible to add inline comments to rendered text generated by the user macro attached to this ticket and/or any simple user macro with a body and mark it as Rendered. In 8.5.19, this was still possible. Now, when attempting to add inline comments to this text, you will see an error pop up with "We can't add your inline comment; the section you highlighted may contain a macro or user mention. Try highlighting plain text."
Steps to Reproduce
- First, create a user macro.
## Parameters: ## @param title:title=Title|type=string|required=true|default=Test Macro|desc=The title of the macro ## @param color:title=Text Color|type=string|required=false|default=#333333|desc=The color of the text ## @param backgroundColor:title=Background Color|type=string|required=false|default=#f5f5f5|desc=The background color of the macro <div style="border: 1px solid #ddd; border-radius: 5px; padding: 10px; margin: 10px 0; background-color: $paramBackgroundColor;"> <h3 style="color: $paramColor; margin-top: 0;">$paramTitle</h3> <div style="color: $paramColor;"> $body </div> </div>
Again, make sure to mark as Rendered.
3. Add the user macro to a page, and add some text to the body.
4. Save the page, and attempt to add an inline comment to the rendered text.
5. Using the same user macro, if you test this on 8.5.19, the inline comment works, and on 8.5.21, you will receive the error.
Expected Results
Inline comments are added.
Actual Results
An error message is thrown in the logs and in the browser when attempting to add inline comments to rendered text in user macros.
Additionally, this ERROR appears in the logs:
ERROR \[http-nio-8090-exec-10] \[plugins.highlight.service.DefaultSelectionModifier] modify Could not locate highlight text in storage format.
\-\- url: /rest/inlinecomments/1.0/comments
Workaround
There is currently no workaround for this issue.
- is caused by
-
CONFSERVER-99474 Inline comment is broken if a page contains Draw.io or for macros which has text only available in frontend
-
- Gathering Impact
-