{ "id": "149481", "key": "TIMOB-19183", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-23T15:43:33.000+0000", "created": "2015-07-07T00:40:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48316", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "149476", "key": "TIMOB-19181", "fields": { "summary": "Windows: Implement toJSON for Titanium proxy classes", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-25T00:09:07.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5. Steps to reproduce:\r\n1. Create an app for windows & replace the app.js with the code below:\r\n{code}\r\n var c = Ti.Network.createHTTPClient();\r\nTi.API.info('HTTP : ' + JSON.stringify(c));\r\nc.onload = function () {\r\n Ti.API.info('Data: + ' + this.responseText);\r\n};\r\nc.open('GET', \"http://www.appcelerator.com/\");\r\nc.onerror = function (e) {\r\n Ti.API.info('Error: ' + JSON.stringify(e));\r\n};\r\nTi.API.info('URL: ' + url);\r\nc.send();\r\nTi.API.info('HTTP : ' + JSON.stringify(c));\r\n{code}\r\n2. Build for windows emulator.\r\n\r\nh5.Actual Results:\r\n1. We get exception:\r\n{code}\r\n[ERROR] : Application Error: {\r\n[ERROR] : \"message\": \"Error while require(./app) invalid document source\",\r\n[ERROR] : \"native_stack\": [\r\n[ERROR] : \"JSExportClass::CallNamedFunction\"\r\n[ERROR] : ],\r\n[ERROR] : \"stack\": \"require@[native code]\\nglobal code\",\r\n[ERROR] : \"line\": 2\r\n[ERROR] : }\r\n{code}\r\n2. Attached is the screenshot of the on device exception error.\r\n\r\nh5.Expected Resut:\r\n1. We should not get any exceptions using JSON.stringify", "attachment": [ { "id": "56109", "filename": "Capture.PNG", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-07T00:40:47.000+0000", "size": 41675, "mimeType": "image/png" } ], "flagged": false, "summary": "Window: JSON.stringify throws “invalid document source” exception when you dump Titanium proxy", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio: 4.1.0.201507061234\r\nTi SDK: 4.1.0.v20150706111546\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-5 \r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "closedSprints": [ { "id": 453, "state": "closed", "name": "2015 Sprint 15 Windows", "startDate": "2015-07-20T04:01:11.596Z", "endDate": "2015-08-02T03:59:00.000Z", "completeDate": "2015-08-03T23:03:05.129Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "357078", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue will be fixed when TIMOB-19181 is resolved.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-07T00:42:20.000+0000", "updated": "2015-07-07T00:42:39.000+0000" }, { "id": "357144", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "For comparison's sake, here's what we get for iOS:\r\n{code}\r\n[INFO] HTTP : {}\r\n[INFO] HTTP : {\"url\":\"http://www.appcelerator.com/\",\"method\":\"GET\"}\r\n{code}\r\n\r\nThe first is after creating an httpclient, the second is after the open and send function calls.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-07T13:50:21.000+0000", "updated": "2015-07-07T13:50:21.000+0000" }, { "id": "358149", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/387", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-22T11:53:54.000+0000", "updated": "2015-07-22T11:53:54.000+0000" }, { "id": "361002", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 5.0.0.v20150819140421\r\nTi SDK: 5.0.0.v20150820100424\r\nTi CLI: 4.1.4\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.2.0-1\r\nAPPC CLI: 5.0.0-8\r\nNode : v0.10.37\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-25T00:09:00.000+0000", "updated": "2015-08-25T00:09:00.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }