Ticket #256 (reopened defect)

Opened 11 months ago

Last modified 5 months ago

Total Logins/Group ratio/Times Nuked/Nukes bytes are not stored or shown

Reported by: erich Owned by: zubov
Priority: highest Milestone: 3.0
Component: SlaveManager Version: 3.0alpha
Severity: blocker Keywords: site user
Cc:

Description (last modified by chiggavelli) (diff)

After checking SITE USER <username> and reviewing <username>.XML I have concluded that some values aren't stored in the XML file for the user, and aren't shown in the command.

Username: drftpd               Created: Thu Mar 04 07:47:51 UTC 2010
Comment: Auto-Generated        Last seen: Sat Mar 06 14:54:30 UTC 2010
Total logins: 31               Idle time: 0
Ratio: 0.0                     Credits: 0B
Max logins: 0                  From same IP: 0
Max sim uploads: 0             Max sim downloads: 0
Group / Leech slots: 0   0     Group Min/Max Ratio: org.drftpd.commands.UserManagement@minratio/org.drftpd.commands.UserManagement@maxratio
Total uploaded: -734.0MB       Total downloaded: 0B
Times nuked: 1                 Bytes nuked: 0
Requests: org.drftpd.commands.request.Request@requests,-20 Filled requests: org.drftpd.commands.request.Request@requestsFilled
Requests this week: 0
Primary group: drftpd          Banned: false
Extra groups: [siteop]         Banned Until: Thu Mar 04 07:47:51 UTC 2010
IP masks: *@0:0:0:0:0:0:0:1
Weekly Allotment: 0
IRC Ident: 
Tagline: drftpd

Attachments

bug.txt (0.9 KB) - added by chiggavelli 5 months ago.

Change History

  Changed 11 months ago by erich

  • description modified (diff)

  Changed 6 months ago by cheet4h

there are only a few little mistakes in the ftp default theme (conf/themes/ftp/core.theme.default)

change the org.drftpd.commands.usermanagement.UserManagmentHandler.user line to

org.drftpd.commands.usermanagement.UserManagementHandler.user=Username: ${username,-20} Created: ${org.drftpd.commands.UserManagement@created}\n\ Comment: ${org.drftpd.commands.UserManagement@comment,-21} Last seen: ${org.drftpd.commands.UserManagement@lastseen}\n\ Total logins: ${org.drftpd.plugins.Statistics@logins,-16} Idle time: ${idletime}\n\ Ratio: ${org.drftpd.commands.UserManagement@ratio,-23} Credits: ${credits}\n\ Max logins: ${org.drftpd.commands.UserManagement@maxlogins,-18} From same IP: ${org.drftpd.commands.UserManagement@maxloginsip}\n\ Max sim uploads: ${org.drftpd.commands.UserManagement@maxsimup,-13} Max sim downloads: ${org.drftpd.commands.UserManagement@maxsimdn}\n\ Group / Leech slots: ${org.drftpd.commands.UserManagement@groupslots,-3} ${org.drftpd.commands.UserManagement@leechslots,-6}\ Group Min/Max Ratio: ${org.drftpd.commands.UserManagement@minratio}/${org.drftpd.commands.UserManagement@maxratio}\n\ Total uploaded: ${uploaded,-14} Total downloaded: ${downloaded}\n\ Times nuked: ${org.drftpd.commands.Nuke@nuked,-17} Bytes nuked: ${org.drftpd.commands.Nuke@nukedBytes}\n\ Primary group: ${group,-15} Banned: ${isbanned}\n\ Extra groups: ${groups,-16} Banned Until: ${org.drftpd.commands.UserManagement@ban_time}\n\ IP masks: ${ipmasks}\n\ Weekly Allotment: ${org.drftpd.commands.UserManagement@wkly_allotment}\n\ IRC Ident: ${org.drftpd.commands.UserManagement@ircident,-23}\n\ Tagline: ${org.drftpd.commands.UserManagement@tagline}

now site user will announce all values

  Changed 6 months ago by cheet4h

sorry little copy paste error

change to

