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

core_requirejs::find_all_amd_modules does not handle empty amd directories

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.5, 3.1.1, 3.2
    • 3.0.6, 3.1.2
    • JavaScript
    • MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55283-master
    • 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

    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

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Marina Glancy Marina Glancy
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16