Closed Bug 577561 Opened 9 years ago Closed 8 years ago

Auto detect Firefox and SM version numbers when filing bugs

Categories

(bugzilla.mozilla.org :: User Interface, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: tdowner, Assigned: glob)

References

Details

(Whiteboard: fixed by bug 657317)

When a bug is filed, we auto-detect the hardware and OS used by the reporting computer, however, the version field is left "unspecified". Is it possible for us to autodetect and fill in the version field when a reporter uses firefox or SM to report a bug in the product? While not every reporter uses the product they are reporting a bug against, the majority of them will. This would make it much easier to search for bugs reported against certain versions of bugs, such as when a version reaches EOL.
Assignee: marcia → nobody
Component: Bugzilla: Keywords & Components → Bugzilla: Other b.m.o Issues
QA Contact: timeless → other-bmo-issues
I don't think this should be too difficult to to, talking to several people it seems we already have everything in place to implement this (auto-detecting platform, etc). Could we implement it?
It is possible yes.

reed: could you draft a patch for this?
Severity: normal → enhancement
glob/dkl: Tyler and his team have done a lot of working setting Version correctly:
http://tylerdowner.wordpress.com/2011/05/14/firefox-bug-versions/

This bug makes them have to keep doing that work. Can we ease their pain?

Gerv
(In reply to comment #3)
> This bug makes them have to keep doing that work. Can we ease their pain?

i'll include the ability to do this in the new guided bug form.
Assignee: nobody → glob
Blocks: 657317
Component: Bugzilla: Other b.m.o Issues → User Interface
Product: mozilla.org → bugzilla.mozilla.org
QA Contact: general → ui
Tyler: is that OK, or would you like this on the normal form as well?

glob: in which bug is work going on, on this new guided bug form? I'd be interested in providing input, having written the old one :-)

Gerv
we'll need clear rules for mapping from a useragent to a bugzilla version.
my guess is...

for firefox:

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0a2) Gecko/20110510 Firefox/5.0a2

  ($maj, $min) = $ua =~ /Firefox\/(\d+\.\d+)/
  if ($maj >= 5)
    $version = "$maj Branch"
  else
    $version = "$maj.$min Branch"

for seamonkey:

Mozilla/5.0 (X11; Linux i686; rv:2.2a1pre) Gecko/20110407 SeaMonkey/2.2a1pre

  ($maj, $min) = $ua =~ /SeaMonkey\/(\d+\.\d+)/
  $version = "SeaMonkey $maj.$min Branch"


do they look sane?


if the detected version isn't a valid selection in bugzilla, then the last selected version for that product will be used.  if the last-version cookie doesn't exist, the new-guided form will default to an empty version, forcing the user to select the correct one from a list.
(In reply to comment #5)
> glob: in which bug is work going on, on this new guided bug form? I'd be
> interested in providing input, having written the old one :-)

bug 657317
There have been several changes to the Firefox UA recently to make it simpler. Make sure you are aware of them :-)
http://hacks.mozilla.org/2010/09/final-user-agent-string-for-firefox-4/
https://developer.mozilla.org/en/Gecko_user_agent_string_reference

Gerv
(In reply to comment #5)
>Tyler: is that OK, or would you like this on the normal form as well?
I think the guided form is where it is most needed, however, if it is possible to have it in both forms that would be nice. :)
Fixed by bug 657317
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: fixed by bug 657317
You need to log in before you can comment on or make changes to this bug.