Bug 286401

Summary: Field checking in adding user not catching bad email format that causes service error
Product: [Retired] Red Hat Network Reporter: wes hayutin <whayutin>
Component: RHN/Web SiteAssignee: Sebastian Skracic <sskracic>
Status: CLOSED CURRENTRELEASE QA Contact: Stephen Herr <sherr>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn500CC: rhn-bugs, vambati
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://rhn.webqa.redhat.com/rhn/users/CreateUser.do?account_type=into_org
Whiteboard:
Fixed In Version: 5.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-26 20:21:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 446437, 447946    

Description wes hayutin 2007-09-11 17:21:27 UTC
Description of problem:

Create a user in hosted w/ all the correct fields entered except in the email
field add something like..

shadow@..man.com

then click create.. and you get  a service error.
Special charaters appear to be allowed in the email form, however extra periods
cause a service error.
example..   wes@.redhat.com  causes service error.  
example..  wes@*redhat.com is allowed.. not sure if it should be.
Please field check the create user forms.

Also it appears that entering in a state in lowercase letters is accepted by
rhn.. but not accpeted at the /sso/process_login.html screen
example "nc" as opposed to "NC"

This should be consistent.   so sorry but there are two bugs here.

Comment 2 Amy Owens 2008-05-14 16:38:31 UTC
moving to sprint 8

Comment 3 Amy Owens 2008-05-22 15:49:45 UTC
OK I cloned this BZ for SSO--- the validation should be in user service but for
now RHN will do a simple email validation... 

Sebastian, just do minimal sanity checking

Comment 4 Sebastian Skracic 2008-05-27 15:54:48 UTC
The proper email validation against UserService should now be in place with
r118774.  Please note that wes@*redhat.com is still allowed (if unique), since
it passes the UserService validation.

Comment 5 Sebastian Skracic 2008-05-27 16:55:19 UTC
Small addendum to state code validation submitted in r118775.  For US and
Canada, users can enter either lower or upper case state codes.

Comment 7 Sebastian Skracic 2008-06-05 12:58:59 UTC
*** Bug 223116 has been marked as a duplicate of this bug. ***

Comment 8 Amy Owens 2008-06-05 13:29:01 UTC
*** Bug 223116 has been marked as a duplicate of this bug. ***

Comment 9 Amy Owens 2008-06-17 17:05:20 UTC
no longer throws stack trace--- says invalid email address with 
amy@.redhat.com-- in stage now