NEW 22155
REGRESSION (r38261): "Created an attachment" links for non-patches link to "Review Patch" page, but should not
https://bugs.webkit.org/show_bug.cgi?id=22155
Summary REGRESSION (r38261): "Created an attachment" links for non-patches link to "R...
Adam Roben (:aroben)
Reported 2008-11-10 07:52:00 PST
To reproduce: 1. Go to https://bugs.webkit.org/show_bug.cgi?id=3235#c2 Note that the link in that comment now reads: > Created an attachment (id=5331) [review] The text "[review]" links to the "Review Patch" page for this attachment. But the attachment is a test case, not a patch, so we should not be linking to "Review Patch" for it at all. We could probably just omit the "[review]" text entirely in this case.
Attachments
Adam Roben (:aroben)
Comment 1 2008-11-10 07:52:33 PST
Well, Bugzilla's "smart" formatting screwed up the quoted part of my previous comment, but you get the point.
Darin Adler
Comment 2 2008-11-10 08:09:44 PST
This won't be easy to fix. The level of code dealing with the attachment has only the attachment number and has no way to figure out if the attachment is a patch or not. It's formatting a description and not doing database access.
Adam Roben (:aroben)
Comment 3 2008-11-10 08:21:03 PST
(In reply to comment #2) > This won't be easy to fix. The level of code dealing with the attachment has > only the attachment number and has no way to figure out if the attachment is a > patch or not. It's formatting a description and not doing database access. It looks to me like GetAttachmentLink does in fact do database access: https://trac.webkit.org/browser/trunk/BugsSite/globals.pl?rev=38261#L866
Darin Adler
Comment 4 2008-11-10 08:22:38 PST
OK, then maybe it will be easy!
Note You need to log in before you can comment on or make changes to this bug.