mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #1782] Error 500 on user creation #1403
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#1403
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 @benjaminbellamy on GitHub (Oct 5, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1782
I don’t know if this is a bug or a hidden feature, but you cannot add new accounts after updating
/srv/modoboa/instance/sitestatic/css/modoboa.pngImpacted versions
Steps to reproduce
/srv/modoboa/instance/sitestatic/css/modoboa.pngwith your logo.Current behavior
Error 500
Expected behavior
Create new account with no Error 500?
@tonioo commented on GitHub (Oct 11, 2019):
@benjaminbellamy Are you sure your image is not corrupted? Is it a real PNG file?
@benjaminbellamy commented on GitHub (Oct 11, 2019):
Yes, the PNG is perfectly displayed, everything works fine. I just can’t create new mailboxes.
And when I put the original PNG file back I can create accounts again.
@tonioo commented on GitHub (Oct 13, 2019):
@benjaminbellamy The error is pretty clear:
cannot identify image file <open file u'/srv/modoboa/instance/sitestatic/css/modoboa.png. Your PNG file must be special in some way...@benjaminbellamy commented on GitHub (Oct 15, 2019):
I don’t see anything special about this file. It is displayed fine by Nginx/browser.
I even tried with a blank png file, same size, same error.
Weird.
Why is this happening on user creation? How is user creation related to a PNG file?
@benjaminbellamy commented on GitHub (Oct 15, 2019):
I just got it: the PDF file created with the user credential needs the PNG file.
@benjaminbellamy commented on GitHub (Oct 15, 2019):
OK, I found it: PNG file must have NO metadata at all.
I removed them, now it works.
For instance when exporting to PNG using Gimp, you must uncheck all checkboxes (uncheck
"Save Exif data"…).Comments for PIL/Image.py open() function says
"This is a lazy operation;"… Well it kinda is lazy…(I had checked my PNG file header with Hex editor and they were clean.)