linuxmuster / linuxmuster-webui7

Next generation web interface for linuxmuster.net v7.
https://www.linuxmuster.net
GNU General Public License v3.0
12 stars 8 forks source link

import errors not properly catched #244

Open thoschi opened 2 years ago

thoschi commented 2 years ago

some errors during import of new users could be more informative. so far I encountered:

the process just stops with an generic python error - it would be better probably to get a proper warning what is wrong with the import data.

kiarn commented 2 years ago

Hello @thoschi,

If I understand correctly, you have imported directly a csv import, and not just added an user in the interface, right ? I must see if the above errors appear in the sophomorix command, that's the only way I can solve it.

Arnaud

kiarn commented 2 years ago

Hello @thoschi,

Since I do not use ID and wish PW, I had to test it and I call tell the following :

Arnaud

thoschi commented 2 years ago

Hello @kiarn

this issue was only about the error messages I got.

When I was importing a CSV (exported from Hera) there was a single birth date missing in one line. It would have been informative to get this information. Instead a generic Python error was thrown.

So I just wanted to suggest to inform about such issues like: "missing data in csv (user xyz)" or such.

Best regards Thomas

kiarn commented 2 years ago

Hello @thoschi

When I was importing a CSV (exported from Hera) there was a single birth date missing in one line. It would have been informative to get this information. Instead a generic Python error was thrown.

If you upload a custom CSV, there's no automatic check from sophomorix, you have to click on Save and check to achieve this. But if a birthdate is missing, the Webui will show it :

20221004-162126

Or you made it another way, and I need to know how you get the error, and which error. If I cannot reproduce the error, I cannot fix it.

Arnaud