{ "id": "119984", "key": "TIMOB-15200", "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": [ { "id": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-18T18:59:30.000+0000", "created": "2013-09-15T23:43:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "imageView", "qe-closed-3.1.3", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "32008", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "117986", "key": "TIMOB-14777", "fields": { "summary": "Android: NullPointerException on ListView + ImageView", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "32416", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "120990", "key": "TIMOB-15439", "fields": { "summary": "Android: App crashes with just a few ImageViews", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-09T15:41:23.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": "After installing SDK 3.1.3.v20130913160104 to verify the fix for TIMOB-14777\r\n\r\ni.e. https://github.com/appcelerator/titanium_mobile/pull/4657\r\n\r\nI have found that setting the .image property on an ImageView does not show the actual image.\r\n\r\nHere's a reduced repro (that can be placed into FirstView.js after creating a new project, for example):\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nfunction FirstView() {\r\n var imageView = Ti.UI.createImageView();\r\n \r\n var xhr = Ti.Network.createHTTPClient();\r\n xhr.onload = function() {\r\n imageView.image = xhr.responseData;\r\n };\r\n \r\n xhr.open('GET', 'http://nicj.net/wd-icon-small.png');\r\n xhr.send();\r\n \r\n return imageView;\r\n}\r\nvar v = FirstView();\r\n\r\nwin.add(v);\r\nwin.open();\r\n{code}\r\n\r\nOn SDK 3.1.2, the logo shows up.\r\n\r\nOn SDK 3.1.3.v20130913160104, the logo does not show up.\r\n\r\nThe XHR.onload event does fire, but it appears setting imageView.image has no effect.\r\n\r\nI suspect that it may be related to the fix I mention TIMOB-14777.", "attachment": [ { "id": "42590", "filename": "3.1.2.GA.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T16:51:25.000+0000", "size": 33808, "mimeType": "image/png" }, { "id": "42591", "filename": "3.1.3.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T16:51:25.000+0000", "size": 23929, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ImageView.image from XHR no longer shows new image", "creator": { "name": "nicjansma", "key": "nicjansma", "displayName": "Nic Jansma", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "nicjansma", "key": "nicjansma", "displayName": "Nic Jansma", "active": true, "timeZone": "America/Havana" }, "environment": "Android\r\nSDK 3.1.3.v20130913160104", "comment": { "comments": [ { "id": "271722", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have this issue too.\r\n\r\nI assume that in TiUIImageView.java (lines 140 and 227)\r\n{code}\r\nimgsrc.getUrl()\r\n{code}\r\n\r\nreturns null, when an image is set from a blob. With the fix mentioned in the description, the image bitmap will never be set in this case.", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-18T12:47:19.000+0000", "updated": "2013-09-18T12:47:19.000+0000" }, { "id": "271726", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull Request for my fix:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4710", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-18T13:04:31.000+0000", "updated": "2013-09-18T13:04:31.000+0000" }, { "id": "271767", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The bug is reproducible with:\r\nAppcelerator Studio, build: 3.1.3.201309132456\r\nTitanium SDK, build: 3.1.3.v20130917141554\r\nCLI 3.1.2\r\nAlloy 1.2.2-cr\r\ncode-processor 1.0.3-cr\r\nGalaxyS3 Android version 4.0.4\r\n\r\nSee screenshots", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T16:50:51.000+0000", "updated": "2013-09-18T16:55:40.000+0000" }, { "id": "271802", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4711\n3.1.x PR: https://github.com/appcelerator/titanium_mobile/pull/4712", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T18:41:24.000+0000", "updated": "2013-09-18T18:41:24.000+0000" }, { "id": "271804", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~philet] thanks very much for your work. Your PR is great. The only problem is the additional check is not necessary for the method handleCacheAndSetImage which is only used in downloadListener, since the downloaded image must have a url. Due to the tight time schedule for the release 3.1.3, I submitted another PR which only adds the additional check in loadImageListener.\nPR: https://github.com/appcelerator/titanium_mobile/pull/4711\n3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4712", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T18:50:25.000+0000", "updated": "2013-09-18T18:50:25.000+0000" }, { "id": "271945", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with:\nAppcelerator Studio, build: 3.1.3.201309132456\nTitanium SDK, build: 3.1.3.GA\nCLI 3.1.2\nAlloy 1.2.2\ncode-processor 1.0.3\nDevice: Nexus7 Android version:4.3\n\nThe image is shown", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-19T17:56:20.000+0000", "updated": "2013-09-19T17:56:20.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }