Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 31st October 2008, 14:16
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Haha, good catch. I was just testing different things in that file. I have removed the validators in mail_user.tform.php. And I tried to set it to a double. As a double it prevents the overflow. But we need to be able to have a FLOAT. But there isn't that option. It needs to be added....
Reply With Quote
Sponsored Links
  #22  
Old 31st October 2008, 14:23
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

I found the problem that overflows the INT. it's in the tform.inc.php file, but it's line 517. If you remove the intval there then the record won't overflow. It'll just be capped at just shy of the max. I'm going to submit this patch to prevent the overflow.
Reply With Quote
  #23  
Old 31st October 2008, 14:28
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Another bug bites the dust. So, the current issue with the mail module is that the quota is capped at a max of 2GB per account. This can't be fixed until tforms.inc.php has the feature for FLOAT added to it.
Reply With Quote
  #24  
Old 31st October 2008, 15:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

But a float does not mean that its a integer or bigint, so to test if its a float is not sufficient here in my opinion.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #25  
Old 31st October 2008, 15:57
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
 
Default

Good point. Then I would agree it should be a BIGINT, rather than a FLOAT that gets added.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maildrop Postfixadmin create mail directories tecstream HOWTO-Related Questions 9 25th July 2008 13:17
Upgrade question for "Virtual Users And Domains With Postfix, Courier And MySQL" emresumengen HOWTO-Related Questions 3 1st December 2006 16:33
Virtual Users with Postfix + Maildrop immobilia HOWTO-Related Questions 2 19th July 2006 17:59
postfix+mysql and maildrop filter problem osanet Installation/Configuration 1 2nd June 2006 12:50
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 21:11


All times are GMT +2. The time now is 01:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.