mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #885] webmail: internal error when user's language is not English #783
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#783
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 @jficz on GitHub (Jun 5, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/885
When a user changes his lang to non-english (Czech - cs in my case), webmail gives a small "Internal error" (in Czech) bubble on top of the page without any further explanation even with Debug enabled. Server logs (uwsgi logs) only give the request URL and a mention about a 500 error, nothing specific. I was unable to produce any logs or messages beyond this and I only came up with the relation to Language settings via trial-and-error.
So two issues here really: 1) a hard 500 server error on language change and 2) inconclusive error message
Debian Jessie, ngnix 1.10.1 (http2), uwsgi (2.0.7), mysql (Percona 5.7.11), Python 2.7.9, modoboa installed in virtualenv via pip install method.
Modoboa v. 1.5.3, webmail v. 1.0.4
As usual, I'm happy to cooperate in any way I can, being it debugging (if I'm told what to do) or giving any additional information.
@tonioo commented on GitHub (Jun 6, 2016):
@cptMikky Since the webmail mostly use async requests to update the page, errors are not showed unless you open a javascript console.
@jficz commented on GitHub (Jun 6, 2016):
Now I see this in js console:
Same for all folders. I was able to create a new folder, it even appears in the folder list but I still can't switch to it - same error.
@tonioo commented on GitHub (Jun 7, 2016):
Are you sure you're looking at the right tab ? What tool do you use ? With DEBUG = True, you should see a complete python stacktrace.
@jficz commented on GitHub (Jun 7, 2016):
What tab are you referring to? I do have DEBUG = True. I use Chromium's integrated JS console. The screen looks like this: https://oc.ghoul.cz/index.php/s/Lzf8FcaBzyra3jO
The error occurs for each mail folder, including the test, which I was able to create despite the error via the cog button.
When I switch back to English, everything is fine. Please note that this is after the update to latest GIT checkout (as per our irc conversation).
@tonioo commented on GitHub (Jun 7, 2016):
Is it the console launched when you hit the F12 key ?
Could you try to display server response instead of the javascript error please ?
@jficz commented on GitHub (Jun 7, 2016):
Of course, my mistake, I thought you wanted the javascript errors.
Server response is http://pastebin.com/AtwXYfJ1
@tonioo commented on GitHub (Jun 7, 2016):
Ok, so it corresponds to the issue I fixed yesterday.
https://github.com/modoboa/modoboa-webmail/issues/37