Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11863] Imageview does not display images if URL has redirects

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-01-11T07:39:49.000+0000
Affected Version/sRelease 2.1.4, Release 3.1.0
Fix Version/sRelease 5.4.0
ComponentsiOS
Labelsqe-5.4.0
ReporterAnirudh Nagesh
AssigneeHieu Pham
Created2012-11-27T01:04:41.000+0000
Updated2016-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();

Comments

  1. jithinpv 2013-03-22

    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
  2. Hieu Pham 2015-12-02

    This is a redirect from http to https. Native implementations usually don't support it for security purposes.
  3. Hieu Pham 2015-12-02

    Android master PR: https://github.com/appcelerator/titanium_mobile/pull/7533
  4. Chee Kiat Ng 2015-12-03

    Tested on Ti SDK 5.1.0.GA and 5.1.2 with iOS 9.1. there is no problem seeing the image.
  5. Ashraf Abu 2016-01-11

    PR Merged. Tested on both a Android 6.0 and a non Android 6.0 device.
  6. Josh Longton 2016-06-13

    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.*

JSON Source