PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #407

Incorrect database structure creation within Perm_DB_Complex.sql

Details

Submitted2003-12-11 16:55 UTC
Fromalex at burgiss dot com
Assignedlsmith
StatusClosed
PackageLiveUser
PHP Version4.3.4
OSredhat 9
Roadmaps(Not assigned)

Comments

[2003-12-11 16:55 UTC] alex at burgiss dot com

Description:
------------
within the sql script Perm_DB_Complex.sql, the columns owner_perm_user_id and owner_group_id within the table liveuser_groups is incorrectly set to NOT NULL as owner_perm_user_id and owner_group_id can be null according to the code in addGroup() in Perms/Container/DB_Complex.php

i've emailed the mailing list about this a while ago (Oct 23rd), and Lukas Smith said he would take a look at the schema and correct this, although it appears to still be there in the latest cvs..

Reproduce code:
---------------
any call to addGroups() as db_complex using default null value for owner_perm_user_id and owner_group_id

Expected result:
----------------
no error msg

Actual result:
--------------
some database error msg complaining about nulls not being allowed in a NOT NULL field
(sorry, I don't have the specific msg)