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

File not found, when logged out and trying to access html block file

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Test 1
      1. Enable 'Force users to log in' on your site.
      2. Add a HTML block to your frontpage.
      3. Edit the block contents.
      4. Write the text 'PDF File', highlight the text, then click on the 'Link' button.
      5. Click on 'Browse repositories' and upload a PDF file.
      6. Save your changes.
      7. Copy the location to this PDF file (should be something like <yoursite>/pluginfile.php/107/block_html/content/xyz.pdf).
      8. Open a new browser that is not logged into the site.
      9. Copy the location into the address bar and click enter.
      10. Check that you are presented with a login screen, and when you log in as a student you are directed to the PDF.
      Test 2
      1. Enable 'Force users to log in' on your site.
      2. Add a HTML block to a course that contains a student.
      3. Edit the block contents.
      4. Write the text 'PDF File', highlight the text, then click on the 'Link' button.
      5. Click on 'Browse repositories' and upload a PDF file.
      6. Save your changes.
      7. Copy the location to this PDF file (should be something like <yoursite>/pluginfile.php/107/block_html/content/xyz.pdf).
      8. Open a new browser that is not logged into the site.
      9. Copy the location into the address bar and click enter.
      10. Check that you are presented with a login screen, and when you log in as a student you are directed to the PDF.
      Show
      Test 1 Enable 'Force users to log in' on your site. Add a HTML block to your frontpage. Edit the block contents. Write the text 'PDF File', highlight the text, then click on the 'Link' button. Click on 'Browse repositories' and upload a PDF file. Save your changes. Copy the location to this PDF file (should be something like <yoursite>/pluginfile.php/107/block_html/content/xyz.pdf). Open a new browser that is not logged into the site. Copy the location into the address bar and click enter. Check that you are presented with a login screen, and when you log in as a student you are directed to the PDF. Test 2 Enable 'Force users to log in' on your site. Add a HTML block to a course that contains a student. Edit the block contents. Write the text 'PDF File', highlight the text, then click on the 'Link' button. Click on 'Browse repositories' and upload a PDF file. Save your changes. Copy the location to this PDF file (should be something like <yoursite>/pluginfile.php/107/block_html/content/xyz.pdf). Open a new browser that is not logged into the site. Copy the location into the address bar and click enter. Check that you are presented with a login screen, and when you log in as a student you are directed to the PDF.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-52261_master_file_not_found

      Description

      As a user who is not logged in (e.g. session expired)
      Following a link to a file stored in a html block shows as an error "file not found"
      Rather than directing to the log in screen.

        Attachments

          Activity

            People

            • Assignee:
              berserkk Ben Kelada
              Reporter:
              berserkk Ben Kelada
              Peer reviewer:
              Mark Nelson
              Integrator:
              David Monllaó
              Tester:
              Jun Pataleta
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Mar/16