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
  #1  
Old 19th June 2012, 14:11
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 922
Thanks: 16
Thanked 258 Times in 206 Posts
Default Quota settings in remoting lib

Once again something I do not know if it is a bug or just some supidness of mine

The commands sent via remoting are validated against the tform files of the interface.
Quota entries are put in as MB in the interface forms, then validated against MB (max 7 numbers length) and after this converted to bytes (*1024*1024) and stored in the database.

If you use the remoting lib to store quota, is this conversion done anyway? I didn't think so as it is in the interface xxxx_edit.php file.
You cannot send the quota as bytes through the remoting either, as 7 numbers are too short (10MB * 1024 * 1024 = 8 numbers).
This should apply to mail users (mailbox quota), ftp users (quota), web domains (quota and traffic) I think, but correct me if I am wrong or miss something.
__________________
Marius Cramer

pixcept KG
Reply With Quote
Sponsored Links
  #2  
Old 20th June 2012, 21:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,055 Posts
Default

Looks like a bug, the quota should be recalculated by the remote api as well. Please make a bugreport so we can fix that for 3.0.5.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
dovecot start problem veneficus Installation/Configuration 3 10th April 2012 17:39
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 16:36
Traffic Quota Problem Remoting Framework 4.2.1 kextra1 Tips/Tricks/Mods 1 7th January 2009 02:38
chgrp error new user DKA General 15 28th July 2008 17:45
Problems with copy & paste dspuser Server Operation 3 23rd May 2006 17:21


All times are GMT +2. The time now is 05:36.


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