[TIMOB-11863] Imageview does not display images if URL has redirects
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-01-11T07:39:49.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.1.0 |
Fix Version/s | Release 5.4.0 |
Components | iOS |
Labels | qe-5.4.0 |
Reporter | Anirudh Nagesh |
Assignee | Hieu Pham |
Created | 2012-11-27T01:04:41.000+0000 |
Updated | 2016-06-13T21:09:28.000+0000 |
Description
Run the below sample code.
var win1 = Titanium.UI.createWindow({className:'win1'});
var img = Ti.UI.createImageView({
image:'http://graph.facebook.com/517267866/picture',
top:40,
width:200,
height:200
});
win1.add(img);
win1.open();
i have tested this url in chrome browser, i think the url doesn't exists. Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0 Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
This is a redirect from http to https. Native implementations usually don't support it for security purposes.
Android master PR: https://github.com/appcelerator/titanium_mobile/pull/7533
Tested on Ti SDK 5.1.0.GA and 5.1.2 with iOS 9.1. there is no problem seeing the image.
PR Merged. Tested on both a Android 6.0 and a non Android 6.0 device.
Verified as fixed. Tested on: Android emulator (6.0) Nexus 5 (6.0.1) Samsung s3 (4.4.2) Mac OSX El Capitan 10.11.4 Studio: 4.7.0.201606070951 Ti SDK: 5.4.0.v20160608165242 Appc NPM: 4.2.7-2 Appc CLI: 5.4.0-13 Node v0.12.7 *Closing Ticket.*