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

core_requirejs::find_all_amd_modules does not handle empty amd directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1.1, 3.2
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      1. create a directory group/amd
      2. purge caches
      3. open your browser console and open any page on Moodle
        1. The first.js file should be generated correctly
      4. Touch files:

        touch group/amd/src group/amd/build
        

      5. purge caches
      6. open your browser console and open any page on Moodle
        1. The first.js file should be generated correctly
      7. Remove the text file and create a new directory at group/amd/src and group/amd/build
      8. Change ownership/rights such that your web server cannot read the directories (e.g. chmod a-1 group/amd/*)
      9. purge caches
      10. open your browser console and open any page on Moodle
        1. The first.js file should be generated correctly
      Show
      create a directory group/amd purge caches open your browser console and open any page on Moodle The first.js file should be generated correctly Touch files: touch group/amd/src group/amd/build purge caches open your browser console and open any page on Moodle The first.js file should be generated correctly Remove the text file and create a new directory at group/amd/src and group/amd/build Change ownership/rights such that your web server cannot read the directories (e.g. chmod a-1 group/amd/* ) purge caches open your browser console and open any page on Moodle The first.js file should be generated correctly
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-55283-master

      Description

      1. create a directory group/amd
      2. purge caches
      3. open your browser console and open any page on Moodle
        1. The first.js file was not generated correctly - 500 error shown

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16