Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 12:18 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 28, 2010 4:23 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
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 = '';
[/code]
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: 1259
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: 1964
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 [url=https://opmantek.com]Opmantek[/url].
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: 1259
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. [url=http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html]Strict mode[/url] 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  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group