Page 1 of 1
Invalid Email Address
PostPosted:Fri Apr 12, 2013 10:56 pm
by MichaelSS
I just installed OpenKM 6.2.3 (build 7945) on a CentOS 6.4 system. The problem I ran into is when I try to create a user I get an error message when I put in the email address. I believe the problem is the length of the domain name. i.e.
michael@mail.organization.dep1.dep2.com comes back as Invalid email address. If I shorten it to
michael@mail.organization.dep1.com it accepts it... of course it is not a vailid address. Is there a way to allow for longer domain names when creating a user?
Thanks for any help/suggestions.
Michael
Re: Invalid Email Address
PostPosted:Sun Apr 14, 2013 9:05 am
by pavila
Please, attach an screenshot of the error dialog.
Re: Invalid Email Address
PostPosted:Mon Apr 15, 2013 11:34 pm
by MichaelSS
I have attached a screenshot. Please let me know if you need anything else.
Thank you!
Michael
Re: Invalid Email Address
PostPosted:Wed Apr 17, 2013 9:46 pm
by pavila
You need to edit the user_edit.jsp file and remove this validation.
Re: Invalid Email Address
PostPosted:Wed Apr 17, 2013 11:45 pm
by MichaelSS
Thank you for the reply.... Doesn't all that do is remove the requirement to put in an email address? it doesn't resolve the problem. To use this in an organization, you would want to use the email feature. I edited the following files:
user_edit.jsp -> changed size from "30" to "40" <td><input class=":email :required

nly_on_blur" name="usr_email" size="40" value="${usr.email}"/></td>
crontab_edit.jsp -> changed size from "30" to "40" <td><input size="40" class=":email

nly_on_blur" name="ct_mail" value="${ct.mail}"/></td>
Restarted tomcat. It did not resolve the issue.
Re: Invalid Email Address
PostPosted:Wed Apr 17, 2013 11:57 pm
by MichaelSS
I realize now, those lines are just for the size of the input box. It is definately related to the length of the domain name. It works fine with xxx.xxx.xxx.xxx (with four .) If it is xxx.xxx.xxx.xxx.xxx (five .) it fails. I'm guessing there is a template file or something that limits it to the four . parts.
Michael
Re: Invalid Email Address
PostPosted:Mon Apr 22, 2013 8:48 am
by pavila
You can avoid the validation removing the ":email" class from these fields.