Closed Bug 706443 Opened 14 years ago Closed 14 years ago

The New Bug form ignores the defaultplatform and defaultopsys parameters

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: decoder, Assigned: dkl)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

When I create a bug template with an explicit architecture set that differs from the architecture of the machine I'm currently using, then the architecture is set to that of my machine as soon as I use the bookmarked template. Steps to reproduce: 1. Create a bug template with an architecture that is not that of your own machine (e.g. select x86-64 if your machine is x86). 2. Save as bookmark, then visit page. 3. Observe that architecture is set back to that of your own machine (e.g. x86) instead of what the template said. Tested with the bugzilla installation at bugzilla.mozilla.org.
This happens with the 4.3 code only. Bugzilla 4.2 and older are not affected. The fact that bmo is affected means that it backported the culprit code from upstream.
Keywords: regression
OS: Linux → All
Hardware: x86 → All
Summary: Bookmarked bug templates don't restore architecture → The New Bug form ignores the defaultplatform and defaultopsys parameters
Target Milestone: --- → Bugzilla 5.0
Version: unspecified → 4.3
Oh, and I updated the bug summary to reflect the fact that you don't need to bookmark the page to reproduce the issue. The defaultplatform and defaultopsys parameters are ignored, and so are the values stored in the bookmark as well.
This is a regression due to bug 307688. It totally ignores 1) the field values pass to the URL, if any, and 2) the default values set in the parameters.
Depends on: 307688
Patch to fix this problem. dkl
Assignee: create-and-change → dkl
Status: NEW → ASSIGNED
Attachment #577969 - Flags: review?(LpSolit)
Comment on attachment 577969 [details] [diff] [review] Patch to allow setting of op_sys/platform from bookmarked template (v1) This only fixes the "my values passed in the URL are ignored" part of the problem. If they are not defined, then it must first look at the parameters. The detection code must only be called if the parameters are left empty.
Attachment #577969 - Flags: review?(LpSolit) → review-
Sorry bout that. Here is a new patch that takes the default param values into account as well. dkl
Attachment #577969 - Attachment is obsolete: true
Attachment #577999 - Flags: review?(LpSolit)
Comment on attachment 577999 [details] [diff] [review] Patch to allow setting of op_sys/platform from bookmarked template (v2) Great, thanks! r=LpSolit
Attachment #577999 - Flags: review?(LpSolit) → review+
Flags: approval+
trunk: Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified enter_bug.cgi Committed revision 8024. bmo/4.0: Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.0 modified enter_bug.cgi Committed revision 7970. bmo/4.2: Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2 modified enter_bug.cgi Committed revision 7969.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: