Bug 233888

Summary: wrong validation in New Project Provisioning Request form
Product: Community Reporter: Eugene Kuleshov <ekuleshov>
Component: WebsiteAssignee: Bjorn Freeman-Benson <bjorn.freeman-benson>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P1 CC: bjorn.freeman-benson, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Modify regext to allow numbers webmaster: review?

Description Eugene Kuleshov CLA 2008-05-26 00:18:41 EDT
validation in New Project Provisioning Request form have the following condition:

if(!document.project.yourProject.value.match(/^[a-zA-Z]+\.[a-zA-Z]+$/)){
		  boolOK = false;
		  alertmsg += 'Your project name must be of the form \'parentproject.yourproject\'\n\r';
}

unfortunately given pattern does not work if project name contain numbers.
Comment 1 Eclipse Webmaster CLA 2008-05-26 09:48:15 EDT
Created attachment 101977 [details]
Modify regext to allow numbers

Here is a patch, that will enable projects to use numbers.

-M.
Comment 2 Eclipse Webmaster CLA 2008-05-26 09:49:18 EDT
Adding Bjorn as these pages are his specialty.

-M.
Comment 3 Bjorn Freeman-Benson CLA 2008-05-28 20:58:40 EDT
Patch applied - thanks for finding the bug and writing a patch - thanks!