{ "id": "110316", "key": "TIMOB-12885", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-08-30T02:33:56.000+0000", "created": "2013-02-27T05:13:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-08-30T02:33:56.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "image property of Image View or backgroundImage property of View, does not handle URL redirect and does not load remote images.\r\n\r\nTest Case, create a new allow project and then change the code to.\r\n\r\n**Sample Code**\r\n\r\n=>index.tss file code\r\n{code}\r\n\".container\": {\r\n backgroundColor:\"white\"\r\n},\r\n\"#icon\": {\r\n top:10,\r\n left:10,\r\n width: Ti.UI.SIZE,\r\n height: Ti.UI.SIZE,\r\n color: \"#000\",\r\n borderColor:\"red\",\r\n borderWidth:2\r\n}\r\n{code} \r\n=>index.js file code\r\n{code}\r\nvar imageUrl = \" https://www.poweruprewards.com/SiteResources/i/catalog/lg/PaddysSnuggieL.jpg\";\r\n $.icon.image = imageUrl;\r\n\r\n\r\n$.index.open();\r\n\r\nsetTimeout(function(){\r\n $.icon.image = \"/PaddysSnuggieL.jpg\";\r\n},10000);\r\n{code}\r\n\r\n=>index.xml file code\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n1: Run sample as it is.\r\n\r\nTest Result: failed\r\nReason: Image does not load and the error for max retry reached.\r\n\r\n2: Run sample with this URL, URL = http://www.mapsofindia.com/maps/india/india-large-color-map.jpg\r\n\r\nTest Result: Passed\r\nReason: Image Shows up properly.\r\n\r\n3: Run sample with Both URL and using one URL with timeout method\r\n\r\nTest Result: Passed for URL = http://www.mapsofindia.com/maps/india/india-large-color-map.jpg and failed for second.\r\nReason: Image Shows up properly.\r\n\r\n4: Run sample with the image (PaddysSnuggieL.jpg and india-large-color-map.jpg) in URL saved locally in assets folder.\r\n\r\nTestResult: Passed for both the images.\r\nReason: both images shows up properly.", "attachment": [], "flagged": false, "summary": "image property of Image View or backgroundImage property of View, does not handle URL redirect and does not load remote images.", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Android, Alloy, Titanium SDK.", "comment": { "comments": [ { "id": "240681", "author": { "name": "reinoud", "key": "reinoud", "displayName": "Reinoud", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have a similar issue on Android and 3.0.0/3.0.2. Might be related.\r\nLoading images from the web works, but when the image url is a dynamic source (.php) it won't show (Android issue only).\r\n\r\nFirst encountered using Alloy, but can reproduce the issue using Ti Classic single window app:\r\n\r\n{code}\r\n//FirstView Component Constructor\r\nfunction FirstView() {\r\n\t//create object instance, a parasitic subclass of Observable\r\n\tvar self = Ti.UI.createView();\r\n\t\r\n\tvar image = Ti.UI.createImageView({\r\n\t\twidth:Ti.UI.SIZE,\r\n\t\theight:Ti.UI.SIZE,\r\n\t\timage:\"http://api.coldtrick.com/mod/profile/icondirect.php?lastcache=1357651348&joindate=1357651236&guid=41&size=medium\",\r\n\t\t//image:\"http://api.coldtrick.com/_graphics/icons/user/defaultmedium.gif\",\r\n\t});\r\n\tself.add(image);\r\n\t\r\n\treturn self;\r\n}\r\n\r\nmodule.exports = FirstView;\r\n{code}\r\n\r\nThe .gif will show (when uncommented), but the image from icondirect.php not. The content type of the response is \"image/jpeg\".", "updateAuthor": { "name": "reinoud", "key": "reinoud", "displayName": "Reinoud", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-05T10:03:06.000+0000", "updated": "2013-03-05T10:03:06.000+0000" }, { "id": "321566", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug impacts Facebook now: profile images, retrieved with http://graph.facebook.com/fb_id/picture are redirected. The only workaround is to separately request direct profile picture urls, which is so inconvenient.\r\n", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T13:36:40.000+0000", "updated": "2014-09-03T13:36:40.000+0000" }, { "id": "321580", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-assigning to triage.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T15:12:12.000+0000", "updated": "2014-09-03T15:12:12.000+0000" }, { "id": "341350", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "may we have a status update on this issue please.", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2015-01-30T03:47:51.000+0000", "updated": "2015-01-30T03:47:51.000+0000" }, { "id": "347913", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I believe the same is true for Android.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-03-31T09:39:48.000+0000", "updated": "2015-03-31T09:39:48.000+0000" }, { "id": "441212", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've re-tested with Titanium 7.3.0.\r\n\r\nThe following URL successfully loads the image...\r\nhttp://api.coldtrick.com/mod/profile/icondirect.php?lastcache=1357651348&joindate=1357651236&guid=41&size=medium\r\n\r\nThe following URL, which involves a redirect from http to https, successfully loads the image too...\r\nhttp://raw.githubusercontent.com/recurser/exif-orientation-examples/master/Portrait_1.jpg\r\n\r\nThe following URL fails to load the image because the website has an invalid certificate. This is the correct behavior in this case.\r\nhttps://www.poweruprewards.com/SiteResources/i/catalog/lg/PaddysSnuggieL.jpg\r\n\r\nI'm going to close this ticket. The first 2 URLs I've tested have shown that this is resolved.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-30T02:33:42.000+0000", "updated": "2018-08-30T02:33:42.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }