-
Bug
-
Resolution: Fixed
-
Highest
-
8.0.1
-
Severity 3 - Minor
-
1
-
Issue Summary
HTML Script elements with content of length greater than 4000 characters, are corrupted when rendered within a Macro.
Steps to Reproduce
- Create a plugin
- Implement a macro which renders a Velocity file
- Embed <script> element in Velocity file
- Ensure script element content is greater than 4000 characters
- Install plugin
- Create a page and add the macro
Expected Results
Script executes in browser.
Actual Results
Browser throws syntax error as content is split into 4000 character chunks surrounded by <![CDATA[}} and {{]]>.
Workaround
Split >4000 character scripts into multiple <4000 character scripts.
OR
Type // and add a newline before every 4000th character so the insertion of ]]><![CDATA[ does not corrupt your script.
- followed by
-
CONFSERVER-82785 Macro HTML bodies longer than 64k characters may exhibit split CDATA sections and/or corrupt JavaScript elements
-
- Closed
-
[CONFSERVER-81454] HTML Script elements with content of length greater than 4000 characters, are corrupted when rendered within a Macro
Link |
New:
This issue followed by |
Description |
Original:
h3. Issue Summary
HTML Script elements with content of length greater than 4000 characters, are corrupted when rendered within a Macro. h3. Steps to Reproduce # Create a plugin # Implement a macro which renders a Velocity file # Embed {{<script>}} element in Velocity file # Ensure script element content is greater than 4000 characters # Install plugin # Create a page and add the macro h3. Expected Results Script executes in browser. h3. Actual Results Browser throws syntax error as content is split into 4000 character chunks surrounded by {{{}<![CDATA[}} and {{]]>{}}}. h3. Workaround Split >4000 character scripts into multiple <4000 character scripts. OR Type {{//}} and add a newline before every 4000th character so the insertion of {{]]><![CDATA[}} does not corrupt your script. |
New:
h3. Issue Summary
HTML Script elements with content of length greater than 4000 characters, are corrupted when rendered within a Macro. h3. Steps to Reproduce # Create a plugin # Implement a macro which renders a Velocity file # Embed {{<script>}} element in Velocity file # Ensure script element content is greater than 4000 characters # Install plugin # Create a page and add the macro h3. Expected Results Script executes in browser. h3. Actual Results Browser throws syntax error as content is split into 4000 character chunks surrounded by {{<![CDATA[}} and {{]]>}}. h3. Workaround Split >4000 character scripts into multiple <4000 character scripts. OR Type {{//}} and add a newline before every 4000th character so the insertion of {{]]><![CDATA[}} does not corrupt your script. |
When will this be fixed, our Confiforms is still broken in 8.1.3 - and we are u nable to deploy to production -
This is a heavy blocker
Best Regards,
Sandi Ameen
CitiBank