In Progress [CPANEL-32505] Username/Domain Validation during account creation.

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
There seems to be a bug or something that should be corrected. When using mysql (username limit of 8 characters) but even if you switch Maria DB.

when creating a new account, and set a username. a green check mark appears next to the username. Then you go to create the account, and then it fails because the username is too similar to another domain previously created. I tested this with using the exact username of a site that already exists, you get a green checkmark, but when you go to create the new domain, it fails saying the username already exists.

I do not know if this should be a bug report or feature request, but I do not think there should be green check mark next to the username if it is not going to be able to create the account. (similarly with a domain too)

I realize that the green checkmarks are only doing form validation it seems, but it should check to see if this already exists or is too close to what is created (in the case of the username). Otherwise, it fails, and it is frustrating to have to go through and re-enter all the information again.

Thanks
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
This is discussed at length in the following threads:
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Hi

Thank you for the forums, But I think the discussions there are different. I'm asking if there can be a warning/error / red x etc as a form validation check so I don't have to create the account to find out if the user will be accepted or not. As it stands. if the username is failed or invalid due to the length limit or lack there off. It should not give me a a green check box implying that the username is good/valid and then find out that it isn't really.

Even if I converted to MariaDB or upgraded to the latest MySQL that went to 8/16/32 character length and that removed the first matching character rule. It would still indicate a valid username (because you are getting the green check mark) if you are trying to create a username that already exists.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
OH, I think I missed the point here. So the issue is, that you're getting a successful validation message on the username when it is too close to another username and subsequently fails to be created?

Screenshot at Apr 22 12-35-53.png


Which is a username that exists on the system already and when I hit save I get:

Code:
 Create a New Account
Account Creation Status: failed

(XID zqdhpz) This system already has an account named “cptest”. at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 623.
This does not sound like the intended behavior. Give me a bit to look through open cases and if I don't find one that matches I'll open a new one. I'll update either way with the case ID when I have one available.
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Correct. I know it is probably a form input validation rather than system check, but I'm thinking it should be generating an error or warning or red X or something if the username already exists (or is too similar to what is on the system if that is still applicable).


because if you go to fill all that out and then hit submit, it fails then you have to start all over which is kind of frustrating sometimes. It even happens on reserved names that I just found out. This is a prime example, I didn't know I couldn't create this, but the green check mark - in one sense - shows that it is fine. One other time I had this testwebsite combination, it didn't have a green check mark, it had nothing, but not sure sure if it was a fluke or not. Because when I tried it again. It was green check marks again.



cpanel_reserved_name2.PNGcpanel_reserved_name_fail.PNG


for similar username error:
cpanel_similar_name.png


I realize the green check mark might just mean the form is filled out? But it is also potentially indicating that is a valid name and then you get a surprise that you can't use it.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hi @ca2236

I just wanted to let you know I got that case open the ID is: CPANEL-32505 - Create An Account username and domain field in WHM UI is misleading as users assume validation is being done

I ended up filing this as an improvement case as, after some contemplation, I don't believe it's necessarily a bug but more so a way to lessen potential confusion in regard to this behavior.

Thanks!