Closed Bug 22041 Opened 25 years ago Closed 23 years ago

Bug page TITLE should include bug summary

Categories

(Bugzilla :: Bugzilla-General, enhancement, P3)

enhancement

Tracking

()

VERIFIED FIXED
Bugzilla 2.12

People

(Reporter: jelwell, Assigned: justdave)

References

Details

(Whiteboard: 2.12)

Attachments

(2 files)

When I bookmark a bug, all I get is the bug number. It would be useful if the
title could be the summary or possibly a new field that is editable.
Assignee: terry → endico
I think this would be a good idea too. assigning to myself but this won't happen
till after the new year since we want to leave our servers unchanged so they'll
be as stable as possible over the holiday.
This was originally filed as bug #7692 which was marked a dupe of bug #3078.  I
don't think it's a dupe any longer though, this seemed to slip through the
cracks.

Anyway, adding cc of those who might be interested/have other opinions.
*** Bug 7692 has been marked as a duplicate of this bug. ***
this would certainly make build verification easier, hopefully translating into 
opening the tree slightly faster. and every little bit helps...
I noticed that bugzilla has had at least one serious face lift since the new 
year - and still no status on this bug. Any news from endico?
I thought this would be an utterly trivial change but its not
which is why i havne't gotten to it yet.
Status: NEW → ASSIGNED
I'm assuming that the reason it's non-trivial is that show_bug.cgi displays a 
bunch of html code, including the page title, before calling bug_form.pl to 
output the form and comments.  As a workaround, I suggest hacking bug_form.pl 
so that when it is called from show_bug.cgi, it outputs the following html 
along with the form and comments:

<script language="javascript">document.title = "Bugzilla bug 00000 - 
Summary";</script>

(More assumptions: you don't usually try to bookmark bugs until they're done 
loading, and you have javascript enabled.)
I think the hard part is that bug_form.pl is also called by process_bug.cgi.
there has to be some really simple hack to get around that, like setting a 
variable in show_bug.cgi to tell bug_form.pl what called it.  it might be good 
for all cgi files that call bug_form.pl to do something similar.

disc: i don't program in perl (yet).
The problem is that the header gets printed before data is read from
the bug so fixing this would require big changes.
I suggested a hack that would get around that...
Yes, but if bug_form.pl wasn't called in both places, you could move the header
into bug_form.pl.  So it's kind of a combination of the two.

It looks like the right thing to do is to try and read the data early and pass
it into bug_form.pl.  Is this possible?
possible, but not without some non-trivial amount of rewriting the information 
passing between form an .pl script.
Hardware: PC → All
Summary: Useful Titles for Bugs. → Bug page TITLE should include bug summary
I made a fix for this really old bug, without any of the (more or less
dirty) hacks suggested above.

The change is only in show_bug.cgi, so process_bug.cgi is totally
unaffected. All I'm doing now is ask the database for the summary and then
display it (if there is a summary).

Okay, that's one more database query, and bug_form.pl fetches the summary
with all the other information later anyway, but from what I've seen there
are already other places where the DB is queried more than once for the
same information, and I think it's worth to live with this quick extra
query to get this often requested feature. (See the number of votes here.)

Nominating for 2.12. I have tested it on my local installation and it works
fine. Dave, could you please check this in?

Besides, the <title> is now "Bug 22041 - Bug page TITLE should include bug
summary" instead of "Bugzilla bug 22041", so I also left out the word
Bugzilla. I think we all know what bug system we're using, and as some
summaries tend to be quite long, I think it's better to have some extra
space for that in the window title or in the task bar.
Keywords: patch, review
Whiteboard: 2.12
Attached patch proposed patchSplinter Review
r=dave@intrec.com
Assignee: endico → dave
Status: ASSIGNED → NEW
Painless fix.  Works as advertised.  No noticible performance loss.  checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 68663 has been marked as a duplicate of this bug. ***
Sorry for the spam, but I needed to be able to query for all of these correctly.
Target Milestone: --- → Bugzilla 2.12
"show_bug.cgi" line 53

PutHeader("Bug $::FORM{'id'} - $summary", "Bugzilla Bug $::FORM{'id'}", $summary );

this line has a problem. The contents of $summary should first quote html
meta-characters.

I have a bug with a subject containing a select tag and a little dropdown
box is displayed instead of the subject.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Dawn mentioned this was happening in show_bug.cgi and duplicates.cgi... so this
patch adds the line "$summary = html_quote($summary);" to both of them.
checked in jake's patch. marking fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
VERIFIED - this works.

Gerv
Status: RESOLVED → VERIFIED
Reopening...  this displays the summary of bugs you aren't allowed to see, even 
though it says "Permission denied" on the page.  For an example, if you don't 
have netscape-confidential privs, see bug 17494.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Dave, that would be a new bug.  This bug is about "Bug page TITLE should
include bug summary", which is fixed now and works.

Marking fixed again.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
no, it doesn't work because it shows the summary of bugs to people
who don't have the permission to see them. reopening

the secret summary is displayed both in the <TITLE> and in the
page header.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
A quick fix for this would be to omit summary for bugs whose groupset is
anything but zero. that would let us release quickly without adding a
security hole and the real fix (checking the user's permissions) could be
implemented later if its too much of a pain to implement now.
Bug 30694 patches both this and the tooltip security hole w/the quick fix we
talked about in IRC.  It essentially disables this feature for any bug that's
marked as confidential.
Dawn checked in the "quick fix".  See bug 71767 for the proper fix.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Verified present on bugzilla.mozilla.org.
Status: RESOLVED → VERIFIED
Is this supposed to be fixed in 2.12?  I am not seeing this functionality in our
installation of 2.12.
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
QA Contact: matty
Version: other → unspecified
Moving closed bugs to Bugzilla product
Which BugZilla version included this feature first ?
Roland: 2.12.  (see the target milestone field - we set that to the current
milestone when the bug is resolved)
*** Bug 199650 has been marked as a duplicate of this bug. ***
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: