{ "id": "172581", "key": "TIMOB-26534", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-11-08T23:00:13.000+0000", "created": "2018-11-08T19:23:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "cache", "http" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-09T17:30:40.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nTitanium's custom {{TiResponseCache.java}} class currently caches all HTTP responses and ignores the HTTP method. Meaning that it'll cache \"POST\", \"PUT\", \"DELET\", etc. which is a problem when using REST web APIs.\r\n\r\nIt should be changed to only cache HTTP \"GET\" responses.\r\n_(Note: iOS does not cache \"HEAD\" responses.)_\r\n\r\n*Note:*\r\nThis is not an issue with Titanium's {{Ti.Network.HTTPClient}} on Android since it's currently set up to *never* cache responses. The only Titanium JavaScript API which does HTTP response caching is when you load images via URLs, which are \"GET\" requests.\r\n\r\nThe above is only an issue for app's which do HTTP requests natively in Java, such as via a 3rd party native library.", "attachment": [], "flagged": false, "summary": "Android: Modify native HTTP handling to only cache \"GET\" responses", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1093, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T23:35:52.006Z", "endDate": "2018-11-18T23:35:00.000Z", "completeDate": "2018-11-19T05:30:34.338Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443438", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10447\r\nPR (7.5.x): https://github.com/appcelerator/titanium_mobile/pull/10448", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-08T21:17:49.000+0000", "updated": "2018-11-08T21:17:49.000+0000" }, { "id": "443440", "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": "2018-11-08T22:17:36.000+0000", "updated": "2018-11-08T22:17:36.000+0000" }, { "id": "443445", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR's Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-08T23:00:08.000+0000", "updated": "2018-11-08T23:00:08.000+0000" }, { "id": "443459", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.5.0.v20181108182512.\r\nClosing.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-09T17:30:35.000+0000", "updated": "2018-11-09T17:30:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }