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

mod_folder upgrade fails to due duplicate SHA1 hashes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Deferred
    • 2.1.1
    • None
    • Files API
    • Testing on Ubuntu 10.04 with PHP 5.3.5-1ubuntu7.2 and MySQL5.1.54.

    Description

      My Moodle 1.9 installation contains files

      48/resource/guide/lesson01.html
      10/resource/guide/lesson01.html

      When I attempt an upgrade, both files result in the same field values in $newrecord in create_file_fromstoredfile (file_storage.php) and so $DB->insert_record fails.

      I attempted an upgrade from 1.9.11 to 2.1.1, with no special steps taken. All prerequisites were met and so on - it just fails to do the upgrade, due to the issue described above. I can reliably reproduce the issue by scrubbing the database and Moodle data folder and recopying them from the 1.9 installation (I'm working on a copy).

      Others apparently have the same issue (see the URL provided below).

      I am a software developer, with Eclipse installed locally; I'm willing and able to test patches.

      Attachments

        Activity

          People

            dobedobedoh Andrew Lyons
            mstdistance Nigel Cunningham
            Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: