Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2
-
Fix Version/s: 2.0-beta-3
-
Component/s: jira
-
Labels:None
Description
Private instances of JIRA require authentication. If the changes report queries this server, the server returns a HTML 500 error page, rather than the expected XML content and the changes plugin throws an exception. This case should be handled and a warning printed to the screen (maybe with a hint as to the parameter(s) they need to set) so the site generation can continue.
See http://jira.webifysolutions.com for instance. You can use this URL for one-off testing of this fix.
Mike, I'm a bit confused.
Are you concerned about the case where the issueManagement/url is configured to a private (one that needs username/password) JIRA instance and the developer has forgotten to configure jiraUser/jiraPassword in the plugin configuration? Then we just need a better handling of the response status code 500.
Trying this a bit revealed that the same exception is thrown if jiraUser/jiraPassword is configured but are not valid to login. We need to check the response status code there as well.