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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

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.
Attached patch Patch (v1)Splinter Review
Attachment #439107 - Flags: review?(mstange)
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+
(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.
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?
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.)
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
Someone decided that this is now a confidential bug. I don't think so!
Group: mozilla-confidential
(In reply to comment #7) > Markus, could you please deploy that patch? Done.
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: