Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mmmarq opened this issue Sep 9, 2016 · 1 comment
Open

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

mmmarq opened this issue Sep 9, 2016 · 1 comment

Comments

@mmmarq
Copy link

mmmarq commented Sep 9, 2016

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

@iarriola
Copy link

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants