Closed
Bug 390756
Opened 17 years ago
Closed 17 years ago
Bugzilla turns unusable after adding another language
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: Wurblzap, Assigned: mkanat)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.34 KB,
patch
|
LpSolit
:
review+
Wurblzap
:
review+
|
Details | Diff | Splinter Review |
This is a regression of bug 374331.
After installing a second language and making Bugzilla aware of it by setting its language param, Bugzilla crashes on every page. This is because Bugzilla/Template/Plugin/Hook.pm calls Bugzilla::Template::sortAcceptLanguage, which was removed by bug 374331.
Steps to reproduce:
1. mkdir template/xx/
2. mkdir template/xx/custom/
3. Set language param to "en,xx"
Comment 1•17 years ago
|
||
This is a regression and makes our localization work useless if Bugzilla is unable to handle other languages correctly.
Flags: blocking3.1.1+
Assignee | ||
Comment 2•17 years ago
|
||
This would seem to be the smallest fix possible.
Bug 365378 is probably the broader fix.
Reporter | ||
Comment 3•17 years ago
|
||
Comment on attachment 275112 [details] [diff] [review]
v1
(In reply to comment #2)
> This would seem to be the smallest fix possible.
Indeed. I think the re-working you mention in your code comment should be part of 3.2. Can you please file a bug for this?
> Bug 365378 is probably the broader fix.
No, bug 365378 is in fact being blocked by this bug here. (I came accross this bug here while working on bug 365378.)
With your patch, I'm being told "Not a GLOB reference at
[My Perl]/site/lib/Template/Provider.pm line 646" after having added a second language code to the language param. I have Template-Toolkit version 2.18.
Attachment #275112 -
Flags: review?(wurblzap) → review-
Comment 4•17 years ago
|
||
Any progress on this bug?
Assignee | ||
Comment 5•17 years ago
|
||
Comment on attachment 275112 [details] [diff] [review]
v1
I can't reproduce that problem, following the exact steps in comment 0, with Template-Toolkit 2.15 or 2.19, when this patch is applied.
Attachment #275112 -
Flags: review- → review?(wurblzap)
Comment 6•17 years ago
|
||
Comment on attachment 275112 [details] [diff] [review]
v1
This patch fixes the missing routines error message, so r=LpSolit. Now, even with this patch applied, I get the error described in comment 3. But that's another (old) bug, see bug 335354. Bugzilla 3.0.1 is affected by bug 335354 as well; I tested right now. Oh, and running checksetup.pl while everything is broken won't help due to bug 360626.
One word to summarize all this: broken!
Attachment #275112 -
Flags: review?(wurblzap) → review+
Comment 7•17 years ago
|
||
Let's check in this patch; it will unhide bug 335354 and bug 360626.
Flags: approval+
Reporter | ||
Comment 8•17 years ago
|
||
Comment on attachment 275112 [details] [diff] [review]
v1
Ok, I can see that.
Attachment #275112 -
Flags: review+
Assignee | ||
Comment 9•17 years ago
|
||
Checking in Bugzilla/Template/Plugin/Hook.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template/Plugin/Hook.pm,v <-- Hook.pm
new revision: 1.8; previous revision: 1.7
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•17 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•