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

Exceeding forum post threshold for blocking does not prevent user from resubmitting form.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Login as a teacher and create a forum with a time period for blocking set.
      2. Set a post threshold for blocking and for warning.
      3. Log in as a student and post until you are on your last message, which will push your post count to the threshold for blocking when posted.
      4. Post this message, then on the screen where it says "Your post was successfully added." click the back button in the browser and fill in the post again and resubmit.
      5. Ensure when you resubmit you are given a warning about exceeding the limit.

      Test 2

      1. Login as a teacher and create a forum with a time period for blocking set.
      2. Set a post threshold for blocking and for warning.
      3. Log in as a student and click on to add a new discussion, but do not submit this form.
      4. Open another tab in your browser and create a discussion and continue replying until you reach the threshold for blocking.
      5. Go back to the other tab and attempt to post a new discussion.
      6. Ensure when you submit you are given a warning about exceeding the limit.
      Show
      Test 1 Login as a teacher and create a forum with a time period for blocking set. Set a post threshold for blocking and for warning. Log in as a student and post until you are on your last message, which will push your post count to the threshold for blocking when posted. Post this message, then on the screen where it says "Your post was successfully added." click the back button in the browser and fill in the post again and resubmit. Ensure when you resubmit you are given a warning about exceeding the limit. Test 2 Login as a teacher and create a forum with a time period for blocking set. Set a post threshold for blocking and for warning. Log in as a student and click on to add a new discussion, but do not submit this form. Open another tab in your browser and create a discussion and continue replying until you reach the threshold for blocking. Go back to the other tab and attempt to post a new discussion. Ensure when you submit you are given a warning about exceeding the limit.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-39303_master

      Description

      It is possible to exceed the total number of allowed posts by resubmitting the form because the forum code is so awesome.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13