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

Missing exception classes in autolinker.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.6, 2.9
    • Fix Version/s: 2.8.7, 2.9.1
    • Component/s: Glossary
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a glossary with an item and enable it's linking.
      2. Create a module and use the glossary term
      3. Open mod/glossary/showentry_ajax.php in your editor and have it echo a string out (e.g. echo "foo" at the top of the script).
      4. Click on the use of your glossary term
        • Confirm that you were shown an ajax exception explaining that there was an error
      5. Remove your changes and refresh the page
      6. Open a second tab in your browser and logout at this tab
      7. Back in the second tab, click on the use of your glossary term
        • Confirm that you were shown a JavaScript exception
      Show
      Create a glossary with an item and enable it's linking. Create a module and use the glossary term Open mod/glossary/showentry_ajax.php in your editor and have it echo a string out (e.g. echo "foo" at the top of the script). Click on the use of your glossary term Confirm that you were shown an ajax exception explaining that there was an error Remove your changes and refresh the page Open a second tab in your browser and logout at this tab Back in the second tab, click on the use of your glossary term Confirm that you were shown a JavaScript exception
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50438-master

      Description

      Autolinker.js can throw either an exception or ajaxexception, none of these classes are included in autolinker module required files.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  6/Jul/15