{ "id": "159815", "key": "TIMOB-23274", "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": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-29T12:41:06.000+0000", "created": "2016-04-25T22:05:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-03T15:27:46.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.Description\r\n\r\nWhile [~htbryant] was closing TIMOB-19946 he was told that when attempting to use the below code it should print out a warning on Windows 10 Mobile and Windows Phone 8.1, informing the user that alertDialoghide() is unsupported on those platforms. \r\n\r\n{code: title=Example 1}\r\nvar a = Ti.UI.createAlertDialog({title: 'Alert', message: 'This will hide in 3 seconds'});\r\na.show();\r\n\r\n// hide alert after 3 seconds\r\nsetTimeout(function () {\r\n a.hide();\r\n}, 3000);\r\n\r\n// show alert after another 3 seconds\r\nsetTimeout(function () {\r\n a.show();\r\n}, 6000);\r\n{code}\r\n\r\nUpon further investigation from other APIs that should throw a warning it appears that these warnings do not reach the the console output of the user. Example 2 should log [HTTPClient::send: Data found during a GET request. Method will be changed to POST.|https://github.com/appcelerator/titanium_mobile_windows/blob/5_3_X/Source/Network/src/HTTPClient.cpp#L121], but although the method of the request is successfully changed to POST the logging never occurs\r\n\r\n{code: title=Example 2}\r\n var url = \"http://requestb.in/15s5i021\";\r\n var client = Ti.Network.createHTTPClient({\r\n // function called when the response data is available\r\n onload : function(e) {\r\n Ti.API.info(\"Received text: \" + this.responseText);\r\n alert('success');\r\n },\r\n // function called when an error occurs, including a timeout\r\n onerror : function(e) {\r\n Ti.API.debug(e.error);\r\n alert('error');\r\n },\r\n timeout : 5000 // in milliseconds\r\n });\r\n // Prepare the connection.\r\n client.open(\"GET\", url);\r\n // Send the request.\r\n client.send({\r\n \t\"Hello\": \"World\"\r\n });\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Using example 1 build to a Windows 10 Mobile device or emulator\r\n2. Using example 2 build to any Windows target\r\n\r\nh5.Actual result\r\n\r\nNo warning logs are printed in either case\r\n\r\nh5.Expected result\r\n\r\n1. {{AlertDialog::hide() is not supported on Windows Phone}} or {{AlertDialog::hide() is not supported on Windows 10 Mobile}} should be logged depending on the os\r\n2. {{HTTPClient::send: Data found during a GET request. Method will be changed to POST.}} should be logged ", "attachment": [], "flagged": false, "summary": "Windows: No warn logging from internal TITANIUM_LOG_WARN", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 Pro\r\nVisual Studio 2015 Community Update 2\r\nAppc Core: 5.3.0-36\r\nAppc NPM: 4.2.5-3\r\nTi SDK: 5.3.0.v20160421080259", "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "383980", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~kota] Can you take a look at this? Looks like some of the logging macro usage should be converted to actually call Ti.API.log instead so it actually gets out to the console for the user to see.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-04-26T20:23:27.000+0000", "updated": "2016-04-26T20:23:27.000+0000" }, { "id": "384010", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Yes, so {{TITANIUM_LOG_WARN}} has been used only for debugging purpose from Visual Studio and we have not been quite aware of logging in Titanium CLI. I guess replacing entire {{TITANIUM_LOG_WARN}} to {{TITANIUM_MODULE_LOG_WARN}} would not fit in this case...we'll need to \"choose\" what to show manually.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T02:28:15.000+0000", "updated": "2016-04-27T02:28:15.000+0000" }, { "id": "384074", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/648\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/649", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T13:47:16.000+0000", "updated": "2016-04-27T13:47:16.000+0000" }, { "id": "384380", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed,\r\nExample case 1: receive the log message {{AlertDialog::hide() is not supported on Windows 10 Mobile}}\r\nExample case 2: receive the log message {{HTTPClient::send: Data found during a GET request. Method will be changed to POST.}}\r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.6.0.201604290815\r\nTi SDK: 5.3.0.v20160429125919\r\nAppc NPM: 4.2.5-3\r\nAppc Core: 5.3.0-40\r\nNode: v4.4.2\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-04-29T21:00:24.000+0000", "updated": "2016-04-29T21:00:24.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }