Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8889

MultipartRequestFilter#fileCountMax restricts not only files but any param

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.3.0, 6.2.37
    • 6.2.33
    • None
    • Yes
    • Yes
    • Nucleus 39
    • 1
    • Yes

    Description

      Steps to reproduce

      1.  Go to demo and edit the MultipartRequestFilter at [servers/filter|/server/filters/multipartRequest] section
      2.  Include a new attribute named fileCountMax and set its value to 1
      3. Include a new attribute named maxFileSize and set its value to 2000000000
      4. Go to travel/members/registration form
      5. Fulfill the form and send it
      6. Check a 500 Internal error is thrown

      Expected results

      The form is sent and processed without issues as far as it has no files (only fields)

      Actual results

      500 Internal server error is thrown

      Workaround

      Increase fileCountMax https://docs.magnolia-cms.com/product-docs/6.2/Administration/Architecture/Request-processing-and-filters/Filters.html#_multipart_request

      Development notes

      Attached the log stack trace

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                thien.quach Quach Hao Thien
                ccantalapiedra Carlos Cantalapiedra
                Nucleus
                Votes:
                2 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1d 1.5h
                      1d 1.5h