Open gtandersen opened 2 months ago
rest api / nginx settings: https://medium.com/aviabird/413-414-request-url-entity-too-large-error-nginx-b6dcece6f5dd
rmmapi.ts deleteMessages - http.delete(`/rest/v1/email/${ids} - this can be too long, we should change it to a POST, and put the IDs list in the body
Describe the bug When deleting a large number of messages, the server responds to the DELETE request with:
400 Bad request / Your browser sent an invalid request.
by the proxy server when the local index is not in use.414 Request-URI Too Large
by nginx when the local index is in use.To Reproduce Steps to reproduce the behavior:
Expected behavior All the selected messages should be deleted (moved to Trash).
Desktop (please complete the following information):
Additional context Moving a large number of messages with or without the local index works as expected, presumably because the request is a POST and not a DELETE. However, if moving messages without the local index they will still appear in the source folder on other devices that use the local index, possibly because moving messages to Trash (as opposed to deleting) does not include them in https://runbox.com/rest/v1/list/deleted_messages/.
See also https://github.com/runbox/runbox7/issues/1244