{ "id": "174032", "key": "TIMOB-27342", "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": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-28T17:00:56.000+0000", "created": "2019-08-19T10:37:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-28T23:32:47.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": "When using console.log/warn/error usually all parameters get logged, however since SDK 8.1.0 this is no longer the case.\r\n\r\nIf you run this code:\r\n{code:js}\r\nconsole.log('a', 'b');\r\nconsole.warn('a', 'b');\r\nconsole.error('a', 'b');\r\n{code}\r\n\r\nit will log:\r\n\r\n{code}\r\n[INFO] a b\r\n[WARN] a\r\n[ERROR] a \r\n{code}\r\n\r\nIt should log {{a b}} for all 3 types.\r\n\r\nIt works fine for Android and iOS SDK 8.0.0.GA", "attachment": [], "flagged": false, "summary": "iOS regression: Console.warn/error don't log all parameters", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 }, { "id": 1161, "state": "closed", "name": "2019 Sprint 18", "startDate": "2019-08-26T21:46:26.269Z", "endDate": "2019-09-08T21:46:00.000Z", "completeDate": "2019-09-09T20:39:58.761Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450700", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR(8_1_X) - https://github.com/appcelerator/titanium_mobile/pull/11162\r\nPR(Master) - https://github.com/appcelerator/titanium_mobile/pull/11163\r\nPR(8_3_X) - https://github.com/appcelerator/titanium_mobile/pull/11164\r\n\r\nTest Case 1. \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\nTi.API.debug({par1:'Ti API debug', par2:'a', par3:{par4: 'b', par5: 'c'}});\r\nTi.API.error(['Ti API error', 'a', 'b'], 'c');\r\nTi.API.info('Ti API info', false, 'b');\r\nTi.API.log('info', 1, 'b');\r\nTi.API.warn('Ti API warn', 'a', 'b');\r\nTi.API.trace('Ti API trace', 'a', 'b');\r\n Ti.API.info(null);\r\n Ti.API.info(undefined);\r\n\r\nconsole.debug('console debug', 'a', 'b');\r\nconsole.error('console error', 'a', 'b');\r\nconsole.info('console info', 'a', 'b');\r\nconsole.log('console log', 'a', 'b');\r\nconsole.warn('console warn', 'a', 'b');\r\nconsole.trace('console trace', 'a', 'b');\r\n\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nTest Case 2 -\r\n\r\n{code:java}\r\nvar htmlText =\r\n '\\n' +\r\n '\\n' +\r\n ' \\n' +\r\n ' \\n' +\r\n ' \\n' +\r\n ' \\n' +\r\n '

HTML JavaScript Logging Test

\\n' +\r\n ' \\n' +\r\n ' \\n' +\r\n '\\n';\r\n \r\nvar window = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({\r\n html: htmlText,\r\n});\r\nwindow.add(webView);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-21T21:58:56.000+0000", "updated": "2019-08-26T19:01:20.000+0000" }, { "id": "450788", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for CR.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-23T17:32:53.000+0000", "updated": "2019-08-23T17:32:53.000+0000" }, { "id": "450831", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "See comment on the 8_1_X back port, this is crashing in our test suite for not properly handling undefined as an argument.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-26T17:14:53.000+0000", "updated": "2019-08-26T17:14:53.000+0000" }, { "id": "450841", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams] Updated PR.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-26T22:14:53.000+0000", "updated": "2019-08-26T22:14:53.000+0000" }, { "id": "450904", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master, 8_1_X and 8_3_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-28T17:00:56.000+0000", "updated": "2019-08-28T17:00:56.000+0000" }, { "id": "450922", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the Fix on sdk 8.3.0.v20190828100616,8.2.0.v20190828134315 and 8.1.1.v20190828100656. console and Ti.APi logs works as expected.\r\n\r\n{code}\r\nTest Environment:\r\nVersion = 10.14.5\r\n Architecture = 64bit\r\nNode.js\r\n Node.js Version = 10.16.2\r\n npm Version = 6.9.0\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.3.0.v20190828100616,8.2.0.v20190828134315 and 8.1.1.v20190828100656\r\nDevice -iPhone X iOS 11\r\nSimulator -iphone iOS 12 ,iPhone 8 iOS 13{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-28T23:32:43.000+0000", "updated": "2019-08-28T23:32:43.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }