Bug 735914
Summary: | BZ: newlines in multi-line fields | ||
---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | Tomas Hoger <thoger> |
Component: | WebService | Assignee: | Matt Tyson 🤬 <mtyson> |
Status: | CLOSED UPSTREAM | QA Contact: | tools-bugs <tools-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2 | CC: | mtyson |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: |
new line1
new line2
new line3
|
|
Last Closed: | 2012-11-13 01:39:00 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomas Hoger
2011-09-06 07:03:11 UTC
I've changed Environment using xmlrpc (Bug.update) and now the value is: 'cf_environment' => 'line1 line2 line3', Adding this comment via webui, without touching Environment field. History now tracks I did change Environment: https://bugzilla.redhat.com/show_activity.cgi?id=735914 and the value is: 'cf_environment' => 'line1^M line2^M line3', As part of the recent Bugzilla 2.4 upgrade the Bugzilla team are cleaning up bugs opened against old versions of Bugzilla. This bug has been flagged as an old bug and will be CLOSED WONTFIX in 7 days time. If you believe this bug is an issue in the latest Bugzilla version please comment on this bug within 7 days. Doing so will ensure this bug is not closed automatically. Thanks, the Bugzilla team. As part of the recent Bugzilla 4.2 upgrade the Bugzilla team are cleaning up bugs opened against old versions of Bugzilla. This bug has been flagged as an old bug and will be CLOSED WONTFIX in 7 days time. If you believe this bug is an issue in the latest Bugzilla version please comment on this bug within 7 days. Doing so will ensure this bug is not closed automatically. Thanks, the Bugzilla team. Similar to comment #2, I changed Environment using xmlrpc and adding this comment via webui without touching Environment. It should result in the \n -> \r\n of the field (it did in partner-bugzilla). These bugs have been flagged as still relevant and are being reset to default values for PM consideration. Definitely a problem. Not sure if the best solution is to change the input from RPC, or ignore ^M when considering if a field is changed. I'm going to submit this upstream for their opinion. My preference is for the second option. -- simon (In reply to comment #7) > My preference is for the second option. No, it's actually for the first option now :) I've submitted a patch upstream (review pending) to sanatise the newlines for multi line fields. With the patch \n will get converted to \r\n on input. Web browsers submit data as \r\n so with this change any data coming from XMLRPC with \n newlines will be sanitised to match the browser data. This has been approved upstream, and will be part of our Bugzilla 4.4 release. |