Issue Type: Bug Bug
Affects Versions: 0.8.0
Assignee: Christos Vasilakis
Components: UnifiedPush-ios
Created: 23/Aug/13 6:00 AM
Description:

When trying to perform iOS device registration using POST against (e.g. OpenShift http://secure-pushee.rhcloud.com) that redirects to 'https' the client fails to redirect to the secure endpoint as defined in the 'Location:' header returned by the initial response. Instead it transforms the POST request to a GET, erasing the POST parameters, and then re-attemps the request against the insecure endpoint.

This is the default 'erroneous' behaviour for POST requests against 302-redirected endpoints that most user-agents follow. See RFC 2616 (section 10.3.3) and related blog post here.

We need to 'override' that 'default' behaviour by adding a 'setRedirectResponseBlock' on the Operation class which will return the original attempted NSURLRequest with the URL parameter updated to point to the new 'Location' header.

Fix Versions: 0.9.0
Project: AeroGear Push
Labels: ios
Priority: Major Major
Reporter: Christos Vasilakis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira