[Agavi-Tickets] [Agavi] #1412: Refactor HTTP request body handling to avoid disk writes

4 views
Skip to first unread message

Agavi

unread,
Aug 15, 2011, 10:42:49 AM8/15/11
to tic...@lists.agavi.org
#1412: Refactor HTTP request body handling to avoid disk writes
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------
Writes to temp files at the moment, but thanks to recent improvements
(#1287), we can now pass the raw file contents to an
{{{AgaviUploadedFile}}} and users can directly fetch those from memory
using {{{getContents()}}}.

--
Ticket URL: <http://trac.agavi.org/ticket/1412>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5

_______________________________________________
Agavi Tickets Mailing List
tic...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/tickets

Agavi

unread,
Aug 18, 2011, 11:45:01 AM8/18/11
to tic...@lists.agavi.org
#1412: Refactor HTTP request body handling to avoid disk writes
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by david):

(In [4808]) Only set true as a default for is_uploaded_file field when
fixing up the _FILES array in web request data holders, refs #1287 and
#1412

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:1>

Agavi

unread,
Aug 18, 2011, 11:45:58 AM8/18/11
to tic...@lists.agavi.org
#1412: Refactor HTTP request body handling to avoid disk writes
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------
Changes (by david):

* status: new => closed
* resolution: => fixed


Comment:

(In [4809]) Refactor HTTP request body handling to avoid disk writes,
closes #1412

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:2>

Agavi

unread,
Nov 9, 2011, 5:33:24 AM11/9/11
to tic...@lists.agavi.org
#1412: Refactor HTTP request body handling to avoid disk writes
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: reopened

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution:
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------
Changes (by david):

* status: closed => reopened
* resolution: fixed =>


Comment:

The situation is still the same for console requests, must fix!

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:3>

Agavi

unread,
Nov 9, 2011, 5:34:35 AM11/9/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: reopened

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution:
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:4>

Agavi

unread,
Nov 9, 2011, 7:24:12 AM11/9/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------
Changes (by david):

* status: reopened => closed
* resolution: => fixed


Comment:

(In [4840]) Eliminate use of temporary file for STDIN processing in
AgaviConsoleRequest, closes #1412 again (still not great because it now
reads everything into memory, but that is something #1436 will address).

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:5>

Agavi

unread,
Nov 9, 2011, 7:33:40 AM11/9/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4841]) comment to explain why stream_set_blocking() is used in
AgaviConsoleRequest, refs #1412, #1437 and #480

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:6>

Agavi

unread,
Nov 9, 2011, 9:44:50 AM11/9/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4844]) get rid of a line I forgot to remove in [4840], refs #1412

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:7>

Agavi

unread,
Nov 15, 2011, 8:39:55 AM11/15/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4864]) Automatically read from STDIN in AgaviConsoleRequest, closes
#1437 and refs #1436 and #1412

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:8>

Agavi

unread,
Nov 16, 2011, 2:33:55 AM11/16/11
to tic...@lists.agavi.org
#1412: Refactor request input handling to avoid disk writes

---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: normal | Milestone: 1.1
Component: request | Version:
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4869]) remove use of tempfile() in AgaviUploadedFile, refs #1412,
#1287 and #1449

--
Ticket URL: <http://trac.agavi.org/ticket/1412#comment:9>

Reply all
Reply to author
Forward
0 new messages