org.drftpd.commands.usermanagement.UserManagementHandler.user=Username: ${username,-20} Created: ${org.drftpd.commands.UserManagement@created}\n\ Comment: ${org.drftpd.commands.UserManagement@comment,-21} Last seen: ${org.drftpd.commands.UserManagement@lastseen}\n\ Total logins: ${org.drftpd.plugins.stats.StatsManager@logins,-16} Idle time: ${idletime}\n\ Ratio: ${org.drftpd.commands.UserManagement@ratio,-23} Credits: ${credits}\n\ Max logins: ${org.drftpd.commands.UserManagement@maxlogins,-18} From same IP: ${org.drftpd.commands.UserManagement@maxloginsip}\n\ Max sim uploads: ${org.drftpd.commands.UserManagement@maxsimup,-13} Max sim downloads: ${org.drftpd.commands.UserManagement@maxsimdn}\n\ Group / Leech slots: ${org.drftpd.commands.UserManagement@groupslots,-3} ${org.drftpd.commands.UserManagement@leechslots,-6}\ Group Min/Max Ratio: ${org.drftpd.commands.UserManagement@minratio}/${org.drftpd.commands.UserManagement@maxratio}\n\ Total uploaded: ${uploaded,-14} Total downloaded: ${downloaded}\n\ Times nuked: ${org.drftpd.commands.nuke.Nuke@nuked,-17} Bytes nuked: ${org.drftpd.commands.nuke.Nuke@nukedBytes}\n\ Primary group: ${group,-15} Banned: ${isbanned}\n\ Extra groups: ${groups,-16} Banned Until: ${org.drftpd.commands.UserManagement@ban_time}\n\ IP masks: ${ipmasks}\n\ Weekly Allotment: ${org.drftpd.commands.UserManagement@wkly_allotment}\n\ IRC Ident: ${org.drftpd.commands.UserManagement@ircident,-23}\n\ Tagline: ${org.drftpd.commands.UserManagement@tagline}

follow-up: ↓ 5   Changed 5 months ago by scitz0

  • status changed from new to closed
  • resolution set to fixed

Fixed in [2031]

in reply to: ↑ 4   Changed 5 months ago by chiggavelli

  • status changed from closed to reopened
  • resolution fixed deleted

200- Username: drftpd Created: Thu Mar 04 07:47:51 UTC 2010

(11:44:39) [1] 200- Comment: Auto-Generated Last seen: Sat Mar 06 14:54:30 UTC 2010 (11:44:39) [1] 200- Total logins: 31 Idle time: 0 (11:44:39) [1] 200- Ratio: 0.0 Credits: 0B (11:44:39) [1] 200- Max logins: 0 From same IP: 0 (11:44:39) [1] 200- Max sim uploads: 0 Max sim downloads: 0 (11:44:39) [1] 200- Group / Leech slots: 0 0 Group Min/Max Ratio: org.drftpd.commands.UserManagement@minratio/org.drftpd.commands.UserManagement@maxratio (11:44:39) [1] 200- Total uploaded: -734.0MB Total downloaded: 0B (11:44:39) [1] 200- Times nuked: 1 Bytes nuked: 0 (11:44:39) [1] 200- Requests: org.drftpd.commands.request.Request@requests,-20 Filled requests: org.drftpd.commands.request.Request@requestsFilled (11:44:39) [1] 200- Requests this week: 0 (11:44:39) [1] 200- Primary group: drftpd Banned: false (11:44:39) [1] 200- Extra groups: [siteop] Banned Until: Thu Mar 04 07:47:51 UTC 2010 (11:44:39) [1] 200- IP masks: *@0:0:0:0:0:0:0:1 (11:44:39) [1] 200- Weekly Allotment: 0 (11:44:39) [1] 200- IRC Ident: (11:44:39) [1] 200- Tagline: drftpd (11:44:39) [1] 200 Command okay

Changed 5 months ago by chiggavelli

follow-up: ↓ 7   Changed 5 months ago by chiggavelli

  • description modified (diff)

in reply to: ↑ 6   Changed 5 months ago by chiggavelli

Replying to chiggavelli: sorry for copy paste, but i see still some bad value in request. Requests: org.drftpd.commands.request.Request@requests,-20 Filled requests: org.drftpd.commands.request.Request@requestsFilled

Group Min/Max Ratio: ${org.drftpd.commands.UserManagement@minratio -1}/${org.drftpd.commands.UserManagement@maxratio -3}\n\

andi changed this line now its shows some numbers but im not sure is it correct. Group Min/Max Ratio: 3.0/3.0

Note: See TracTickets for help on using tickets.