PDA

View Full Version : the credits disappear.


kraxdaz
10-26-2003, 04:01 AM
ioFTPD Version: ioFTPD-beta5-2-3r

operating system: Windows XP SP1 FR

services affected: ftp

how-to reproduce bug: up a file, look at your credit and finally delete the file and look at your credit. The credit disappeared

Description:
when a ppl upload a file of 50mb he get 150mb of credits
but when i delete the 50mb file his credit are deleted too
only the credit make by the 50mb file




Transferred 1 file totaling 48,828 KB
site myinfo
200-.------------------------------------------------------------------------.
200-| UserName........: test Flags.............: VUDE |
200-| Group...........: Admin Credits...........: 143 MB |
200-| Added By........: kraxdaz Ratio.............: 1:3 |
200-| Added On........: 10-26-2003 09:21 FTP Logins........: 1 |
200-| Max Sim Uploads.: Telnet Logins.....: 0 |
200-| Max Sim Dnloads.: HTTP Logins.......: 1 |
200-| Last login......: 10-26-2003 09:50 Upload cap........: 0 |
200-| Login count.....: 7 Download cap......: 0 |
200-| Homepath........: |
200-| VFSfile.........: |
200-| Tagline.........: |
200-|================================================= =======================|
200-| DayUp...........: 145 MB DayDn.............: 7 MB |
200-| WkUp............: 145 MB WkDn..............: 7 MB |
200-| MonthUp.........: 145 MB MonthDn...........: 7 MB |
200-| AllUp...........: 145 MB AllDn.............: 7 MB |
200-|================================================= =======================|
200-| Ip1...: *@* Ip2...: |
200-| Ip3...: Ip4...: |
200-| Ip5...: Ip6...: |
200-| Ip7...: Ip8...: |
200-'------------------------------------------------------------------------'
200 Command successful.




Deleted 1 File totaling 48,828 KB in 00:01.
site myinfo
200-.------------------------------------------------------------------------.
200-| UserName........: test Flags.............: VUDE |
200-| Group...........: Admin Credits...........: 0 MB |
200-| Added By........: kraxdaz Ratio.............: 1:3 |
200-| Added On........: 10-26-2003 09:21 FTP Logins........: 1 |
200-| Max Sim Uploads.: Telnet Logins.....: 0 |
200-| Max Sim Dnloads.: HTTP Logins.......: 1 |
200-| Last login......: 10-26-2003 09:50 Upload cap........: 0 |
200-| Login count.....: 7 Download cap......: 0 |
200-| Homepath........: |
200-| VFSfile.........: |
200-| Tagline.........: |
200-|================================================= =======================|
200-| DayUp...........: 145 MB DayDn.............: 7 MB |
200-| WkUp............: 145 MB WkDn..............: 7 MB |
200-| MonthUp.........: 145 MB MonthDn...........: 7 MB |
200-| AllUp...........: 145 MB AllDn.............: 7 MB |
200-|================================================= =======================|
200-| Ip1...: *@* Ip2...: |
200-| Ip3...: Ip4...: |
200-| Ip5...: Ip6...: |
200-| Ip7...: Ip8...: |
200-'------------------------------------------------------------------------'
200 Command successful.

ADDiCT
10-26-2003, 04:03 AM
don't delete the files, wipe them :)

Mouton
10-26-2003, 11:59 AM
ioftpd.ini:

###
# Command specific rules
#
Modify_Stats_On_Delete = False

ADDiCT
10-26-2003, 12:01 PM
credits <-> transferstats ?

Mouton
10-26-2003, 12:17 PM
what ?

ADDiCT
10-26-2003, 12:18 PM
does Modify_Stats_On_Delete modify credits as well? or only the stats?

kraxdaz
10-27-2003, 02:32 AM
my value is already on false but credits are modified

Modify_Stats_On_Delete = False

tC!
10-27-2003, 05:32 AM
well, that 's the way it is meant to be i think

credits != stats :)

Mouton
10-27-2003, 10:00 AM
stats = only stats, not credits too.

kraxdaz
10-27-2003, 11:45 AM
D1 can you add this opption in your todo list?

Modify_Credits_On_Delete = False

that would be great :)

thx in advance

Unique
10-27-2003, 12:16 PM
Maybe it sounds ok, but users would be able to upload 1 gb, del it and reup and get double credz :P
Maybe it could be made that only admin can delete without deleting credz.
Or just use site wipe like we all do for dirs.. (which doesnt function if a user only upped files without a new dir....)

kraxdaz
10-27-2003, 12:20 PM
yes you are right