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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file, 1 obsolete file)

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
Attached patch 1238987_1.patch (obsolete) — Splinter Review
Attachment #8706960 - Flags: review?(LpSolit)
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-
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
Attached patch 1238987_2.patchSplinter Review
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 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+
(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 :)
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.

Attachment

General

Created:
Updated:
Size: