Bug 233888 - wrong validation in New Project Provisioning Request form
Summary: wrong validation in New Project Provisioning Request form
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Bjorn Freeman-Benson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 00:18 EDT by Eugene Kuleshov CLA
Modified: 2008-05-28 20:58 EDT (History)
2 users (show)

See Also:


Attachments
Modify regext to allow numbers (836 bytes, text/plain)
2008-05-26 09:48 EDT, Eclipse Webmaster CLA
webmaster: review?
Details

Note You need to log in before you can comment on or make changes to this bug.
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!