{ "id": "154132", "key": "TIMOB-20200", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-30T02:17:13.000+0000", "created": "2016-01-06T00:24:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-5.1.2", "qe-6.2.0" ], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" }, { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [ { "id": "50224", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63285", "key": "TIMOB-2653", "fields": { "summary": "Android: Complex/autogenerated remote image URLs fail, whereas simple URLs succeed", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-08-30T02:17:13.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": "*Details:* Remote images are not rendered when using with Ti.UI.createImageView on a Android 6.0 device.\r\n\r\n*Notes:*\r\n* This is *not a regression* with 5.1.1.GA SDK.\r\n* Remote images are rendered on Android 4.X devices.\r\n\r\n*Steps to reproduce:*\r\n# Create a Titanium classic app\r\n# Replace app.js with the following code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar imageTest = Titanium.UI.createImageView({\r\n\timage: 'http://chart.apis.google.com/chart?cht=r&chs=200x200&chd=t:77,66,15,0,31,48,100,77%7C20,36,100,2,0,100&chco=FF0000,FF9900&chls=2.0,4.0,0.0%7C2.0,4.0,0.0&chxt=x&chxl=0:%7C0%7C45%7C90%7C135%7C180%7C225%7C270%7C315&chxr=0,0.0,360.0',\r\n\t// image: 'http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png',\r\n\ttop: 10,\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE\r\n});\r\n\r\nwin.add(imageTest);\r\n\r\nwin.open();\r\n{code}\r\n# Install app to a 6.0 Android device.\r\n\r\n*Actual:* In logcat, you will *intermittently* get this FileNotFoundException:\r\n{code}\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): (pool-3-thread-2) [5309,5309] Exception downloading http://chart.apis.google.com/chart?cht=r&chs=200x200&chd=t%3A77%2C66%2C15%2C0%2C31%2C48%2C100%2C77%7C20%2C36%2C100%2C2%2C0%2C100&chco=FF0000%2CFF9900&chls=2.0%2C4.0%2C0.0%7C2.0%2C4.0%2C0.0&chxt=x&chxl=0%3A%7C0%7C45%7C90%7C135%7C180%7C225%7C270%7C315&chxr=0%2C0.0%2C360.0\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.appcelerator.ImageView/cache/_tmp/remote-cache/9c7e4d9a7222251ad1e827727032e06efb597abb.hdr: open failed: ENOENT (No such file or directory)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat libcore.io.IoBridge.open(IoBridge.java:452)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.io.FileOutputStream.(FileOutputStream.java:87)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.io.FileOutputStream.(FileOutputStream.java:72)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.io.FileWriter.(FileWriter.java:42)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.net.URL.openStream(URL.java:470)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat java.lang.Thread.run(Thread.java:818)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat libcore.io.Posix.open(Native Method)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \tat libcore.io.IoBridge.open(IoBridge.java:438)\r\n01-05 15:24:10.915: E/TiDownloadManager(13365): \t... 15 more\r\n{code}\r\n\r\nAnd, the remote image will not be rendered; see 6.0_device.png attachment.\r\n\r\n*Expected:* You should see the remote image being rendered on device; see 4.X_device.png attachment.", "attachment": [ { "id": "57884", "filename": "4.X_device.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T00:24:24.000+0000", "size": 25234, "mimeType": "image/png" }, { "id": "57883", "filename": "6.0_device.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T00:24:24.000+0000", "size": 37594, "mimeType": "image/png" } ], "flagged": false, "summary": "Android 6.0 - Remote images are not rendered when using with Ti.UI.createImageView", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.4.0.201511241829\r\nAppc CLI NPM: 4.2.2\r\nAppc CLI Core: 5.1.0\r\nArrow: 1.3.22\r\nSDK: 5.1.1.GA, 5.1.2.v20151216190036\r\nNode: v4.2.2\r\nOS: El Capitan (10.11.2)\r\nDevices: Nexus 6p (6.0)", "comment": { "comments": [ { "id": "373898", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "I believe there is an existing ticket already open for this plague.\r\nIt relates to the write_external permissions being missing under android 6, unless you have prompted the user for camera/file storage perms.\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2016-01-06T12:24:25.000+0000", "updated": "2016-01-06T12:24:25.000+0000" }, { "id": "441210", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was fixed in Titanium 7.1.0 by this ticket: [TIMOB-25507]\r\nCaused by lack of external storage permission.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-30T02:17:07.000+0000", "updated": "2018-08-30T02:17:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }