Closed
Bug 559435
Opened 15 years ago
Closed 15 years ago
Include the email of the person who comments and the short summary inside tbpl automatic bug comments
Categories
(Tree Management Graveyard :: TBPL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
2.77 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
Shaver wants our Robot to put the short summary of the failure, and the email of the person starring the orange (or whatever they enter in that textbox) inside the bug comment, and I think it's a useful addition, so I'll write a patch for it.
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #439107 -
Flags: review?(mstange)
Comment 2•15 years ago
|
||
Comment on attachment 439107 [details] [diff] [review]
Patch (v1)
>+ NetUtils.loadText("submitBugzillaComment.php?id=" + id + "&comment=" + escape(email + "\n" + logLink + "\n" + header + "\n\n" + summary),
Really, the whole summary? Let's see how this goes.
>+ var log = [];
>+ for (var child = summaryPlaceholder.firstChild;
>+ child; child = child.nextSibling) {
>+ if (child.nodeType == child.TEXT_NODE) {
>+ var str = child.textContent.trim();
>+ if (str != "") {
>+ log.push(str);
>+ }
>+ }
>+ }
>+ log = log.join("\n");
Let's make this:
var log = $(summaryPlaceholder)
.contents(function () { return this.nodeType == this.TEXT_NODE; })
.map(function () { return this.textContent.trim() || null; })
.get().join("\n");
Attachment #439107 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Let's make this:
> var log = $(summaryPlaceholder)
> .contents(function () { return this.nodeType == this.TEXT_NODE; })
> .map(function () { return this.textContent.trim() || null; })
> .get().join("\n");
Neat trick! Except that contents doesn't take an argument, so I applied filter() to the result of contents before passing it to map.
Assignee | ||
Comment 4•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
(Just now saw one of these new-style tbplrobot comments…)
Since Bugzilla has for some time sanitized (hidden) email addresses from non-logged-in users, there's been a much better chance of not getting spam based on bots harvesting Bugzilla.
However, this change now inserts raw emails into comments, defeating that protection (unless a user manually enters an "obfuscated" email address on tbpl). Is it worth doing a simple translation/obfuscation to restore this protection?
Comment 6•15 years ago
|
||
That same text appears on tinderbox unobfuscated, if that informs our decision here. (The tbox entry isn't forever the way a bug comment is, to be sure.)
Assignee | ||
Comment 7•15 years ago
|
||
I pushed a small tweak to replace "@" with "%" in the email addresses before they go inside comments. Hopefully this will at least force spammers to tweak their scraping tools!
Markus, could you please deploy that patch?
Group: mozilla-confidential
Assignee | ||
Comment 8•15 years ago
|
||
Someone decided that this is now a confidential bug. I don't think so!
Group: mozilla-confidential
Comment 9•15 years ago
|
||
(In reply to comment #7)
> Markus, could you please deploy that patch?
Done.
Updated•11 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•