{ "id": "120724", "key": "AC-2115", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-12-23T01:10:13.000+0000", "created": "2013-10-02T17:39:25.000+0000", "labels": [ "android", "httpclient" ], "versions": [], "issuelinks": [ { "id": "33972", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "121296", "key": "TIMOB-15510", "fields": { "summary": "Android: HTTPClient missing boundary when Content-Type is set", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "33973", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "121339", "key": "TIMOB-15514", "fields": { "summary": "HTTPClient: Disparity between All Platforms for Handling Content-Type Header", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:05.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": "I have created a Gist to demonstrate this issue:\r\n\r\nhttps://gist.github.com/vlucas/6796953\r\n\r\nThe end result is that the MIME envelope that Android sends cannot be parsed or decoded by PHP, while the same code run on iPhone can be decoded by PHP and works as expected.", "attachment": [], "flagged": false, "summary": "Android: HttpClient file uploads result in different MIME encoding than iOS", "creator": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "environment": "Mac OSX 10.8", "comment": { "comments": [ { "id": "274390", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Vance Lucas,\n\nPlease check your by removing {code} c.setRequestHeader('Content-Type', 'multipart/form-data');{code}\n\nIt’s working for me and I hope it’s solved your problem. \n\nThanks\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-10-09T16:45:08.000+0000", "updated": "2013-10-09T16:45:08.000+0000" }, { "id": "274428", "author": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "body": "That does work for me actually (Thanks!), but I still think this issue itself is a bug since it is the correct content-type to send, and it works flawlessly on iOS. It is a surprising behavior, and very unexpected on Android, which is what led me to believe it was a bug in the Android implemenation.", "updateAuthor": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-09T19:03:22.000+0000", "updated": "2013-10-09T19:03:22.000+0000" }, { "id": "274674", "author": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "body": "This is very clearly reproducible! It only doesn't happen if you don't send any Content-Type header at all. This is a difference from how it is handled on iOS with the same exact code, and WILL confuse users (like me). PLEASE reconsider actually fixing this to work the same on both platforms as it should.", "updateAuthor": { "name": "vlucas", "key": "vlucas", "displayName": "Vance Lucas", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-10T19:34:15.000+0000", "updated": "2013-10-10T19:34:15.000+0000" }, { "id": "285600", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket as we can reproduce this issue with Android platform.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T01:05:05.000+0000", "updated": "2013-12-23T01:05:05.000+0000" }, { "id": "285601", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for reporting this issue. Resolving this ticket as a duplicate as this issue is already covered by existing tickets (TIMOB-15510 and TIMOB-15514). Please watch these two tickets for further updates.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T01:10:01.000+0000", "updated": "2013-12-23T01:10:01.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }