cvs: pear /Structures_DataGrid TODO

From: Date: Tue, 24 Oct 2006 17:30:19 +0000
Subject: cvs: pear /Structures_DataGrid TODO
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42792@lists.php.net to get a copy of this message
olivierg Tue Oct 24 17:30:19 2006 UTC Modified files: /pear/Structures_DataGrid TODO Log: added note to TODO 4 and won't fix TODO 12 http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/TODO?r1=1.13&r2=1.14&diff_format=u Index: pear/Structures_DataGrid/TODO diff -u pear/Structures_DataGrid/TODO:1.13 pear/Structures_DataGrid/TODO:1.14 --- pear/Structures_DataGrid/TODO:1.13 Wed Oct 18 16:22:36 2006 +++ pear/Structures_DataGrid/TODO Tue Oct 24 17:30:18 2006 @@ -1,7 +1,7 @@ ################################################################################ # Structures_DataGrid TODO File # ################################################################################ -CSV file id: $Id: TODO,v 1.13 2006/10/18 16:22:36 olivierg Exp $ +CSV file id: $Id: TODO,v 1.14 2006/10/24 17:30:18 olivierg Exp $ Remarks about this file : - each entry should be separated by a "-" line @@ -56,7 +56,11 @@ - Are orderBy, direction and page HTTP arguments properly escaped before they are included in SQL queries ? - + +--> Answer: they are NOT (at least with DBDO). I just changed this for the +direction argument, but securing the orderBy value(s) is a bit more +challenging. The best way to fix this IMO is explained in TODO 2 + - Could we write security tests that try to perform SQL injection ? -------------------------------------------------------------------------------- @@ -116,7 +120,8 @@ (Idea/request from Gregor Gramlich) -------------------------------------------------------------------------------- -TODO 12 - Let renderers access Column objects directly (olivierg) - Priority: High +TODO 12 - Let renderers access Column objects directly (olivierg) + - Priority: High - WON'T FIX When refactoring the rendering layer, I thought Column objects were like Records objects: a waste of memory. So i tried to minimize their use, thinking we could @@ -135,6 +140,21 @@ I propose to remove the $_columnObjects property, and put Column objects references directly into $_columns +=> WON'T FIX, because : + +- It does work the way it is. It is not perfect and it will never be. +- I tried several times to "fix" this, and it is far from + trivial. Everytime it has raised several other quite complex issues. + +Conclusion: +With the current design a Rendering driver is not supposed to know +anything about Column objects, and this strict separation seems to be +useful as far as I can tell (separating layers usually helps when +handling complexity). + +However, on the user-side, there's no reason to minimize the use of +Column objects. The Renderers just do not know anything about them directly. + -------------------------------------------------------------------------------- TODO 13 - Add a FAQ to the documentation (wiesemann) - Priority: Medium - Done

« previous php.pear.cvs (#42792) next »