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

Max size of attachment is not correctly detected (Forum and Assignment)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Forum add-on
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in one device.

      1.  In web as admin/teacher, create a course with a certain "Maximum upload size" (e.g. 10MB).
      2. In this course, create 2 forums: 
        1. The first one (F1) with "Maximum attachment size" set to "Course upload limit".
        2. The second one (F2) with "Maximum attachment size" set to a lower size, e.g. 5MB.
      3. In another course with "Maximum upload size" set to "Site upload limit", create a forum (F3) with "Maximum attachment size" set to "Site upload limit".
      4. In the app, login as a student.
      5. Open forum F1 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the course limit) and the app doesn't allow adding files bigger than that size.
      6. Now open forum F2 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the custom size set) and the app doesn't allow adding files bigger than that size.
      7. Now open forum F3 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the site upload limit) and the app doesn't allow adding files bigger than that size.
      8. Optional: you can repeat this test using other activities that allow attachments in the app: assign, database, glossary, quiz (essay), workshop. The code is the same for all activities so IMO this test is optional.
      Show
      This issue only needs to be tested in one device.  In web as admin/teacher, create a course with a certain "Maximum upload size" (e.g. 10MB). In this course, create 2 forums:  The first one (F1) with "Maximum attachment size" set to "Course upload limit". The second one (F2) with "Maximum attachment size" set to a lower size, e.g. 5MB. In another course with "Maximum upload size" set to "Site upload limit", create a forum (F3) with "Maximum attachment size" set to "Site upload limit". In the app, login as a student. Open forum F1 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the course limit) and the app doesn't allow adding files bigger than that size. Now open forum F2 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the custom size set) and the app doesn't allow adding files bigger than that size. Now open forum F3 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the site upload limit) and the app doesn't allow adding files bigger than that size. Optional: you can repeat this test using other activities that allow attachments in the app: assign, database, glossary, quiz (essay), workshop. The code is the same for all activities so IMO this test is optional.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      The forum is configured to use the course max size (10MB), but the app is checking the user max size instead (256MB).

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            isabelrenedo Isabel Renedo Rouco
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Pau Ferrer Pau Ferrer
            Tester:
            Isabel Renedo Rouco Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: