Closed
Bug 758407
Opened 14 years ago
Closed 14 years ago
depends on bug changed state shows real subject for security bugs
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mccr8, Assigned: glob)
References
Details
Attachments
(1 file)
|
777 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
I see this occasionally.
Do not reply to this email. You can add comments to this bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=349611
Bug 349611 depends on bug 758398, which changed state.
Bug 758398 Summary: [[actual summary was included here]]
https://bugzilla.mozilla.org/show_bug.cgi?id=758398
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
bug 349611 is not a secure bug, bug 758398 is.
the summary should be displayed if you have access to that bug.
are you reporting that the email wasn't encrypted?
| Reporter | ||
Comment 2•14 years ago
|
||
I don't have an encryption key set up, so that came through in plain text. When somebody adds a secure bug as a dependency, I think it just says [Secure Bug] or something for the summary, but when the dependency is closed, it gives the summary. So at least that is inconsistent. Maybe that is intentional.
i think the best thing to do here is to add the following x-headers to bugmail:
X-Bugzilla-ID:
X-Bugzilla-Referenced-IDs:
the securemail ext can use the list of referenced ids to determine if the mail should be sent encrypted.
Comment 4•14 years ago
|
||
Or even one header, where the first number is the bug's ID, and any subsequent ones are referenced?
This would allow us to remove the hack where we extract the bug number from the subject.
Gerv
(In reply to Gervase Markham [:gerv] from comment #4)
> Or even one header, where the first number is the bug's ID, and any
> subsequent ones are referenced?
i think it would be clearer to have separate headers. should be able to push the x-bugzilla-id header upstream.
> This would allow us to remove the hack where we extract the bug number from
> the subject.
indeed, although we'll still have to have the subject kludge in as a fall-back.
ah, we can do this easier if we make the dependency change a referenced bug, and let the existing bugmail_referenced_bugs hook deal with sanitisation.
Assignee: nobody → glob
Status: NEW → ASSIGNED
Component: Extensions: SecureMail → General
QA Contact: securemail → general
here we go.
this slightly changes the output of bugmail, but i think it's for the better as it'll now be consistent.
the bug summary is still being selected with the query but is now unused; i left it in to minimise the diff from upstream.
Attachment #627879 -
Flags: review?(dkl)
Comment 8•14 years ago
|
||
Comment on attachment 627879 [details] [diff] [review]
patch v1
Review of attachment 627879 [details] [diff] [review]:
-----------------------------------------------------------------
r=dkl
::: Bugzilla/BugMail.pm
@@ -264,4 @@
> $lastbug = $depbug;
> $thisdiff =
> "\nBug $id depends on bug $depbug, which changed state.\n\n" .
> - "Bug $depbug Summary: $summary\n" .
If summary is no longer needed, we can remove it from the SQL and get rid of $summary altogether. Technically doesn't hurt to leave it in but since we are already making changes to core code, it does make the code cleaner. Can fix on checkin if you agree.
Attachment #627879 -
Flags: review?(dkl) → review+
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.0/
modified Bugzilla/BugMail.pm
Committed revision 8198.
You need to log in
before you can comment on or make changes to this bug.
Description
•