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

Bug 132291

Summary: support Red Hat Bugzilla, possibly via XMLRPC connector
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mcepl, mik.kersten, overholt
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://sourceware.org/eclipse/bugzilla/
Whiteboard:
Attachments:
Description Flags
Output from https://bugzilla.redhat.com/show_bug.cgi?id=452713
none
Output from https://bugs.eclipse.org/bugs/show_bug.cgi?id=225543 none

Description Eugene Kuleshov CLA 2006-03-17 00:21:51 EST
Looks like Red Hat bugzilla currently supporting XMLRPC. See some comments at http://sourceware.org/eclipse/bugzilla/

BTW, their eclipse plugi for bugzilla now maintained by new person.
Comment 1 Mik Kersten CLA 2006-03-17 10:47:56 EST
Interesting--if they extended Bugzilla to do this I hope they contribute that back.

I recall seeing someone else had taken over the plug-in... do you have a web link you can point me at? 
We should probably touch base with them.
Comment 2 Eugene Kuleshov CLA 2006-03-17 10:54:23 EST
All I have is that reference...
Comment 3 Robert Elves CLA 2006-04-12 18:55:42 EDT
To be considered while completing bug# 136219. 
Comment 4 Robert Elves CLA 2006-05-15 19:07:22 EDT
Fixed. Eugene, this appears to be fixed with the latest dev build (which includes the xml/rdf conversion). Please let me know if you find any problems with bug submission and we'll re-open.
Comment 5 Andrew Overholt CLA 2008-06-24 12:19:42 EDT
I've been holding off implementing a custom connector for Red Hat bugzilla because they're apparently moving to a stock upstream 3.0 release "soon".  However, this is taking longer than I expected, so I'd like to take a stab at this.

The first issue I'm seeing is that RHBZ puts the bug description as a comment.  Adding subsequent comments returns a mid-air collision.  I'm going to investigate but any pointers to documentation, etc. would be greatly appreciated.
Comment 6 Mik Kersten CLA 2008-06-24 15:46:44 EDT
Andrew: at this point you're probably best off looking to the Bugzilla connector code rather than documentation, because you're in the land of connector internals.  We would be happy to support the mode where the bug description is a comment because we have been considering a mode where bug descriptions become an editable field.  So we would be happy to take a patch that makes the current Bugzilla connector handle the RHBZ comment/description scenario.
Comment 7 Andrew Overholt CLA 2008-06-24 17:18:21 EDT
Created attachment 105758 [details]
Output from https://bugzilla.redhat.com/show_bug.cgi?id=452713

If I add the following line in SaxMultiBugReportContentHandler.endElement:

System.out.println(localName + " - " + parsedText);

I get output that looks different for a simple bug (no comments) from Red Hat bugzilla and bugs.eclipseorg.  I'll attach the output from Red Hat bugzilla first and eclipse.org second.
Comment 8 Andrew Overholt CLA 2008-06-24 17:18:49 EDT
Created attachment 105759 [details]
Output from https://bugs.eclipse.org/bugs/show_bug.cgi?id=225543
Comment 9 Matěj Cepl CLA 2008-06-24 18:03:30 EDT
(In reply to comment #5)
> I've been holding off implementing a custom connector for Red Hat bugzilla
> because they're apparently moving to a stock upstream 3.0 release "soon". 
> However, this is taking longer than I expected, so I'd like to take a stab at
> this.

I believe that this the soon is really soon (in a month or so). See the URL I posted to the RH bugzilla.
Comment 10 Robert Elves CLA 2008-06-24 18:08:56 EDT
(In reply to comment #5)
> I've been holding off implementing a custom connector for Red Hat bugzilla
> because they're apparently moving to a stock upstream 3.0 release "soon".
> However, this is taking longer than I expected, so I'd like to take a stab at
> this.
> 
> The first issue I'm seeing is that RHBZ puts the bug description as a comment.
> Adding subsequent comments returns a mid-air collision.  I'm going to
> investigate but any pointers to documentation, etc. would be greatly
> appreciated.

Andrew, this error can occur if longdesclength isn't set when submitting (it needs to be set to the number of comments + 1 for description).
Eclipse.org also includes the description as comment#0 in the xml.
Comment 11 Matěj Cepl CLA 2009-06-02 07:43:45 EDT
With soon-to-be released Fedora 11 connection to bugzilla.redhat.com more or less works with some remaining bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=501119
https://bugzilla.redhat.com/show_bug.cgi?id=484469

I am not sure whether it is better to wait with this bug until those bugs are resolved.
Comment 12 Andrew Overholt CLA 2009-06-02 08:31:57 EDT
(In reply to comment #11)
> With soon-to-be released Fedora 11 connection to bugzilla.redhat.com more or
> less works with some remaining bugs:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=501119
> https://bugzilla.redhat.com/show_bug.cgi?id=484469
> 
> I am not sure whether it is better to wait with this bug until those bugs are
> resolved.

Let's close this and work on the specific bugs.