| Summary: | [mac] Task editor incorrectly detects platform on Mac | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Dmitry Stadnik <dimzzy> | ||||||||
| Component: | Mylyn | Assignee: | Frank Becker <eclipse> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P4 | CC: | eclipse, leo.dos.santos | ||||||||
| Version: | unspecified | Keywords: | helpwanted | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Dmitry Stadnik
Are you on Intel Mac? Yes, MB Pro. That IS a PC. :-) I got it ))) Hey, I was just kidding. :-) If you get different defaults trough the web UI, it still could be an issue in Mylar. Also, remembering the last selection may make sense too... Reopening, per comment#5. Since we don't currently have a Mac box to test on, I'm marking this helpwanted. If anyone is interested in contributing a fix, please refer to BugzillaProductPage and NewBugWizardTest.testPlatformOptoins(). Attaching context... Created attachment 57119 [details]
mylar/context/zip
I debug this and found a fix.
Change BugzillaProductPage line 150
java2buzillaOSMap.put("macosx", "MacOS X");
to
java2buzillaOSMap.put("macosx", "Mac OS");
this makes that the if in line 446 (setPlatformOptions)
if (opSysAttribute != null && opSysAttribute.getOptionParameter(bugzillaOS) == null)
is eval to false so the variable bugzillaOS has value "Mac OS" and not null.
This change NewBugWizardTest from failure to Run.
Created attachment 66222 [details]
Patch created on MacBook Pro
insert this lines alfter line 470 in /BugzillaProductPage.java
if (bugzillaPlatform!= null && bugzillaPlatform.compareTo("PC")== 0 && OS.compareTo("macosx")== 0)
bugzillaPlatform = "Macintosh";
Frank: in your patch I only see the change to default to "Macintosh" if the platform is not determined, and I didn't see the addition map addition that you suggest in comment#8. Before we apply the patch could you comment on that, since we want to make sure that the platform does not default to Mac if it can not be determined. Created attachment 66483 [details]
Patch Intel Mac's running Mac OS X
I change the Patch so it only change the Platform if bugzillaPlatform = "PC" and bugzillaOS = "Mac OS"
On Mac's with PPC Architecture I thing we get Power instead of Macintosh but because I do nat have a Power Mac any more i can not test this.
Excellent, patch applied. |