User Tools

Site Tools


mystic_knownbugs

This is an old revision of the document!


Known Mystic Bugs

This page has been created to track known bugs in the current version of Mystic BBS. At this time that is version 1.12 Alpha 43 released in March 2019.

Incorrect data deletion since 1 Jan 2020

There is a known bug in Mystic 1.12 A43 that has appeared since 1 Jan 2020.

The bug covers two MUTIL functions PurgeUserBase and PurgeMessageBases and relates to the way Mystic incorrectly calculates dates when looking to purge inactive users or messages by age.

The bug sees Mystic assuming any year that is less than 20 (e.g. 2019) as being part of the 21st century (e.g. 2019) while years that are 20 or greater are seen to be part of the 20th century (e.g. 1920).

This means that if either function is called, data is being incorrectly purged from the BBS.

In the case of PurgeUserBase if a user has a last logged in date of 2020 in their data, Mystic looks at this as 1920 and incorrectly purges users when a rule such as the example below from mutil.ini is applied.

[PurgeUserBase]
	; Mark users for deletion that haven't called in days.
	; This value cannot be less than 7
	days = 180

In the case of PurgeMessageBases if a message base is set up to retain messages for a number of days (e.g. 365) then Mystic incorrectly calculates the age of messages posted in the year 2020 as being from 1920 and removes them.

+ Jan 03 00:45:06    ALLFIX File Announce
+ Jan 03 00:45:06      Purge by age: 365
! Jan 03 00:45:06      Purge #1001 date 01/01/20 days 36527
! Jan 03 00:45:06      Purge #1002 date 01/01/20 days 36527
! Jan 03 00:45:06      Purge #1003 date 01/01/20 days 36527

Until the author fixes this bug it is recommended:

  • Do not use the PurgeUserBase function at all.
  • Do not set Max Msg Age in message bases and then run the PurgeMessageBases function.

Note: It is still OK to use the PurgeMessageBases function with the Max Msgs option. This option of purging does not rely on a date but rather just looks at the total number of messages in a base when deciding on how many to purge.

mystic_knownbugs.1578540912.txt.gz · Last modified: 2020/01/08 21:35 by avon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki