{ "id": "62013", "key": "TIMOB-1381", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:01.000+0000", "created": "2011-04-15T02:50:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "buffer", "feature", "xhr" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:01.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": "{html}

It's currently not possible to download a file larger than an\napplication's remaining memory. Add a tiapp.xml configurable\nproperty to set the size in bytes when incoming data should be\nmoved to a file vs stored in memory.

\n
\n<property name=\"ti.android.httpclient.buffer.to.file.threshold\" type=\"int\">1000000</property>\n
\n

This property should be namespaced by platform to allow for\ndifferent limits on different platforms.

\n

When this limit is reached open a temporary file and flush the\nexisting data and append any additional data to the file instead of\nin memory.

{html}", "attachment": [], "flagged": false, "summary": "Android: Buffer Large XHR Downloads", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125512", "author": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Any word on this yet?

{html}", "updateAuthor": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:53.000+0000", "updated": "2011-04-15T02:50:53.000+0000" }, { "id": "125513", "author": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Can we get this Bumped I've got an App Waiting on it. I don't\nwant it to fall over later when people release larger files for\ndownload.

{html}", "updateAuthor": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:54.000+0000", "updated": "2011-04-15T02:50:54.000+0000" }, { "id": "125514", "author": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Thinking about this, Perhaps this could be a download function\nas well, Give the HTTPClient a link and a path to save to. Direct\nDownload to a file.

{html}", "updateAuthor": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:54.000+0000", "updated": "2011-04-15T02:50:54.000+0000" }, { "id": "125515", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've bumped the priority we'll try and get it worked in. There\nis still a lot going on for 1.5.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:54.000+0000", "updated": "2011-04-15T02:50:54.000+0000" }, { "id": "125516", "author": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Thanks,
\nA dedicated file Download HTTP function would be very useful for a\nmyriad of apps.
\nI'm hoping our client will approve the app with streaming\nfunctionality only for now, And we'll add download after 1.5

{html}", "updateAuthor": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:54.000+0000", "updated": "2011-04-15T02:50:54.000+0000" }, { "id": "125517", "author": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This continues to be a very high priority for us as well.

{html}", "updateAuthor": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:54.000+0000", "updated": "2011-04-15T02:50:54.000+0000" }, { "id": "125518", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

See also the KitchenSink failure that this causes: #1297

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:55.000+0000", "updated": "2011-04-15T02:50:55.000+0000" }, { "id": "125519", "author": { "name": "kaipradel", "key": "kaipradel", "displayName": "Kai Pradel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bump - this is also a huge issue for our next iPad release. This\nissue seems to affect all platforms.

{html}", "updateAuthor": { "name": "kaipradel", "key": "kaipradel", "displayName": "Kai Pradel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:55.000+0000", "updated": "2011-04-15T02:50:55.000+0000" }, { "id": "125520", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Adding an iOS tag as it's an issue on both platforms. The\nability to tell an xhr request to save to a local file would be\ngreat.

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:56.000+0000", "updated": "2011-04-15T02:50:56.000+0000" }, { "id": "125521", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Damien, we maintain separate tickets for each platform. Please\nfeel free to open a ticket for iOS and reference this ticket.\nAssign that ticket to Ralf please.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:56.000+0000", "updated": "2011-04-15T02:50:56.000+0000" }, { "id": "125522", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sorry about that. New ticket created at \nhttps://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:56.000+0000", "updated": "2011-04-15T02:50:56.000+0000" }, { "id": "125523", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2fa41c0ea6a442fbe6708590be130ed7f42e67b9])\nfixed a redirect issue when some http servers don't correctly\nescape the redirect url. implemented buffering for httpclient (512k\nis the default, can be controlled w/\nti.android.httpclient.maxbuffersize property). added a new drillbit\ntest suite for httpclient, fixed headers/formatting in a few files.\n[#1381 state:fixed-in-qa] [#2156\nstate:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/2fa41c0ea6a4...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:56.000+0000", "updated": "2011-04-15T02:50:56.000+0000" }, { "id": "125524", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.5.0.3ee6a97

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:57.000+0000", "updated": "2011-04-15T02:50:57.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }