Moodle

Multiple rows in table mdl_lesson_attempts

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    MySQL
    Etch
    apache2
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

During a lesson, each time the user presses F5 or refreshes the page, a new record is created in the table mdl_lesson_attempts with unused identical data (apart of the submission time), and even worse everytime a user gets back with the browser she can forge a new answer that get recorder as well. Fortunately the program takes care only for the first of these rows!
I have evaluating the set up of a moodle environment for more than 110.000 users (should be more than 300.000 in a couple of years) and about 300 lessons of 10 pages each (plus forums, etc), it is easy to understand that it will be more than frequent that I will have to deal with millions of spurious records!

I suggest to make a simple check to assure the record is really needed before adding it to the table!

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Assigning this to Mark (sorry by the delay).

Seems that something could be used to avoid duplicates (or to clean them).

But I don't know too much about lesson internals. For sure Mark does!

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Assigning this to Mark (sorry by the delay). Seems that something could be used to avoid duplicates (or to clean them). But I don't know too much about lesson internals. For sure Mark does! Ciao
Hide
Martin Dougiamas added a comment -

Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

Show
Martin Dougiamas added a comment - Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Dates

  • Created:
    Updated:
    Resolved: