Defect #44

Project name limitations?

Added by Damien McKenna about 15 years ago. Updated over 14 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


I attempted to create a project with the name "" but it refuses to allow that project name.


#1 Updated by Jean-Philippe Lang over 14 years ago

Fixed in r949.
Project name can now contain any character.

#2 Updated by Derek Montgomery over 14 years ago

Remove the limitations on name field, just keep them on project

#3 Updated by Pavol Murin about 15 years ago

well, the validator is in app/models/project.rb:

validates_format_of :name, :with => /^[\w\s\'\-]*$/i

I can't see any reason why this restriction is there - maybe
for regexp purposes?


#4 Updated by Damien McKenna about 15 years ago

The instructions on the project creator needs to either say it
or the limits should
be removed. I personally don't see any reason to restrict it
from common
characters, like periods, as they are often used to name projects,
e.g. my
example of using a website domain name as the project name.

#5 Updated by Jean-Philippe Lang about 15 years ago

Dots are not allowed. Maybe they should be...

Also available in: Atom PDF