{ "id": "92015", "key": "TIMOB-9175", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T04:46:09.000+0000", "created": "2012-05-18T17:05:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_filesystem", "parity", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-08T05:33:03.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": "The following code throws an exception:\r\n\r\n{code}\r\nvar myBlob = button.toImage();\r\nTi.API.info(\"Blob.nativePath: \" + JSON.stringify(myBlob.nativePath));\r\n{code}\r\n\r\nI would expect this to return some kind of value to indicate that nativePath is not set. Instead, it throws an exception:\r\n\r\n[ERROR] Script Error = *** -[NSURL initFileURLWithPath:]: nil string parameter at app.js (line 28).\r\n\r\nIn this circumstance, Android returns {{null}}, and MobileWeb returns the empty string. I believe that returning {{null}} is the intended behavior on iOS.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Blob.nativePath throws exception for non-File Blobs", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "195457", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*NOTE:* As part of resolving this ticket, you must update the documentation to show that the bug has been fixed. See [PR #2202|https://github.com/appcelerator/titanium_mobile/pull/2202].", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T10:30:35.000+0000", "updated": "2012-05-21T10:30:35.000+0000" }, { "id": "195507", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case: \r\n\r\n{code}\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'TIMOB-9175 Test',\r\n backgroundColor:'#fff'\r\n});\r\nwin1.open();\r\nvar myBlob = Ti.createBuffer({ value: \"Use a string to build a buffer to make a blob.\"}).toBlob();\r\nTi.API.info(\"Blob from buffer: nativePath: \" + JSON.stringify(myBlob.nativePath));\r\n{code}\r\n\r\nShould show nativePath returning null. On iOS, currently throws the exception shown above.\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T14:05:24.000+0000", "updated": "2012-05-21T14:05:24.000+0000" }, { "id": "195510", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Addressed in PR:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2239\r\n\r\n\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T14:42:36.000+0000", "updated": "2012-05-21T14:42:36.000+0000" }, { "id": "198714", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206141932\r\nTi Mobile SDK 2.1.0.v20120614194151 hash rad27673d\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nVerified that the blob returned null", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:47:06.000+0000", "updated": "2012-06-15T11:47:06.000+0000" }, { "id": "202894", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T04:45:35.000+0000", "updated": "2012-07-12T04:45:35.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }