Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3113] When setAutoRedirect is false - 302 Redirects should not through an exception in TiHTTPClient.java

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-12-21T21:27:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelshttpclient
ReporterTim Ebenezer
AssigneePaul Dowsett
Created2011-12-10T16:44:18.000+0000
Updated2016-03-08T07:48:10.000+0000

Description

When building for Android with latest version of mobilesdk if you setAutoRedirect to false, it's likely you want to deal with the response. However, in TiHTTPClient.java it throws an HTTPResponseException for any codes above 300, which includes 302 Redirects.

Comments

  1. Paul Dowsett 2011-12-21

    Thank you for raising this ticket. If you are able to provide all the information described in the [JIRA Ticket Checklist](http://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) guidelines, *in the correct fields and using the right format*, I will be able to escalate it to the core team. Please click *edit* to amend the body of the ticket, rather than adding a comment. I will mark this resolved for now. Please reopen when the ticket is complete. Thanks in advance.
  2. Paul Dowsett 2012-02-17

    Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance

JSON Source