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

mod_folder upgrade fails to due duplicate SHA1 hashes

XMLWordPrintable

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

      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.

            dobedobedoh Andrew Lyons
            mstdistance Nigel Cunningham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.