| Summary: | usage of old CustomTransitionManager breaks task creation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Thomas Ehrnhoefer <thomas.ehrnhoefer> | ||||
| Component: | Mylyn | Assignee: | Charley Wang <charley.wang> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | charley.wang, eclipse, robert.elves, thomas.ehrnhoefer | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 259291 | ||||||
| Attachments: |
|
||||||
|
Description
Thomas Ehrnhoefer
Charley, is that the same as bug 317729: resolve custom initial state for Bugzilla? Created attachment 172866 [details]
Patch for 318128
It looks like an old CustomTransitionManager was saved and reused. The manager is not initialized each time the user clicks 'New Task' (for efficiency).
The attached patch should prevent this from happening again by returning the default start status (NEW) if the start status is null or blank.
One of the is also a failing. Does the patch fix that as well or could you include a fix? http://mylyn.eclipse.org/hudson/job/mylyn--heartbeat--connectors/6/testReport/org.eclipse.mylyn.bugzilla.tests/BugzillaCustomRepositoryTest/testWorkflow_3_6_1_Custom_Workflow_and_Status/ org.eclipse.core.runtime.CoreException: An unknown repository error has occurred: illegal bug status change at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.parseRepositoryResponse(BugzillaClient.java:1769) at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.parsePostResponse(BugzillaClient.java:1610) at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.postTaskData(BugzillaClient.java:1101) at org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture.submitTask(BugzillaFixture.java:276) at org.eclipse.mylyn.bugzilla.tests.BugzillaCustomRepositoryTest.doCustomWorkflow(BugzillaCustomRepositoryTest.java:127) at org.eclipse.mylyn.bugzilla.tests.BugzillaCustomRepositoryTest.testWorkflow(BugzillaCustomRepositoryTest.java:39) (In reply to comment #3) > One of the is also a failing. Does the patch fix that as well or could you > include a fix? The failing transition is from ASSIGNED --> NEW. The transition is expected not expected to succeed and the transition manager should see to it that Mylyn does not attempt to make a broken transition. I will investigate this issue in a separate bug -- bug 318268. Thanks. Frank, I'll let you handle the patch. patch commited! |