{ "id": "168938", "key": "AC-5082", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-08-18T21:50:27.000+0000", "created": "2017-07-13T11:10:14.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-18T21:50:27.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When using getDirectoryListing() and there are no file in the directory in Android return an empty array and in IOS return null.\r\n\r\nWhen using getResponseHeader(\"name\") and the header is not present in Android return a empty string and in IOS return null.\r\n\r\nIt does not make sense to have a generic api if the answers are not homogeneous across platforms.", "attachment": [], "flagged": false, "summary": "Ti.Filesystem.File.getDirectoryListing() and Titanium.Network.HTTPClient.getResponseHeader( name ) return unexpected values in different platforms", "creator": { "name": "jogios", "key": "jogios", "displayName": "Jose Enrique", "active": true, "timeZone": "Europe/Madrid" }, "subtasks": [], "reporter": { "name": "jogios", "key": "jogios", "displayName": "Jose Enrique", "active": true, "timeZone": "Europe/Madrid" }, "environment": "macOS Sierra 10.12.4\r\nsdk 5.5.1", "comment": { "comments": [ { "id": "425219", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a sample test code for both case. We will test it for ourself before moving it to production. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-08-01T22:48:13.000+0000", "updated": "2017-08-01T22:48:13.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }