runbox7 icon indicating copy to clipboard operation
runbox7 copied to clipboard

#Mail: Deleting a large number of messages fails with HTTP 400 or 414

Open gtandersen opened this issue 2 months ago • 1 comments

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:

  1. Go to https://runbox.com/app
  2. Select a large number (hundreds) of messages.
  3. Click to delete the messages.
  4. Observe that the messages disappear for a few seconds and then return.

Expected behavior All the selected messages should be deleted (moved to Trash).

Desktop (please complete the following information):

  • OS: macOS
  • Browser : Firefox

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

gtandersen avatar Apr 16 '24 09:04 gtandersen