Re: Strange account activation problem

From: Date: Sat, 08 Aug 2009 12:23:31 +0000
Subject: Re: Strange account activation problem
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-52591@lists.php.net to get a copy of this message
I had a brief look at pearweb code, there are some obvious problems. First, confirmation of account on bug page is checked via a flag in bugdb table, while it is checked via absence of record in bug_account_request table on resend-request page. > > Next, the biggest problem is related to pearweb using The Most Popular Open > Source Database: My$QL doesn't allow having fulltext index on a > transactional table, so bugdb table has no constraints and / or foreign > keys. Therefore confirmRequest() method is extremely fragile, with a large > amount of updates outside a transaction block and without any constraint > checking. > > Also there is that strange PEAR_Bug_Accountrequest::cleanOldRequests() > method that probably does not work as expected, since the unconfirmed bug > linked above is still here. > > Oh god my eyes. It does work in the constructor. *shivver* I'm a bit scared of charging around and refactoring that because its huge, and there is no test coverage. Alexey, I don't suppose you'd mind generating a bunch of small (obvious) test cases which break it / adding bug reports for them/throwing them into svn? I'll start doing the same here.

« previous php.pear.dev (#52591) next »