Proper handling of oversized request, i.e. due to large attachment(s).
New endpoint (PUT /Olog/logs/multipart) accepting both log entry and optional attachment files.
Application property spring.servlet.multipart.max-file-size sets the limit for single file size.
Application property spring.servlet.multipart.max-request-size sets the limit for the total size of the request. This would handle the case of multiple attachments each below the single file size limit, but with an unacceptable total size.
Clients must be updated. Have verified on both Phoebus client and web client. Update Phoebus client available in Phoebus project on branch CSSTUDIO-1818.
To summarize:
Application property
spring.servlet.multipart.max-file-size
sets the limit for single file size. Application propertyspring.servlet.multipart.max-request-size
sets the limit for the total size of the request. This would handle the case of multiple attachments each below the single file size limit, but with an unacceptable total size.Clients must be updated. Have verified on both Phoebus client and web client. Update Phoebus client available in Phoebus project on branch CSSTUDIO-1818.
Backwards compatible with current clients.