{ "id": "84774", "key": "TIMOB-7119", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:36:44.000+0000", "created": "2012-01-11T16:46:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:36:44.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If a relative path is passed as the first argument to {{Ti.Filesystem.getFile(..)}}, that path is interpreted differently, android vs. iOS:\r\n\r\n* In Android, it's relative to the calling context. So if the {{getFile}} is called from within a window with JS url \"a/b/c.js\", then the path argument to {{getFile}} (if relative) is interpreted as being relative to folder \"b\".\r\n\r\n* In iOS, a relative path passed as first argument to {{getFile}} is interpreted as being relative to root Resources, no matter which code is calling it.\r\n\r\nh3. Fail Case / Test Case App\r\n\r\nAttached GetFilePath.zip contains app that, when run on Android, will show a graphic on the _second_ window. On iPhone, it won't show the graphic and you'll see \"ERROR Couldn't get image file\" in console.", "attachment": [ { "id": "25018", "filename": "GetFilePath.zip", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-11T17:09:43.000+0000", "size": 5037712, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Filesystem.getFile() - path always relative to Resources instead of calling context", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 1.8.0.1, iOS vs. Android", "comment": { "comments": [ { "id": "179127", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Based on discussions in today's parity meeting, there seems to be agreement that Android's current behavior is the correct one (paths are relative to the current script). \r\n\r\nI'm changing this to an iOS bug and updating the docs accordingly.\r\n\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T14:50:41.000+0000", "updated": "2012-01-12T14:50:41.000+0000" }, { "id": "453579", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:36:44.000+0000", "updated": "2020-01-09T19:36:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }