Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4184

Add new config setting to disable the use of tokenpluginfile.php for downloading files (so it fallbacks to pluginfile.php)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 4.1.0
    • 4.0.2
    • Others
    • Hide

      With devtools open in "network" tab, download a file and check if its downloading it from "tokenpluginfile.php".

      Then, change the value of moodle.config.json property "disableTokenFile" to true.

      With that change, now files should be downloaded from "pluginfile.php"

      Note: This should be tested by a dev

      Show
      With devtools open in "network" tab, download a file and check if its downloading it from " tokenpluginfile.php ". Then, change the value of moodle.config.json property " disableTokenFile " to true. With that change, now files should be downloaded from " pluginfile.php " Note : This should be tested by a dev
    • MOODLE_400_STABLE
    • MOODLE_401_STABLE
    • Moodle App 4.1.0

      The use of tokenpluginfile.php seems to not be compatible with certain plugins. We've had reports that it fails with tool_mfa.

      A request like this: moodle_site/tokenpluginfile.php/70322f47a5eb9ae53dcc1129458ffd3/121282/mod_page/content/1/mpthreetest.mp3?forcedownload=1&offline=1

      Will redirect to: moodle_site/admin/tool/mfa/auth.php

      even when the token is correct

      There is a callback/hook somewhere that is forcing this redirection for this particular plugin.

            alfonso.salces@moodle.com Alfonso Salces
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Noel De Martin Noel De Martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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