{ "id": "141953", "key": "TIMOB-18273", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-14T19:08:02.000+0000", "created": "2014-12-19T23:46:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "filesystem", "images", "mobileweb", "qe-3.5.0" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "44298", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "141955", "key": "TIMOB-18274", "fields": { "summary": "iOS: Images property cannot load array of images from the applicationDataDirectory", "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 } } } }, { "id": "44296", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "141895", "key": "TIMOB-18262", "fields": { "summary": "iOS: Cannot load images from the applicationDataDirectory", "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": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-14T19:08:02.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": "Images in ImageViews, tab icons,etc, can not be loaded from the `applicationDataDirectory`. This is not a regression as I encounter the same issue with SDK 3.4.1.GA\r\n\r\n*Steps to reproduce issue*:\r\n1. Run project with below code\r\n2. Notice that the image at the bottom of the screen is not loaded\r\n\r\n*Expected result*:\r\nBoth the top and bottom image are loaded\r\n\r\n*Notes*:\r\nThis is not a regression and applies to the \"image\" property. Separate tickets are filed for the \"images\" property.\r\n\r\nHere is the sample code to replicate:\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar image1 = Titanium.UI.createImageView({\r\n top: 10,\r\n image: \"/appicon.png\"\r\n});\r\n\r\nvar icon = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'appicon.png');\r\nvar dest = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'appicon.png');\r\n\r\ndest.write(icon.read());\r\n\r\nvar image2 = Titanium.UI.createImageView({\r\n bottom: 10,\r\n image: Ti.Filesystem.applicationDataDirectory + 'appicon.png'\r\n});\r\n\r\nwin2.add(image1);\r\nwin2.add(image2);\r\n\r\nwin2.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Cannot load images from the applicationDataDirectory", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.0.v20141219144914\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1", "comment": { "comments": [ { "id": "421985", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress over the past few years. If this problem persists, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T19:08:02.000+0000", "updated": "2017-06-14T19:08:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }