[GH-ISSUE #1834] Quarantine / Release Button / HTTP/1.1 500 #1438

Closed
opened 2026-02-27 11:17:07 +03:00 by kerem · 2 comments
Owner

Originally created by @r0nster on GitHub (Feb 6, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1834

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes
  • Webserver: Nginx 1.14.0-0ubuntu1.7
  • Ubuntu 18.04.4 LTS
  • uwsgi 2.0.15-10.2ubuntu2.1

Steps to reproduce

  • Mail in Quarantine
  • Select Mail
  • Use Button "Release" an no action with mail (see log)

Current behavior

/var/log/uwsgi/app/modoboa_instance.log
() {60 vars in 1310 bytes} [Thu Feb 6 15:06:45 2020] POST /quarantine/process/ => generated 18624 bytes in 267 msecs (HTTP/1.1 500) 5 headers in 169 bytes (1 switches on core 0)

ngnix log:
xxx.xxx.xxx.xxx - - [06/Feb/2020:15:06:45 +0100] "POST /quarantine/process/ HTTP/1.1" 500 870 "https://DOMAIN/quarantine/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"

Expected behavior

Video/Screenshot link (optional)

What exactly is the problem?

Originally created by @r0nster on GitHub (Feb 6, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1834 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes * Webserver: Nginx 1.14.0-0ubuntu1.7 * Ubuntu 18.04.4 LTS * uwsgi 2.0.15-10.2ubuntu2.1 # Steps to reproduce - Mail in Quarantine - Select Mail - Use Button "Release" an no action with mail (see log) # Current behavior /var/log/uwsgi/app/modoboa_instance.log () {60 vars in 1310 bytes} [Thu Feb 6 15:06:45 2020] POST /quarantine/process/ => generated 18624 bytes in 267 msecs (HTTP/1.1 500) 5 headers in 169 bytes (1 switches on core 0) ngnix log: xxx.xxx.xxx.xxx - - [06/Feb/2020:15:06:45 +0100] "POST /quarantine/process/ HTTP/1.1" 500 870 "https://DOMAIN/quarantine/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0" # Expected behavior # Video/Screenshot link (optional) What exactly is the problem?
kerem closed this issue 2026-02-27 11:17:07 +03:00
Author
Owner

@rvicentiu commented on GitHub (Mar 2, 2020):

Looks like you are using a newer version of Python.

First a simple fix for the missing atoi function in lib.py .

The second issue is the SQLConnector is now returning binary strings and passing them to the amavis request which ends up failing:
mail amavis[107508]: (!!)policy_server FAILED: Invalid mail_id 'b'CsYzT_eYhU7v'' at (eval 95) line 281, line 6.

The attached diffs (use patch utility)
views.py.txt
lib.py.txt

fixed the issue for me but there may be a need for additional fixes.

<!-- gh-comment-id:593352405 --> @rvicentiu commented on GitHub (Mar 2, 2020): Looks like you are using a newer version of Python. First a simple fix for the missing atoi function in lib.py . The second issue is the SQLConnector is now returning binary strings and passing them to the amavis request which ends up failing: mail amavis[107508]: (!!)policy_server FAILED: Invalid mail_id 'b'CsYzT_eYhU7v'' at (eval 95) line 281, <GEN91> line 6. The attached diffs (use patch utility) [views.py.txt](https://github.com/modoboa/modoboa/files/4275028/views.py.txt) [lib.py.txt](https://github.com/modoboa/modoboa/files/4275029/lib.py.txt) fixed the issue for me but there may be a need for additional fixes.
Author
Owner

@tonioo commented on GitHub (Mar 4, 2020):

@rvicentiu Thanks for the help. I close this issue since it's a duplicated of https://github.com/modoboa/modoboa-amavis/issues/119.

<!-- gh-comment-id:594429284 --> @tonioo commented on GitHub (Mar 4, 2020): @rvicentiu Thanks for the help. I close this issue since it's a duplicated of https://github.com/modoboa/modoboa-amavis/issues/119.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1438
No description provided.