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

A "File exists" error always occurs when a previously linked file is relinked in an assignment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Files API
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      A "File exists" error always occurs if the following steps are followed.

      1. Link to a file in an assignment.

      2. Save the assignment.

      3. Edit the assignment and remove the link to the file.

      4. Save the assignment.

      5. Edit the assignment and attempt to link to the original file.

      This is a serious issue because the workaround (replacing the assignment with a new one) involves data loss if some students have already submitted work. The workaround may also not be evident since the error suggests that the issue is with the file.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: