{ "id": "101738", "key": "TIMOB-11055", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-11T23:28:39.000+0000", "created": "2012-09-22T14:21:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-testadded" ], "versions": [ { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-07T09:11: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Firing an event from a WebView will cause a crash if the event object\r\ncontains a null value. This is due to how we bridge the object between Java <-> WebView\r\nas a JSON string. We do not properly convert JSONObject.NULL values back to Java nulls\r\nwhich causes our Kroll layer to crash since it can't convert this type.\r\n\r\nh4. Test Case\r\n1. Create an application with the attached app.js and index.html.\r\n2. Click the button in the web view (\"click me\") to trigger an event.\r\n\r\nPass: alert appears displaying the event object.\r\nFail: application crashes due to conversion error (\"Unable to convert unknown Java object class 'org.json.JSONObject$1' to Js value\")\r\n\r\nh4. Credit\r\nThanks to Tristan Waddington for reporting this bug and the detailed write up on his blog.", "attachment": [ { "id": "32504", "filename": "app.js", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T19:13:21.000+0000", "size": 221, "mimeType": "text/javascript" }, { "id": "31643", "filename": "index.html", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-22T14:35:54.000+0000", "size": 356, "mimeType": "text/html" } ], "flagged": false, "summary": "Android: WebView event JSON object conversion bug causing crash.", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "220273", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #3032|https://github.com/appcelerator/titanium_mobile/pull/3032] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-22T16:44:59.000+0000", "updated": "2012-09-22T16:44:59.000+0000" }, { "id": "222949", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated app.js to fix crash seen when running on Rhino.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T19:13:21.000+0000", "updated": "2012-10-10T19:13:21.000+0000" }, { "id": "223216", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "backport PR https://github.com/appcelerator/titanium_mobile/pull/3174", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T23:24:30.000+0000", "updated": "2012-10-11T23:24:30.000+0000" }, { "id": "230072", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.20121204144658 on Droid 1 2.2.3 with Rhino and V8", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T18:07:44.000+0000", "updated": "2012-12-05T18:07:44.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }