Giter Site home page Giter Site logo

[BUG] Unable to add any new user about magpie HOT 8 CLOSED

tlvu avatar tlvu commented on July 19, 2024
[BUG] Unable to add any new user

from magpie.

Comments (8)

tlvu avatar tlvu commented on July 19, 2024 1

The WebUI should also display the email, in addition to the username, on the page where all users are listed, since email is enforced to be unique so we can find out which email has been already in use.

My collegues also found out that email comparison was case-sensitive so they got around to create a new user with [email protected] when [email protected] already exist in the DB. This should probably be case-insensitive.

from magpie.

tlvu avatar tlvu commented on July 19, 2024 1

Email validation should also trim beginning and ending white spaces. I found some email with white spaces in our production DB. Probably fat finger typo when entering data in the add user form.

from magpie.

tlvu avatar tlvu commented on July 19, 2024

@fmigneault this is urgent for us, we are not able to add new users anymore !

from magpie.

tlogan2000 avatar tlogan2000 commented on July 19, 2024

I believe I have figured this out. The provided email was already in the system so even with new usernames the account was not being created. What is strange is that I cannot find the preexisting account in the UI user list.

from magpie.

tlvu avatar tlvu commented on July 19, 2024

I believe I have figured this out. The provided email was already in the system so even with new usernames the account was not being created. What is strange is that I cannot find the preexisting account in the UI user list.

In this case I think the error message should specify exactly which string was causing the duplicate error. This way we do not have to guess if it is the username or the email that is duplicated.

Back to the original cause: unclear error message

from magpie.

fmigneault avatar fmigneault commented on July 19, 2024

I will look into it assuming it is related to email.
When testing with a duplicate name, I get this answer instead of the error:
image

from magpie.

fmigneault avatar fmigneault commented on July 19, 2024

Email validation should also trim beginning and ending white spaces

This is done automatically by the field type validation that requires a valid email in the UI. It is also validated with a regex in the API.
Maybe they have been inserted manually in the DB? Otherwise, provide an example.

from magpie.

tlvu avatar tlvu commented on July 19, 2024

This is done automatically by the field type validation that requires a valid email in the UI. It is also validated with a regex in the API.
Maybe they have been inserted manually in the DB? Otherwise, provide an example.

Our production DB started with a very old version of Magpie. Could it have happened since that time? In the very early days, those validation might possibly not exist?

The user with space in their is email is actually you :D I am guessing you must be one of the first users and your account most probably was created with the very first version of Magpie.

Anyways, it's good news that those validations are there now.

from magpie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.