0

I'm writing a program to retrieve the bug report for a specified bug ID, I already have the bugID all I need is to know to which link should I query in order to get the report for that bug which would be I think in JSON. For example: EclipseBugzilla-link.com?bugID=1234 something like the aforementioned url. Thanks in advance.

Ehsan
  • 4,334
  • 7
  • 39
  • 59

1 Answers1

0

You can use bugzilla's XMLRPC mechanism to get an information about a specific bug id. It is fairly easy to use that mechanism. However, the output is, of course, XML.

There are quite a lot of XMLRPC libraries for nearly every popular programming languages. You may want to look at your favorite programming language's XMLRPC libraries. For python, there is bugzilla tools that supports editing, removing, adding, commenting, and getting bug information.

Eren T.
  • 320
  • 2
  • 8
  • I have previously used JIRA for getting bug reports for apache project that seems really easy. For example, with this url https://issues.apache.org/jira/rest/api/latest/issue/BUGID you can get the bug reports isn't there such a URL for bugzilla? – Ehsan Dec 15 '12 at 23:14
  • There is an url for bugzilla, it's `xmlrpc.cgi`, and it's an `XMLRPC` service. You cannot use it by simply visiting an URL. When requesting something from a server, you need to send your query in XMLRPC format. The server will also respond in that format. Please look at wiki for more information: https://en.wikipedia.org/wiki/XML-RPC Typically, you will not need to learn data types written in wikipedia. Your XMLRPC library will handle all the low-level stuff and you will be able to get bug information easily. Which programming language do you use? – Eren T. Dec 15 '12 at 23:28
  • Please look at: http://stackoverflow.com/questions/630095/is-there-a-java-api-to-access-bugzilla – Eren T. Dec 15 '12 at 23:33
  • Ok now I'm using the API can you help me with the URL of bugzilla for eclipse? – Ehsan Dec 16 '12 at 01:09
  • I have given the tool in python in the answer. If we are talking about Eclipse project's bugzilla, it is http://bugs.eclipse.org/bugs/xmlrpc.cgi. However, I get internal server error when I try to use its service. It's related with eclipse bugzilla. – Eren T. Dec 16 '12 at 10:50
  • Could you please check the answer if you find it useful? :) – Eren T. Dec 16 '12 at 19:20