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

Atto has the potential to over write saved content and files.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test 1
      Teacher one goes to the course edit page (draft is saved) and doesn't click save or cancel.
      Teacher two makes a change to the course description AND adds a new image and saves.
      Teacher one revisits the course edit page with in four days. Their draft is NOT restored. They click save. Verify that the image file is still in the filearea for the description (use the manage files plugin).

      Test 2
      Teacher one goes to the course edit page (draft is saved) and doesn't click save or cancel.
      Teacher two makes a change to the course description and saves.
      Teacher one revisits the course edit page with in four days. Their draft is NOT restored.

      Test this with some mforms, and non-mforms use of the editor (database, course settings, forum posts).

      Test 3

      1. Create a Wiki page (collaborative wiki)
      2. Click on Files & upload a file (any kind)
      3. Save
      4. Go anywhere, then go back to Files and the uploaded file is still there.
      5. Navigate to Edit & type any amount of text.
      6. Without saving, go back to Files tab and the uploaded file is still there.
      7. Navigate to Edit & type any amount of text.
      8. Save
      9. Navigate back to files and discover your file is still there.
      Show
      Test 1 Teacher one goes to the course edit page (draft is saved) and doesn't click save or cancel. Teacher two makes a change to the course description AND adds a new image and saves. Teacher one revisits the course edit page with in four days. Their draft is NOT restored. They click save. Verify that the image file is still in the filearea for the description (use the manage files plugin). Test 2 Teacher one goes to the course edit page (draft is saved) and doesn't click save or cancel. Teacher two makes a change to the course description and saves. Teacher one revisits the course edit page with in four days. Their draft is NOT restored. Test this with some mforms, and non-mforms use of the editor (database, course settings, forum posts). Test 3 Create a Wiki page (collaborative wiki) Click on Files & upload a file (any kind) Save Go anywhere, then go back to Files and the uploaded file is still there. Navigate to Edit & type any amount of text. Without saving, go back to Files tab and the uploaded file is still there. Navigate to Edit & type any amount of text. Save Navigate back to files and discover your file is still there.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51179-master
    • Sprint:
      Team ';drop tables Sprint 10

      Description

      Scenario:
      Teacher one goes to the course edit page (draft is saved) and doesn't click save or cancel.
      Teacher two makes a change to the course description and saves.
      Teacher one revisits the course edit page with in four days. Their draft is restored. They click save and teacher two's edits are lost.

      Scenarios such as this can happen in different areas around Moodle.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Sep/15