Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 237310

Summary: [sandbox] "What" field in Task history is always blank
Product: z_Archived Reporter: David Marple <d.marple>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P4 CC: janvik, robert.elves, steffen.pingel
Version: 2.3Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

Description David Marple CLA 2008-06-16 13:02:34 EDT
When obtaining the task history of a bug, the "what" field in every task revision is blank.

A very simple fix is as follows:
in BugzillaTaskHistory, in the getData(HtmlStreamTokenizer tokenizer) method, replace:

if (data.startsWith("\n") && (data.contains("Attachment") == false)) {
     data = ""; // empty field
}

by:

data = data.trim();
Comment 1 David Marple CLA 2008-06-16 13:13:43 EDT
(In reply to comment #0)
> When obtaining the task history of a bug, the "what" field in every task
> revision is blank.
> 
> A very simple fix is as follows:
> in BugzillaTaskHistory, in the getData(HtmlStreamTokenizer tokenizer) method,
> replace:
> 
> if (data.startsWith("\n") && (data.contains("Attachment") == false)) {
>      data = ""; // empty field
> }
> 
> by:
> 
> data = data.trim();
> 

Sorry, that's BugzillaTaskHistoryParser.
Comment 2 Steffen Pingel CLA 2009-08-17 02:08:21 EDT
This code is currently not supported since it is not used in Mylyn but we would be happy to accept a patch to fix the problem.
Comment 3 Steffen Pingel CLA 2011-09-27 18:33:40 EDT
Stale. The referenced code has been removed.