Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48644

Restore of legacy logs loses the original log time and IP

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Pre-conditions: legacy logging must be fully enabled.

      1. Find a course that has some course and activity logs in it from various times in the past and from various users that have various IP addresses. This can also be created just by viewing the course and some activities with several users from different computers.
      2. To view the logs, to go Reports > Logs in the course administration block. Then change the filter to use Legacy log instead of Standard log.
      3. Backup the course, be sure to include logs in the backup.
      4. Restore the course, be sure to include logs in the restore.
      5. In the restored course, view the logs, to go Reports > Logs in the course administration block. Then change the filter to use Legacy log instead of Standard log.
      6. Verify the log times and IP addresses in the restored course with the original course. Note some exceptions:
        • Only course and activity logs are restored. Logs from other sources will not be restored.
        • During restore, some new logs are generated. This is normal.
        • Log dates can be adjusted if the course start date is modified during the restore. This is a setting during the restore process, so just don't modify it.
      Show
      Pre-conditions: legacy logging must be fully enabled. Find a course that has some course and activity logs in it from various times in the past and from various users that have various IP addresses. This can also be created just by viewing the course and some activities with several users from different computers. To view the logs, to go Reports > Logs in the course administration block. Then change the filter to use Legacy log instead of Standard log. Backup the course, be sure to include logs in the backup. Restore the course, be sure to include logs in the restore. In the restored course, view the logs, to go Reports > Logs in the course administration block. Then change the filter to use Legacy log instead of Standard log. Verify the log times and IP addresses in the restored course with the original course. Note some exceptions: Only course and activity logs are restored. Logs from other sources will not be restored. During restore, some new logs are generated. This is normal. Log dates can be adjusted if the course start date is modified during the restore. This is a setting during the restore process, so just don't modify it.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48644_restoreLegacyLogs

      Description

      When restoring legacy logs in a course, the restore process adds the logs as if they are new logs which changes the log's time and IP to the current time and the current user's IP address.

      The is a problem because logs are used for audits by clients and some are obligated to keep these for 2 years.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15