Oh, my!

I found a bug on CakePHP. Not only that, I tracked down the bug and found
a fix for it (which is probably not right, because of my lack of knowledge
of CakePHP internals). I was going to report it here but I said to myself:
"do it the right way", so I went to the Trac, registered myself, and
started writing a nice and complete bug report (patch attached).

When I finished writting, I hit submit button and voila!


Forbidden

TICKET_CREATE privileges are required to perform this operation

TracGuide — The Trac User and Administration Guide


Nice, all my nice bug report is lost :(

Is there any good behind not letting a "regular" CakePHP user to report a
bug??? I really don't get it.

Anyway, here is the short and ugly version of my bug report:

The problem is Controller::generateFieldName() is broken in 1.1.14.4797
for ENUM columns (at least for MySQL). The problem is because of a change
in the latest version, on DboMysql::column(). Here is the patch (it's just
a revert of 2 lines to the 1.1.13.xxx version):

diff -rN -u old-metro2/admin/cake/libs/model/dbo/dbo_mysql.php 
new-metro2/admin/cake/libs/model/dbo/dbo_mysql.php
--- old-metro2/admin/cake/libs/model/dbo/dbo_mysql.php  2007-04-23 
17:44:27.529638359 -0300
+++ new-metro2/admin/cake/libs/model/dbo/dbo_mysql.php  2007-04-23 
17:44:28.429689650 -0300
@@ -357,8 +357,8 @@
                }
 
                $col = r(')', '', $real);
-               $limit = $this->length($real);
-               @list($col) = explode('(', $col);
+               $limit = null;
+               @list($col, $limit) = explode('(', $col);
 
                if (in_array($col, array('date', 'time', 'datetime', 
'timestamp'))) {
                        return $col;

I hope there is any CakePHP developer here. It really breaks some things
 (like scaffolding).

PS: please, Please, PLEASE! Consider opening the trac ticket reporting
    for any trac user.

-- 
LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation
------------------------------------------------------------------------
E-Mail / JID:     [EMAIL PROTECTED]
GPG Fingerprint:  D9E1 4545 0F4B 7928 E82C  375D 4B02 0FE0 B08B 4FB2 
GPG Key:          gpg --keyserver pks.lugmen.org.ar --recv-keys B08B4FB2
------------------------------------------------------------------------
Le pedí que me enseñe a usar el mouse
Pero solo quiere hablarme del Bauhaus
Le pregunté si era chorra o rockera
Me dijo "Gertrude Stein era re-tortillera"
Me hizo mucho mal la cumbiera intelectual


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to