Open-AudIT

What's on your network?
It is currently Sat Jan 20, 2018 10:55 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 28, 2010 4:23 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1226
I've installed Alpha2 and run in to some issues with data insert. I'm getting "data truncated" and "incorrect integer value" errors when OpenAudit tries insert audit data. I think this is because my MySQL config has strict-mode set to something other than '' which means 'traditional MySQL-mode'. The OpenAudit insert code is inserting blank values ('') for integers and enums and expecting MySQL to convert to zero.

I'm not familiar enough with the CodeIgniter framework to figure out where to insert a
Code:
SET sql_mode = '';

call for the OpenAudit database session. I can change my MySQL config later to see if this is actually the problem.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 28, 2010 4:27 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1226
Also database related. The system.serial field is too short (50) to hold a VMware machine's serial number.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 29, 2010 9:45 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1933
Location: Brisbane, Australia
I've not heard of the data being truncated.
Any help you can provide on thiat would be most appreciated.

Have increased the serial and man_serial fields to 200 characters in length.

_________________
Support and Development hours available from Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 30, 2010 1:25 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1226
The data truncated error came from saving '' to a "yes,no" enum field. When MySQL is in strict mode you can't store '' or NULL in an enum. The incorrect integer value error comes from trying to store '' in an integer. Strict mode makes you do more work but is more portable. You can set a sesson variable to put OpenAudit's database session in traditional mode so a default strict server mode doesn't cause these problems. I don't know where it goes in the CodeIgniter framework.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group