Issue Details (XML | Word | Printable)

Key: MCHANGES-89
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dennis Lundberg
Reporter: Jim Utter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Changes Plugin

AbstractJiraDownloader throws an exception when jira returns a circular redirect

Created: 21/Dec/07 02:07 PM   Updated: 08/Jan/08 04:42 PM   Resolved: 08/Jan/08 04:42 PM
Component/s: jira-report
Affects Version/s: 2.0-beta-3
Fix Version/s: 2.0

Time Tracking:
Not Specified

File Attachments: 1. Java Source File AbstractJiraDownloader.java (21 kB)



 Description  « Hide

The AbstractJiraDownloader class throws an exception when jira returns a circular redirect due to the default behavior of apache httpclient. Basically, a circular redirect is a redirect to relative path like "../new path" and the default behavior of the httpclient is to refuse these redirects and throw an exception. Unfortunately, we are getting these redirects from our 3.11 version of jira. This behavior can be easily allowed by changing this:

HttpClient client = new HttpClient();

HttpState state = new HttpState();

to this:
HttpClient client = new HttpClient();
HttpClientParams clientParams = client.getParams();
clientParams.setBooleanParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true);

HttpState state = new HttpState();

I have attached an updated java file.
Thanks!



Dennis Lundberg added a comment - 08/Jan/08 04:42 PM

I have applied the changes. Thanks for the suggestion.