Skip to content

Make j2bugzilla able to handle multiple values "alias" field #14

Open

Description

@mmmarq

Since Bugzilla release 5.0, bugs can now have multiple aliases assigned to them. Before each bug could only have a single value. So j2bugzilla crash when try to get alias from a bug;

Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String
at com.j2bugzilla.base.Bug.getAlias(Bug.java:109)

Is it possible to make j2bugzilla handle alias properly?

Thanks

Activity

  1. ivan-arriola commented on Sep 12, 2016

    @ivan-arriola

    @mmmarq It will provably because now returns some type of collection of alias instead, it will be necessary to check the returning type and, apparently doesn't seems to handle similar types, mentioned here: https://github.com/TomRK1089/j2bugzilla/blob/f11efa4497f83e51373e590b0fa525a3408c9aa6/src/main/java/com/j2bugzilla/base/Bug.java#L47, it would be good idea to handle both versions of the api, single and collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions