{ "id": "117030", "key": "TIMOB-14659", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T18:43:15.000+0000", "created": "2013-07-10T06:33:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "MobileWeb", "httpclient" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:35.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "*Problem*\r\nWhen using HTTPClient to download an imagefile, I get a strange apparaently untrappable error in the Javascript console for SOME image files , and I can't see why some work and others don't.\r\n\r\n*Browsers*\r\nChrome 27.0.1453.116 - copy.png works, panelC.png causes error\r\nFirefox 22.0 - both images work, no error\r\nSafari 6.0.5 (8536.30.1) - Both images causes error\r\n\r\n*Steps to reproduce*\r\n1. Create New Mobile Project, select Classic->Default Project as Project template\r\n2. Use the code below in app.js\r\n3. Create Resources/comics and copy the two files attached into it\r\n4. Run code (with imgfile variable set to 'comics/panelC.png') and review Javascript console - it should look like attached screenshot more or less \r\n5. Run code (with imgfile variable set to 'comics/copy.png') and review Javascript console - it doesn't throw the error with this file.\r\n\r\nIncidentally, it's not the createImageView that is causing this - If it is removed, the error still occurs.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar oxi = {};\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n\topacity : 1,\r\n\tbackgroundColor : 'white'\r\n});\r\nwin.add(view);\r\nwin.open();\r\nvar imgfile = 'comics/panelC.png';\r\nvar imgLoader = Ti.Network.createHTTPClient({\r\n\tonload : function(e) {\r\n\t\tTi.API.info('image loaded');\r\n\t\twin.add(Ti.UI.createImageView({\r\n\t\t\timage : imgfile\r\n\t\t}));\r\n\t},\r\n\tonerror : function(e) {\r\n\t\tTi.API.info('some error occured');\r\n\t}\r\n});\r\n\r\nimgLoader.open(\"GET\", imgfile);\r\nimgLoader.send();\r\n{code}\r\n\r\n\r\n", "attachment": [ { "id": "40629", "filename": "copy.png", "author": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T06:33:18.000+0000", "size": 17021, "mimeType": "image/png" }, { "id": "40630", "filename": "panelC.png", "author": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T06:33:18.000+0000", "size": 7597, "mimeType": "image/png" }, { "id": "40632", "filename": "screenshot_chrome.png", "author": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T06:33:18.000+0000", "size": 48799, "mimeType": "image/png" }, { "id": "40631", "filename": "screenshot_safari.png", "author": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T06:33:18.000+0000", "size": 49570, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Using HTTPClient to download certain images causes an untrappable error in some browsers", "creator": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mortenfthomsen", "key": "mortenfthomsen", "displayName": "Morten F. Thomsen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mobile Web, SDK 3.1.1GA, OSX", "comment": { "comments": [ { "id": "263178", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on listed browsers with Ti SDK 3.1.1 GA and 3.2 CI.\n\nHowever, we don't officially support desktop browsers - only mobile.\n\nI will move it to TiMob anyway for our engineering team to decide.\n\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-25T18:35:58.000+0000", "updated": "2013-07-25T18:35:58.000+0000" }, { "id": "422776", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T18:43:15.000+0000", "updated": "2017-06-26T18:43:15.000+0000" }, { "id": "436430", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:35.000+0000", "updated": "2018-04-04T23:20:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }