[Agavi-Tickets] [Agavi] #1419: Allow validators to export to a different source

0 views
Skip to first unread message

Agavi

unread,
Aug 23, 2011, 6:09:15 AM8/23/11
to tic...@lists.agavi.org
#1419: Allow validators to export to a different source
---------------------------------+------------------------------------------
Reporter: niklas@… | Owner: dominik
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0.7
Component: validation | Version: 1.0.6
Severity: normal | Keywords:
Has_patch: 0 |
---------------------------------+------------------------------------------
I would like to be able to do something like
{{{
<validator class="MyCustomFileSomethingValidator">
<argument>post_file</argument>
<ae:parameter name="export">parsed_array</ae:parameter>
</validator>
}}}
{{{
if ($this->hasParameter('export')) {
$this->export($parsed_array, $this->getParameter('export'),
AgaviRequestDataHolder::SOURCE_PARAMETERS);
}
}}}
Because when I have parsed the input file, it isn't a file anymore, so
fetching it via $rd->getFile() seems wrong. :)

--
Ticket URL: <http://trac.agavi.org/ticket/1419>
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 23, 2011, 3:40:25 PM8/23/11
to tic...@lists.agavi.org
#1419: Allow validators to export to a different source
---------------------------------+------------------------------------------
Reporter: niklas@… | Owner: david

Type: enhancement | Status: new
Priority: normal | Milestone: 1.0.7
Component: validation | Version: 1.0.6
Severity: normal | Keywords:
Has_patch: 0 |
---------------------------------+------------------------------------------
Changes (by david):

* owner: dominik => david


Comment:

I've had the first attempt at input types implemented exactly that way.
The problem is that the export might overwrite existing parameters, which
could easily lead to security issues.

I will (hopefully before my holiday on Friday) prototype two alternative
approaches for input type handling; one where the transformation is done
before, and another where the transformation is done after validation.
Both have their up- and downsides.

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

Agavi

unread,
Aug 23, 2011, 3:40:42 PM8/23/11
to tic...@lists.agavi.org
#1419: Allow validators to export to a different source
---------------------------------+------------------------------------------
Reporter: niklas@… | Owner: david
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.1
Component: validation | Version:
Severity: normal | Keywords:
Has_patch: 0 |
---------------------------------+------------------------------------------
Changes (by david):

* status: new => assigned
* version: 1.0.6 =>
* milestone: 1.0.7 => 1.1


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

Agavi

unread,
Nov 16, 2011, 2:44:55 AM11/16/11
to tic...@lists.agavi.org
#1419: Allow validators to export to a different source
---------------------------------+------------------------------------------
Reporter: niklas@… | Owner: david
Type: enhancement | Status: closed

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

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


Comment:

(In [4871]) Allow validators to export to a different source, closes #1419

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

Reply all
Reply to author
Forward
0 new messages