{ "id": "79504", "key": "TIMOB-5807", "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": "12085", "description": "Mobile @ HQ", "name": "Sprint 2011-45", "archived": true, "released": true, "releaseDate": "2011-11-14" }, { "id": "12089", "description": "", "name": "Sprint 2011-49", "archived": true, "released": true, "releaseDate": "2011-12-12" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T12:44:38.000+0000", "created": "2011-08-22T08:12:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_network", "parity", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "14380", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84179", "key": "TIMOB-6832", "fields": { "summary": "iOS: Search for response headers is case sensitive", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:15.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": "Retrieving WWW-Authenticate header when the server status code is 401 returns null.\r\n\r\nUsecase: \r\n{code}\r\nvar url = 'http://tools.dynamicdrive.com/password/example/';\r\nvar request = Titanium.Network.createHTTPClient();\r\nrequest.open('GET',url);\r\n\r\n//Send\r\nrequest.send();\r\n\r\nrequest.onerror = function() {\r\n\tif (this.status == 401) {\r\n\t \tTi.API.info('Server: '+ this.getResponseHeader('Server'));\r\n\t \tTi.API.info('Connection: '+ this.getResponseHeader('Connection'));\r\n\t \tTi.API.info('WWW-Authenticate: '+this.getResponseHeader('WWW-Authenticate'));\r\n\t \tTi.API.info('Date: '+this.getResponseHeader('Date'));\r\n\t }\r\n}\r\n{code}\r\n\r\nWWW-Authenticate is needed to create a Digest Auth system.\r\n", "attachment": [], "flagged": false, "summary": "getResponseHeader('WWW-Authenticate') on 401 returns null", "creator": { "name": "mzkarim@gmail.com", "key": "mzkarim@gmail.com", "displayName": "Mutasim Karim", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mzkarim@gmail.com", "key": "mzkarim@gmail.com", "displayName": "Mutasim Karim", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 1.7.2\r\niPhone iOS 4.3", "comment": { "comments": [ { "id": "172404", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an Apple bug with HTTP header processing; for now, the response header is actually \"Www-Authenticate\". Until we can resolve this bug (which will require investigating the issue more completely and filing a report with Apple; this may affect more headers than just this one) you can use this workaround.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-11T16:20:57.000+0000", "updated": "2011-11-11T16:20:57.000+0000" }, { "id": "172407", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request #679.\r\n\r\nPlease let us know if you can keep your 401 response test up; I'll begin working on a reproduction outside of Titanium so that we can submit a response to Apple within short order.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-11T16:55:25.000+0000", "updated": "2011-11-11T16:55:25.000+0000" }, { "id": "172574", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could not reproduce in 1.8.0.1.d6c7cab, iPhone Sim 5.0 / iPad 1 5.0. Was able to previously reproduce; could have been a configuration issue on the client side. Not sure what's up with this one.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T13:11:59.000+0000", "updated": "2011-11-14T13:11:59.000+0000" }, { "id": "175703", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nOS: Mac OS X Lion\r\nSDK build: 1.8.0.1.RC1\r\nTitanium Studio, build: 1.0.7.201112080131\r\nDevice: iphone 4S (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-10T15:31:00.000+0000", "updated": "2011-12-10T15:31:00.000+0000" }, { "id": "175707", "author": { "name": "jamesdlow", "key": "jamesdlow", "displayName": "James David Low", "active": true, "timeZone": "Europe/London" }, "body": "Hi Wilson, I just wanted to check the confirmation of the closing of this bug. Because the original bug only affects iOS4, it worked fine on iOS5 already.", "updateAuthor": { "name": "jamesdlow", "key": "jamesdlow", "displayName": "James David Low", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-10T16:26:10.000+0000", "updated": "2011-12-10T16:26:10.000+0000" }, { "id": "175708", "author": { "name": "jamesdlow", "key": "jamesdlow", "displayName": "James David Low", "active": true, "timeZone": "Europe/London" }, "body": "Hi Wilson, I just wanted to check the confirmation of the closing of this bug. Because the original bug only affects iOS4, it worked fine on iOS5 already.", "updateAuthor": { "name": "jamesdlow", "key": "jamesdlow", "displayName": "James David Low", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-10T16:26:11.000+0000", "updated": "2011-12-10T16:26:11.000+0000" }, { "id": "175711", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "James -\r\n\r\nLooks like we didn't get a 4.x pass in the QE finalization, but I did test the bug and fix against iOS 4.3.5 during development and can confidently say that the issue is resolved. Please let us know if it's not or if the fix introduces issues with handling other headers or doesn't work for you so the bug can be reopened.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-10T18:56:42.000+0000", "updated": "2011-12-10T18:56:42.000+0000" }, { "id": "176059", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to remove merge tag.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-14T10:22:43.000+0000", "updated": "2011-12-14T10:22:43.000+0000" }, { "id": "178173", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue to add tags", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T12:24:02.000+0000", "updated": "2012-01-05T12:24:02.000+0000" }, { "id": "178177", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Added tag", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T12:44:38.000+0000", "updated": "2012-01-05T12:44:38.000+0000" }, { "id": "281101", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nPR link:\nhttps://github.com/appcelerator/titanium_mobile/pull/5011", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-25T08:19:58.000+0000", "updated": "2013-11-25T08:19:58.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }