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

Bug 237336

Summary: Getting Bug Activity does not work for all sites
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, shawn.minto
Version: 2.3Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Marple CLA 2008-06-16 15:08:15 EDT
The implementation for parsing the history of a bug is not generic enough to work for all bugzilla sites.

In BugzillaTaskHistoryParser, in the method retrieveHistory, there is code which locates the table containing the list of changes:
if (token.getType() == Token.TAG) {
     HtmlTag tag = (HtmlTag) token.getValue();
     // Skip till find <br> - "there can be only one"
     if (tag.getTagType() == HtmlTag.Type.BR && !tag.isEndTag()) {
     
There is not always one <BR>, if any, present.  A generic implementation would be to replace that if statement with the following.

if (tag.getTagType() == HtmlTag.Type.TABLE && !tag.isEndTag()) {

(A good website to test this is http://buni.org/bugzilla)
Comment 1 Steffen Pingel CLA 2008-06-16 18:00:13 EDT
*** Bug 237352 has been marked as a duplicate of this bug. ***
Comment 2 Steffen Pingel CLA 2011-09-27 18:34:11 EDT
Stale. The referenced code has been removed.