jboss-set / aphrodite

A java api for retrieving and updating SET issues from multiple issue trackers.
4 stars 26 forks source link

Aphrodite fails to initilize when not all tracker types are defined. #254

Closed baranowb closed 2 years ago

baranowb commented 2 years ago

If there is only one tracker defined, ie JIRA, BZ tracker will fail to init and it will end up in: https://github.com/jboss-set/aphrodite/blob/master/common/src/main/java/org/jboss/set/aphrodite/Aphrodite.java#L180 However URL is not set, so it will blow up on AbstrackIssueTracker.convertToTrackerID.

Furthermore flag Aphrodite.failed should be used tad differently it seems. Because if BZ failed to init, it does not mean JIRA wont( and in this case BZ isnt even defined). It has to be more fine grained failure handling.