PacketFence - BTS - PacketFence
View Issue Details
0001310PacketFencecorepublic2011-10-15 02:102012-10-19 13:34
psnizek 
fgaudreault 
normalminoralways
resolvedno change required 
3.0.1 
 
0001310: adding a node before adding a person causes key constraint failed without proper error message in the UI
it's correct that adding a node before a person should cause an error. However, the error should be displayed in the WebUI which is not the case. Instead, the WebUI displays 'Added Record' (without dispaying the mac address) which suggests everything's OK. In packetfence.log the below 'key constraint failed' is logged leaving the user guessing what might be wrong.

Despite of what the pf pdf documentation might or might not mention I believe this could be handled much more user friendly.
Oct 15 07:51:56 pfcmd(4340) WARN: database query failed with: Cannot add or update a child row: a foreign key constraint fails (`pf`.`node`, CONSTRAINT `0_57` FOREIGN KEY (`pid`) REFERENCES `person` (`pid`) ON DELETE CASCADE ON UPDATE CASCADE). (errno: 1452), will try again (pf::db::db_query_execute)
No tags attached.
duplicate of 0000840closed obilodeau pfcmd node edit (web node edit) fails silently 
Issue History
2011-10-15 02:10psnizekNew Issue
2011-10-17 10:01obilodeauRelationship addedduplicate of 0000840
2011-10-17 10:05obilodeauNote Added: 0002360
2012-10-19 13:34fgaudreaultNote Added: 0003168
2012-10-19 13:34fgaudreaultStatusnew => resolved
2012-10-19 13:34fgaudreaultResolutionopen => no change required
2012-10-19 13:34fgaudreaultAssigned To => fgaudreault

Notes
(0002360)
obilodeau   
2011-10-17 10:05   
Duplicate, please subscribe to 0000840 to follow status.

This problem is deep in pf's db layer architecture. Proper fix would mean radical changes.
(0003168)
fgaudreault   
2012-10-19 13:34   
Dupe. See the ticket for info.