[TIMOB-25760] Windows: Titanium.Network.HTTPClient Location doesn't return the redirected URL
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-12-10T21:29:24.000+0000 |
Affected Version/s | Release 7.0.1 |
Fix Version/s | Release 8.0.0 |
Components | Windows |
Labels | parity |
Reporter | alka.gurung |
Assignee | Kota Iguchi |
Created | 2018-02-07T14:56:20.000+0000 |
Updated | 2018-12-11T12:28:30.000+0000 |
Description
Titanium.Network.HTTPClient Location doesn't return the redirected url in windows.
It works perfectly on iOS and Android.
Sample Code:
var _tmpURL = "any url that redirects to other url"
var _tmpClient = Ti.Network.createHTTPClient({
onload: function(e)
{
serverAddressRedirected = _tmpClient.location;
//this should return redirected url but returns the url before redirect
Ti.API.info("Location:" + serverAddressRedirected);
},
onerror : function(e)
{
alert("Error:" + e.error);
},
timeout: 30000
});
_tmpClient.open("GET",_tmpURL);
_tmpClient.send();
https://github.com/appcelerator/titanium_mobile_windows/pull/1182
Master PR merged, needs backport to 7.1.0 branch
backport for 7.1.0: https://github.com/appcelerator/titanium_mobile_windows/pull/1191
https://github.com/appcelerator/titanium_mobile_windows/pull/1189
Seems like this makes LiveView unstable.
Attempt to fix issue with liveview: https://github.com/appcelerator/titanium_mobile_windows/pull/1318
*FR Passed*
Closing ticket, fix verified in SDK version 8.0.0.v20181210172243. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1318