-
Bug
-
Resolution: Obsolete
-
Low
-
5.3.1, 5.4.3, 5.4.4
-
Multiple Debian or Ubuntu distributions with either OpenJDK1.7 (using standalone) or Sun JDK 1.6 (using Tomcat6)
-
Severity 3 - Minor
-
If you put curly braces (e.g. "{}") in macro string parameters, the macro is likely to break in the WYSIWYG editor, but it will work on the final page. If you escape the curly braces like
\{
it will work in WYSIWYG, but show a wrong result on the real page
What will break?
- If it's a macro with macro body, the preview will lose it's icon and it's description text (name and selected parameters).
- If it's a macro without a body, the preview gets stuck loading with all controls like "save" or "preview" disabled.
How to reproduce
- Edit a page with WYSIWYG Editor
- Add a macro (panel macro for "macro with body" or gallery macro for "macro without body")
- Edit the added macro in Macro Browser
- Enter some text with curly braces into a string property field
- e.g. use the text test{ - opening curly brackets are more likely to break everything
- for the panel macro you can add the text to the param "title"
- for the gallery macro you can add the text to the param "title", too
- Hit the Macro Browser's save button.
- Look at the macro in the WYSIWYG Editor
- the panel macro won't have an icon or text anymore, the bar at the top will be blank
- the gallery macro got stuck loading, blocking the "save" and "cancel" controls
- is related to
-
CONFSERVER-28901 Curly left brace { in user macro breaks rendering
- Closed
-
CONFSERVER-33327 Incorrect Macro Icon when Macro Title Contains Left Curly Brace '{'
- Closed
-
CONFSERVER-41279 Page titles with curly or square brackets cannot be saved as bars in the Roadmap Planner macro
- Closed