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

403 Forbidden when Accessing File Attachments From Email

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: Authentication, Forum
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      Attempting to click a file attachment from an email while not logged in results in a 403 forbidden error after login.  

      Reproducing:

      1. Post to forum module with file attachment.
      2. Receive email from forum including link to file attachment
      3. While not logged in, click link.  Receive login screen.
      4. Login using credentials with permission to access file.  (Same user that received the email)
      5. Receive 403 forbidden error on redirect.  (Expected to download file)

      Workaround:

      1. Click link from email a second time after error.  File opens normally.

      Environment:

      1. Windows Server 2008 R2
      2. PHP 5.6.31
      3. IIS 6.1
      4. MySQL 5.6
      5. Authentication: OAuth2 (core version)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              wscjohnson Bill Johnson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: