mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1312] Error 500 Import CSV #1058
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#1058
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 @carbans on GitHub (Nov 30, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1312
Impacted versions
Yes
Nginx
Steps to reproduce
Identities / Import
Current behavior
I can't import csv with users, Javascript browser console throws 500 Error(see Screenshot) when it's try to access to https://server.com/admin/identities/import/
Video/Screenshot link (optional)
https://imgur.com/a/CnU7g
@tonioo commented on GitHub (Dec 3, 2017):
Could you retry with DEBUG set to True inside settings.py? Otherwise you can also test the command line version (http://modoboa.readthedocs.io/en/latest/moving.html#using-csv-files)
@tonioo commented on GitHub (Dec 15, 2017):
@carbans ping
@carbans commented on GitHub (Dec 19, 2017):
Sorry for the delay, I tried with the settings Debug to True, but this has not worked, I was doing tests and detected that the error is because I enter names with accents or special characters such as º, ª
I think that you process the file before uploading it, Is it done using javascript?
It would be great if we could add accents and special characters
@tonioo commented on GitHub (Dec 22, 2017):
In which column(s) did you put special characters?
@ghost commented on GitHub (Jan 3, 2018):
@carbans Are you using Python 2.7?
github.com/modoboa/modoboa@168743f74b/modoboa/admin/views/import_.py (L43-L52)I haven't tested it yet but I think this should be:
@ghost commented on GitHub (Jan 3, 2018):
Found a simpler solution, use the back ported csv module it supports Python 3.
See #1342