Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 197948 - [bugzilla] New Task honors defaultopsys but not defaultplatform from bugzilla
Summary: [bugzilla] New Task honors defaultopsys but not defaultplatform from bugzilla
Status: RESOLVED DUPLICATE of bug 159397
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 08:10 EDT by maarten meijer CLA
Modified: 2007-07-29 09:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maarten meijer CLA 2007-07-26 08:10:11 EDT
I mostly do web development, so I have my bugzilla defaults set to defaultplatform=All and defaultopsys=All.

When I create a new Task with the browser, these settings are honored. 
When I create a new Task with Mylyn/Bugzilla client on my Mac the defaultopsys setting is honored, but the Platform is set to Macintosh.

I feel both settings should be honored.
Comment 1 maarten meijer CLA 2007-07-26 09:49:24 EDT
Instead of just reporting I decided to look at the source and see if I can supply a patch for once.
The cause is entirely different. 
First of all:
In the XML returned by /bugzilla/config.cgi?ctype=rdf the default values as set in bugzilla are not provided! That is why Mylyn must make a guess!

Secondly
the standard bugzilla install has as OS descriptor for OSX the string "MacOS X", while the string returned by System.getProperty("os.name") is "Mac OS X".
Also the eclipse Platform.getOS() reports the OS as "macosx". The mismatch of spaces and case prevents a match in the Mylyn logic in BugzillaCorePlugin.setPlatformOptions().
No match occurs and the OS defaults to All as that is an option in the standard bugzilla setup.

The Platform is derived form the eclipse platform string and set to "Macintosh" as a legal bugzilla entry.

The default RepositoryTaskData is apparently created with OS "other" and platform "All", so this is not derived from the bugzilla either (see my above defaults);

I think that auto-filling in Platform and OS must be an Preference option, or better still a project/product option.
Comment 2 maarten meijer CLA 2007-07-27 06:55:31 EDT
Mylyn does its own platform detection, in a way not consistent with Bugzilla. This is also mentioned in bug 159397.

*** This bug has been marked as a duplicate of bug 159397 ***
Comment 3 Eclipse Webmaster CLA 2007-07-29 09:23:30 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991