Closed
Bug 1238987
Opened 10 years ago
Closed 10 years ago
Remove the trailing newline when the quoted text in comments is wrapped
Categories
(Bugzilla :: WebService, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 6.0
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file, 1 obsolete file)
|
382 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
webservice_bug_comments.t and webservice_bug_update.t stopped passing due to changes introduced in bug 688205 that attempts to wrap cited comments. Reason is that even comments added via API that consist of a single line without a newline character, the same comment is returned with a newline character added which no longer matches.
Patch coming to address this.
dkl
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8706960 -
Flags: review?(LpSolit)
Comment 2•10 years ago
|
||
Comment on attachment 8706960 [details] [diff] [review]
1238987_1.patch
Simply call chomp($wrappedcomment) before returning it, see e.g. wrap_comment().
Attachment #8706960 -
Flags: review?(LpSolit) → review-
Updated•10 years ago
|
Depends on: 688205
Summary: Bug 688205 changed the way comment text is returned in API calls breaking several automated tests → Remove the trailing newline when the quoted text in comments is wrapped
Target Milestone: --- → Bugzilla 6.0
Version: unspecified → 5.1
| Assignee | ||
Comment 3•10 years ago
|
||
Ugh. Missed that in the other function. So sorry for over-engineering the issue :)
Attachment #8706960 -
Attachment is obsolete: true
Attachment #8706973 -
Flags: review?(LpSolit)
Comment 4•10 years ago
|
||
Comment on attachment 8706973 [details] [diff] [review]
1238987_2.patch
I didn't test your patch. But if this fixes the problem for you, then this is fine with me. r=LpSolit
Attachment #8706973 -
Flags: review?(LpSolit) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Frédéric Buclin from comment #4)
> Comment on attachment 8706973 [details] [diff] [review]
> 1238987_2.patch
>
> I didn't test your patch. But if this fixes the problem for you, then this
> is fine with me. r=LpSolit
It does fix the problem, yes :)
| Assignee | ||
Comment 6•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
9c29ca8..2db58cf master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•