Multiline summaries break bug's +edit form

Bug #53618 reported by Stuart Bishop
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

Bug 39877 has a multiline summary, possibly entering via the email
interface. This breaks the 'edit bug description form' as the single line
summary field makes hides this problem, yet the validator will not accept
the existing value. The validator also just returns the generic 'constraint
not satisfied' error message.

We can either fix this by enforcing a database constraint on this and all
other single line fields ensuring that the data contains no newlines, or by
updating the field to cope with invalid existing data (eg. by normalizing
whitespace).

 affects /products/malone
 status confirmed

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Diogo Matsubara (matsubara) wrote :

One possible way to solve this is using the NewLineToSpaceWidget used on search fields.

Changed in malone:
importance: Untriaged → Low
Revision history for this message
Bryce Harrington (bryce) wrote :

Is this still a problem? I was able to load +edit and click save (without any modification), and it converted the \n into a space fine. I didn't see any error messages, so perhaps this got fixed at some point in recent years?

Changed in malone:
status: Triaged → Incomplete
Curtis Hovey (sinzui)
Changed in malone:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.