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

No checking for valid context in /rss/file.php

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.1.5, 3.2.2
    • 3.2.1
    • RSS

    Description

      As pointed out in MDLSITE-3067, exceptions are raised if a client attempts to access an RSS feed for a context that no longer exists.

      The root cause of this is that /rss/file.php is calling get_context_info_array() which uses MUST_EXIST so throws an exception.

      It would be good if this was caught and a 404 response returned.

      To replicate:

      1. Switch RSS on at server level for forums
      2. Create a forum with RSS switched on and follow the RSS link
      3. Delete the forum
      4. Refresh the RSS link
      5. You should see an error

      Attachments

        Issue Links

          Activity

            People

              maherne Michael Aherne
              maherne Michael Aherne
              Dan Poltawski Dan Poltawski
              David Monllaó David Monllaó
              Andrew Lyons Andrew Lyons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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