Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11656] iOS6: ImageView - failure to download content of image.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2012-11-20T01:00:26.000+0000
Affected Version/sRelease 2.1.4
Fix Version/s2012 Sprint 23 API, 2012 Sprint 23
ComponentsiOS
Labelsqe-ios100112, qe-ios214, qe-ios6
ReporterOlga Romero
AssigneeVishal Duggal
Created2012-11-02T19:04:12.000+0000
Updated2013-03-27T22:53:51.000+0000

Description

Descrition: While testing ImageView Module a failure to download an imageg's content occurred. It happens *only on iPhone with ios 6.0* It does work on Ipad with ios 6.0. *Not a regression* can be reproduced on 2.1.3 Test steps: 1. Run this code below:
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#000',
    exitOnClose: true
});
var btnAdd, imageView
win.add(btnAdd = Ti.UI.createButton({
    title: "Test",
    left: "10dp", width: "150dp", bottom: "5dp", height: "40dp"
}));
win.add(imageView = Ti.UI.createImageView({
    image: "http://www.appcelerator.com/wp-content/themes/appcelerator/img/werehiring_sticker.png",
    width: "86dp", height: "84dp"
}));
btnAdd.addEventListener("click", function() {
    imageView.image = "http://www.google.com";
    win.remove(imageView);
});
win.open();
Actual result: 1. No image loaded. Expected result: 1. An image should appear.

Comments

  1. Vishal Duggal 2012-11-06

    Tried on 2_1_X, 3_0_X and master with iOS 4.3, 5.0, 5.1 and 6.0. Unable to reproduce the issue.
  2. Olga Romero 2012-11-19

    Reopening issue. As I mentioned before *it happens only on iPhone5 and iPad mini with iOS 6.0*
  3. Vishal Duggal 2012-11-20

    These are the request response headers. Getting wrong encoding from server PASS CASE Printing description of req->request->requestHeaders: { "Accept-Encoding" = gzip; "User-Agent" = "Appcelerator Titanium/3.1.0 (iPhone Simulator/6.0; iPhone OS; en_US;)"; } Printing description of req->request->responseHeaders: { "Accept-Ranges" = bytes; Connection = Close; "Content-Length" = 13779; "Content-Type" = "image/png"; Date = "Tue, 20 Nov 2012 00:59:53 GMT"; Etag = "\"46315-35d3-4b8664c5a3d80\""; "Last-Modified" = "Tue, 07 Feb 2012 21:16:54 GMT"; Server = "Apache/2.2.22 (Ubuntu)"; } FAIL CASE Printing description of req->request->requestHeaders: { "Accept-Encoding" = gzip; "User-Agent" = "Appcelerator Titanium/3.1.0 (iPhone/6.0; iPhone OS; en_US;)"; } Printing description of req->request->responseHeaders: { "Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"; Connection = Close; "Content-Encoding" = gzip; "Content-Type" = "text/html"; Date = "Tue, 20 Nov 2012 00:49:25 GMT"; Expires = "Thu, 19 Nov 1981 08:52:00 GMT"; Pragma = "no-cache"; "Set-Cookie" = "PHPSESSID=f78oc50a41kk1nmnhdv3plp995; path=/"; "Transfer-Encoding" = Identity; Vary = "Accept-Encoding"; }

JSON Source