{ "id": "149080", "key": "AC-178", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-22T11:49:53.000+0000", "created": "2015-06-24T08:00:53.000+0000", "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-22T11:49:53.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "I wanna show a local file on iOS in a document viewer, the file containing white spaces.\r\n\r\n*In 3.5.1GA (working as expected):*\r\nTi.UI.iOS.createDocumentViewer({\r\n\t\turl : \"my test file.png\" //This one would try to open a file \"my test file.png\"\r\n});\r\n\r\n*In 4.0.0RC4 (this is not working):*\r\nTi.UI.iOS.createDocumentViewer({\r\n\t\turl : \"my test file.png\" //This one would try to open a file \"my%20test%20file.png\"\r\n});\r\n\r\nWhen I use file.nativePath 4.0.0RC4 the string will be encoded twice:\r\nTi.UI.iOS.createDocumentViewer({\r\n\t\turl : file.nativePath //This one would try to open a file \"my%2025test%2025file.png\"\r\n});\r\n\r\nThis behavior makes it impossible to read local files with whitespaces in the Documentviewer.", "attachment": [], "flagged": false, "summary": " Ti.UI.iOS.createDocumentViewer encoding issue", "creator": { "name": "mBahl", "key": "mbahl", "displayName": "Michael Bahl", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mBahl", "key": "mbahl", "displayName": "Michael Bahl", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Difference between 3.5.1 and 4.0.0RC4", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }