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

Setting filesize settings to huge values breaks settings pages/search

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as admin
      2. Navigate to Security > Site security settings in site administration
      3. Set Private file space to: "9223372036854775807 [bytes]" (PHP_INT_MAX on 64-bit system)
      4. Press Save changes
      5. Confirm setting is saved
      6. Set Private file space to: "9223372036854775808 [bytes]" and press Save changes
      7. Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field
      8. Set Private file space to: "4611686018427387904 [KB]" and press Save changes
      9. Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field
      10. Set Private file space to: "0 [KB]" and press Save changes
      11. Confirm setting is saved
      Show
      Login as admin Navigate to Security > Site security settings in site administration Set Private file space to: "9223372036854775807 [bytes] " ( PHP_INT_MAX on 64-bit system) Press Save changes Confirm setting is saved Set Private file space to: "9223372036854775808 [bytes] " and press Save changes Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field Set Private file space to: "4611686018427387904 [KB] " and press Save changes Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field Set Private file space to: "0 [KB] " and press Save changes Confirm setting is saved
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.10 Branch:
      MDL-71487-310
    • Pull 3.11 Branch:
      MDL-71487-311
    • Pull Master Branch:

      Description

      Hi there, 

       

      I was trying to change the size for private file under site administration -> security --> site security settings.

      However, after I did the change, the system pop out a message.

      (Exception - Argument 1 passed to core_admin\local\settings\filesize::parse_bytes() must be of the type integer, string given, called in [dirroot]\admin\classes\local\settings\filesize.php on line 130)

      After that, I couldn't use the search feature in site administration

        Attachments

        1. MDL-71487_Step 5.png
          MDL-71487_Step 5.png
          66 kB
        2. MDL-71487_Step 7_1.png
          MDL-71487_Step 7_1.png
          68 kB
        3. MDL-71487_Step 7_2.png
          MDL-71487_Step 7_2.png
          78 kB
        4. MDL-71487_Step 9_1.png
          MDL-71487_Step 9_1.png
          67 kB
        5. MDL-71487_Step 9_2.png
          MDL-71487_Step 9_2.png
          77 kB
        6. MDL-71487_Step 11.png
          MDL-71487_Step 11.png
          67 kB

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            jer12182002 hung che chen
            Peer reviewer:
            Huong Nguyen Huong Nguyen
            Integrator:
            Víctor Déniz Falcón Víctor Déniz Falcón
            Tester:
            Angelia Dela Cruz Angelia Dela Cruz
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Sep/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m