Defect #5152

Cannot use certain characters for user and role names.

Added by Michael Thomas over 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:2010-03-22
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Administration
Target version:1.2.0
Resolution:Fixed Affected version:0.9.3

Description

When I try to use certain characters for a role- or user-name, the naming fails with the error message Name is invalid.

These characters include {}[]:/()|@, probably more; _- are working fine.

This prevents me from using names in the form User Name (Info) or Role [Qualifier].

I expect this to be a global validation thing.

Furthermore I could not find any information on which characters are valid and which are not.


Related issues

Related to Redmine - Patch #4307: Models fails to validate localized field names since ruby... Closed 2009-11-29

Associated revisions

Revision 4599
Added by Jean-Philippe Lang almost 7 years ago

Remove the limitation on characters that can be used in custom_field, issue_status, role, tracker, user names (#5152).

History

#1 Updated by Felix Schäfer over 7 years ago

First- and last names are checked against /^[\w\s\'\-\.]*$/i, i.e. letters, spaces, dashes, dots and apostrophes are allowed. I'm not a big fan of limiting names in any ways, but it seems everyone gets by.

Role names are checked against /^[\w\s\'\-]*$/i i.e. the same without the dots, I'll try to bubble up the topic at some developer meeting to see if there was a reason for limiting them so drastically.

#2 Updated by Bruno Medeiros almost 7 years ago

I don't understand the reason for that limitation too.
+1

#3 Updated by Jean-Philippe Lang almost 7 years ago

  • Status changed from New to Closed
  • Target version set to 1.2.0
  • Resolution set to Fixed

Limitation removed in r4599.

#4 Updated by Go MAEDA over 2 years ago

  • Related to Patch #4307: Models fails to validate localized field names since ruby 1.9.1p343 and 1.9.2p added

Also available in: Atom PDF