Indefero

Issue 68: Pluf Exception on a project page

Reported by Nicolas Lassalle, Nov 25, 2008

I had an exception when updating to 0.4 :
PlufErrorHandlerException making GET request to /p/zenadmin/
8 : Trying to get property of non-object

PHP: ******/dev/indefero/src/IDF/Project.php, line 242
URI: GET /p/zenadmin/

After a debug session I've found that I had too many lines in the 
permission table ; the permissions project-member and project-owner 
where inserted 4 times each...
After cleaning up the permission table content, the error 
disapeared.

Perhaps I've had bad luck with migrations that could have inserted 
too many time the lines into the table ?
I think I could have launched too many times the migration script...

Comment 1 by Loïc d'Anterroches, Nov 25, 2008

No, this is a bug. I will check as it is most likely a bug from the 
Pluf framework.
Labels: Priority:High Priority:Medium

Comment 2 by Loïc d'Anterroches, Nov 25, 2008

Looking again at the code, the only place we create those 
permissions are in the installation step (-i flag when using 
migrate.php), not even in the migration.

This looks like an error during the upgrade procedure, something 
like installing over instead of migrating (but the system should 
have raised an exeception, this is why I am surprised).

Anyway, I am closing this bug. The good side effect is that I have 
done a little bit of cleaning while looking at those permission 
stuff, see commit 6bee793704e44.

Thanks!
Status: Fixed
Owner: loic

Created: 4 years 5 months ago by Nicolas Lassalle

Updated: 4 years 5 months ago

Status: Fixed

Owner: Loïc d'Anterroches

Followed by: 2 persons

Labels:
Type:Defect
Priority:High