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

core_user_add_user_private_files should fail when userquota is 0 or the file won't be added by size

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-73226-401
    • MDL-73226-master
    • Hide
      Prerequisite
      1. Moodle mobile app.
      2. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following:
        • Ensure that the phone with the mobile app and the web server are on the same network. Or
        • Expose the web server over the internet via ngrok.
      Test
      1. As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features
      2. In Administration > Security > Site security settings set a userquota of 2MB
      3. Using the mobile app, login as a normal user into your site (not admin)
      4. Upload one file small in size, less than 2 MB
      5. Try to upload a larger file (2MB) minimum
      6. Confirm you see an error that the file is larger than the space remaining in this area
      7. Now, repeat the previous steps but using the admin account
      8. Confirm you don't see any errors and that you are able to exceed the user quota of 2MB
      Show
      Prerequisite Moodle mobile app. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following: Ensure that the phone with the mobile app and the web server are on the same network. Or Expose the web server over the internet via ngrok. Test As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features In Administration > Security > Site security settings set a userquota of 2MB Using the mobile app, login as a normal user into your site (not admin) Upload one file small in size, less than 2 MB Try to upload a larger file (2MB) minimum Confirm you see an error that the file is larger than the space remaining in this area Now, repeat the previous steps but using the admin account Confirm you don't see any errors and that you are able to exceed the user quota of 2MB

      core_user_add_user_private_files should fail when the user userquota is 0 or the file won't be added by size

      Note for integrations: I'm not backporting this because it is introducing an exception (not sure if this is suitable for stables) but I'm happy to do the backport if required.

        1. master.gif
          master.gif
          7.82 MB
        2. 401.gif
          401.gif
          7.01 MB
        3. 400.gif
          400.gif
          7.99 MB

            jleyva Juan Leyva
            jleyva Juan Leyva
            Paul Holden Paul Holden
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 40 minutes
                2h 40m

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