Opened 16 years ago
Last modified 15 years ago
#2482 closed defect
updating description causes conversion of line endings — at Initial Version
Reported by: | Steffen Pingel | Owned by: | Alec Thomas |
---|---|---|---|
Priority: | highest | Component: | XmlRpcPlugin |
Severity: | major | Keywords: | |
Cc: | osimons | Trac Release: | 0.10 |
Description
When a Trac ticket with an editable description that was previously edited in the web-interface is updated through Mylyn the description changes. This can be seen on ticket #2462 comment 3 for instance.
Line endings submitted through the web are encoded as \r\n. It appears that this is also the format that is stored in the Trac database. When strings are received through XML all line endings are normalized to \n. That means when a description is received by the XmlRpcPlugin all line breaks are encoded as \n. The next time the ticket is updated through the web they are converted back to \r\n.
The corresponding Mylyn bug is here:
213742: submit causes description to change https://bugs.eclipse.org/bugs/show_bug.cgi?id=213742
I'll attach a patch that converts the line endings to \r\n before updating the ticket in the database.
fix