[MAGNOLIA-960] newlines are not preserved during activation Created: 05/Jul/06  Updated: 21/Jun/07  Resolved: 08/Jul/06

Status: Closed
Project: Magnolia
Component/s: activation
Affects Version/s: 3.0 RC2
Fix Version/s: 3.0 RC3

Type: Bug Priority: Blocker
Reporter: Fabrizio Giustina Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

text formatting is not preserved during activation and this totally breaks several templates.

For example the content of a form select template (where each entry of the select is separated on a newline) it totally garbled on a public server (all the entries on the first option).

Even worste, for rich text newlines are converted to <br> tags, generating totally invalid html! For example:
<a href="test">test</a>
could became:
<a
href="test">test</a>

which is rendered as:
<a<br> href="test">test</a>

... and displayed on the page as an underlined:
href="test">test



 Comments   
Comment by Fabrizio Giustina [ 08/Jul/06 ]

SHOULD be fixed, unit tests have also been added.
I'll test it for a while, this and the fckeditor absolute links bug (with rc2 you can't use absolute/external links if the instance is mapped to the root context) may worth a rc3 IMHO.

Comment by Simon Goodchild [ 21/Jun/07 ]

Although this issues is flagged as being fixed, I'm still seeing the exact same behaviour in 3.0.2, where the content of a form select paragraph is garbled once activated. Checking in the JCR-browser shows that all newlines have been removed in the values node on the public instance.

Can anyone confirm if they have activation of form select paragraphs working in 3.0.2?

Simon

Generated at Mon Feb 12 03:22:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.