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

Problem with deleting uploaded resources. Renaming external file only solution to force proper recognition of edited file.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
    • Fix Version/s: 2.0
    • Component/s: Resource, Usability
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Steps to Reproduce:
      A) 1. Add a resource & Select 'Link to a file/website'
      2. Upload a file & choose it
      3. Save
      B) 1. Update the Resource
      2. Choose another file
      3. Save
      C) 1. Edit & Save the external file (e.g. Word/Excel File) you uploaded originally
      2. Update the Resource from A & B
      3. Upload and Choose the edited file (C.1.)
      4. Save
      5. View the resource. It is still the same original file you uploaded in A)2!

      Expected Behaviour:
      I would think if you deleted a file that if you made an offline edit and reuploaded it that Moodle would treat it as a new file. Miraculously it revives the old file and disregards the new file.

      Workaround:
      When editing the file, rename it and follow steps C)2 to C)5. Only now has your editing taken affect and the invisible 'deleted' file finally 'gone'.

      MIght this bug be similar to MDL-7660?

      Apologies if this is a clone of MDL-2661(very old) but it seems the issue was more about the warning message rather than fixing this bug. I also couldn't find it as a fixed bug for 1.9.4

        Gliffy Diagrams

          Activity

          barrysspace Barry Oosthuizen created issue -
          barrysspace Barry Oosthuizen made changes -
          Field Original Value New Value
          Component/s Document Management [ 10081 ]
          barrysspace Barry Oosthuizen made changes -
          Summary Problem with deleting when uploading resources. Renaming external file only solution to force recognition Problem with deleting uploaded resources. Renaming external file only solution to force proper recognition of edited file.
          Hide
          skodak Petr Skoda added a comment -

          Yes, this is a known problem which will be finally solved in 2.0

          Show
          skodak Petr Skoda added a comment - Yes, this is a known problem which will be finally solved in 2.0
          skodak Petr Skoda made changes -
          Fix Version/s 2.0 [ 10122 ]
          Hide
          skodak Petr Skoda added a comment -

          Should be solved properly in 2.9dev, thanks for the report.

          Petr Skoda

          Show
          skodak Petr Skoda added a comment - Should be solved properly in 2.9dev, thanks for the report. Petr Skoda
          skodak Petr Skoda made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          tsala Helen Foster made changes -
          Component/s Document Management [ 10081 ]
          dougiamas Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          dougiamas Martin Dougiamas made changes -
          Workflow jira [ 30541 ] MDL Workflow [ 61909 ]
          dougiamas Martin Dougiamas made changes -
          Workflow MDL Workflow [ 61909 ] MDL Full Workflow [ 91110 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10