mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #1834] Quarantine / Release Button / HTTP/1.1 500 #1438
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1438
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @r0nster on GitHub (Feb 6, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1834
Impacted versions
Steps to reproduce
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?
@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.
@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.