Closed Bug 2178 Opened 26 years ago Closed 24 years ago

bugs count charts are not displayed for products with spaces in the name

Categories

(Bugzilla :: Bugzilla-General, defect, P1)

Tracking

()

VERIFIED FIXED
Bugzilla old

People

(Reporter: jay, Assigned: donm)

References

Details

Attachments

(1 file)

bugzilla will not display a bug chart for any products with spaces in the name.
this is because of: <img src="data/mining/name with spaces.gif"> in the
report.cgi generated html.

a simple fix is to insert this after line 468 in report.cgi:

        $image =~ s/ /%20/g;
Status: NEW → ASSIGNED
Reassigning to dmose@mozilla.org, who now has front-line responsibility for
all Bonsai and Bugzilla bugs.
Reassigning back to me.  That stuff about me no longer being the front-line
person responsible for Bugzilla and Bonsai turned out to be short-lived.
Please pardon our confusion, and I'm very sorry about the spam.
Another way to patch it would be to use url_quote; this may handle additional
characters other than space that need to be escaped (though the only issue at
our site, as with the reporter, is spaces in the name).  Here is the patch I
made at our site (diff -u):

        $img->gif (*IMAGE, \@data);
        close IMAGE;

+        ### randall 2000-01-04  n.b. url-quote affects slash as well as space.
+        $imageUrl = $dir . "/" . url_quote($file) . ".gif";
        print <<FIN;
-<img src="$image">
+<img src="$imageUrl">
 <br clear=left>
 <br>
 FIN
Error in previous addition to comments; the second added line should be:
+        my $imageUrl = $dir . "/" . url_quote($prodname) . ".gif";

Apologies for the double comment (diff'ed the wrong revision first time).
Status: NEW → ASSIGNED
Priority: P4 → P2
I just ran into this on my site, too.  I just cvs updated again this morning. :)  
This looks pretty obvious, any reason it hasn't been checked in yet?
Because I'm a loser?

Upping priority to P1, which is where I will hopefully first look for things to
do when I actually have a few cycles to spend on Bugzilla stuff.
Priority: P2 → P1
tara@tequilarista.org is the new owner of Bugzilla and Bonsai.  (For details,
see my posting in netscape.public.mozilla.webtools,
news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
Status: ASSIGNED → NEW
Don--looks like this is already has a patch.  Be the patch, Luke.
Assignee: tara → donm
*** Bug 36678 has been marked as a duplicate of this bug. ***
I'm reviewing the patch now.
Status: NEW → ASSIGNED
ok, checked in.  closing bug.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Looks good!  Marking Verified.
Status: RESOLVED → VERIFIED
*** Bug 36678 has been marked as a duplicate of this bug. ***
Moving to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
QA Contact: matty
Target Milestone: --- → Bugzilla old
Version: other → unspecified
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: