B4J – Bugzilla for Java

This is Bugzilla for Java (B4J) – a Java based tool for accessing Bugzilla instances. B4J offers you to write your own reports based on those bug records that you want to incorporate.

New: Version 2.0 is out. It breaks previous API and introduces types for many properties. It also offers an XML-RPC Bugzilla session now.

Features:

  • platform-independent code
  • access to Bugzilla and Jira instances on remote servers via HTTP and HTTP proxies
  • password callbacks for maximum security
  • standard report interface
  • Open Source code based on LGPL license

More documentation is available here:

Maven Coordinates

<dependency>
  <groupId>eu.ralph-schuster</groupId>
  <artifactId>b4j</artifactId>
  <version>2.0.1</version>
</dependency>

Downloads

You can download the library from maven.org or as a stand-alone distribution archive. The latest stable version is 2.0.1. Sources are available through maven.org or can be browsed in SVN.

Previous versions:

Support

Report a bug or request an enhancement…

11 Responses to “B4J – Bugzilla for Java”

  1. Ralph’s TechBlog » Blog Archive » Bugzilla for Java V1.1 released Says:

    [...] B4J project has now been migrated to Maven build and deployment. You can download the new version [...]

  2. Ralph’s TechBlog » Blog Archive » Bugzilla for Java V1.2 released Says:

    [...] of the B4J project has been released. It contains two major bugfixes related to Java 6 and Bugzilla 4.2 [...]

  3. Ralph’s TechBlog » Blog Archive » Bugzilla for Java V1.3 released Says:

    [...] of the B4J project has been released. It contains two major bugfixes related timestamp parsing and attachments. It [...]

  4. Ralph’s TechBlog » Blog Archive » Bugzilla for Java 1.4.0 released Says:

    [...] of the B4J project has been released. It contains several bugfixes and migrates Issue Management to [...]

  5. Deepak Says:

    Dear Mr. Schuster,

    I recently used your B4J library for one of my projects and I was pretty impressed with it. Thanks for all the hard work you have put in and really appreciate your efforts.

    However, I had a small issue while accessing Bugzilla from Linux Kernel (kernel.bugzilla.org). The parser would fail often because of invalid UTF-8 character present in the Bug’s XML . I made a small code change to your code and more specifically HttpBugzillaSession class to first clean the XML and then parse it. I have put the changes here : http://pastebin.com/KFvmX1VJ

    The changes I made is to just strip the XML of all the invalid characters before parsing. Since the bug’s XML is pretty small this can be achieved without much loss of performance. I hope this helps you.

    Thanks and Kind Regards,
    Deepak

  6. Ralph Says:

    Hi Deepak!

    thanks for the improvement. I will integrate it with 1.5.0 version. You can follow its progress here: http://jira.ralph-schuster.eu/browse/BFJ-19

    Regards

    Ralph

  7. Ralph’s TechBlog » Blog Archive » Multiple Releases Says:

    […] Bugzilla for Java made a major release jump to V2.0.0. The new version introduces a Java API to the REST interface of latest Bugzilla versions, re-structured the Issue interface by introducing component classes for nearly all associated objects (versions, components, users, priorities, resolutions, etc.) and brought back the JIRA session. A complete list of changes is available here. […]

  8. Dude Says:

    Hi,

    I recently looked up this tool and it’s really cool, is it able to search for bugs in date ranges?

    greets

  9. Ralph Schuster Says:

    Hello Dude,

    yes. B4J uses the HTTP parameters. So you can configure:

    <search>
    <query_format>advanced</query_format>
    <f1>creation_ts</f1>
    <o1>greaterthan</o1>
    <v1>1980-01-01</v1>
    <f2>creation_ts</f2>
    <o2>lessthan</o2>
    <v2>2014-01-01</v2>
    </search>

    This works at least for the BugzillaHttpSession. The BugzillaRpcSession shall be tested for it.

  10. Ralph’s TechBlog » Blog Archive » B4J V2.0.1 releaseed Says:

    […] can download the new version here or visit the Homepage of the utility where you will find more […]

  11. Ralph’s TechBlog » Blog Archive » Bugzilla 5 brings REST API Says:

    […] at their documentation. Once Bugzilla 5 is out, I will try to incorporate the new features into B4J. […]

Leave a Reply