{ "id": "128030", "key": "AC-1003", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-03-25T04:39:54.000+0000", "created": "2014-03-22T11:19:40.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "36038", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "128029", "key": "TIMOB-16678", "fields": { "summary": "Android: File.read() of JS files under Resources directory returns empty string for device/production builds", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:20.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "You have a .js file at Resources/lib named library.js with content:\r\n\r\nvar a = \"hello world\";\r\n\r\n----------\r\n\r\nif you try read the file like a text plain file\r\n\r\nvar value = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory(), \"lib/library.js\").read().toString();\r\n\r\nvalue should be \"var a = \\\"hello world\\\";\", but value is empty -> \"\".\r\n\r\n----------\r\n\r\nif you change library.js to library.lib or other extension is fine.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Empty value when reading a resource directory js file", "creator": { "name": "afcarrera", "key": "afcarrera", "displayName": "Alejandro F. Carrera", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "afcarrera", "key": "afcarrera", "displayName": "Alejandro F. Carrera", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 3.2.2, 4.0 and 4.4\r\nMac OS X 10.9.2, Windows 7 SP1 and Debian OS\r\nTitanium 3.2.2GA", "comment": { "comments": [ { "id": "298525", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving it as a duplicate of TIMOB-16678. Reporter reported the same issue with Aptana Studio as well.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T04:39:54.000+0000", "updated": "2014-03-25T04:39:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }