Feature #12844

Allow upper-case letters in project identifiers

Added by Arnaud GUT almost 9 years ago. Updated almost 8 years ago.

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

0%

Category:Project settings
Target version:-
Resolution:

Description

I'm currently synchronizing a lot of projects into Redmine with another application, and I have to flatten all source projects identifiers (which use mixed case) to all lowercase. The problem is that in some cases those names are used on the file system, and all my servers are Unix. Thus file paths end all wrong.

I was wondering if the project identifier constraint could be relaxed a bit and accept both upper and lower case letters ?

BTW: there might be a small bug in the automatic identifier generation at project creation time, where underscores becomes dashes instead of staying as underscores.
Arnaud GUT


Related issues

Related to Redmine - Feature #13824: Project identifier for greek + cyrillic glyphs New

History

#1 Updated by Jean-Philippe Lang almost 9 years ago

Arnaud GUT wrote:

I was wondering if the project identifier constraint could be relaxed a bit and accept both upper and lower case letters ?

That seems reasonable.

BTW: there might be a small bug in the automatic identifier generation at project creation time, where underscores becomes dashes instead of staying as underscores.

Fixed in r11195. Thanks for pointing this out.

#2 Updated by Jean-Philippe Lang almost 9 years ago

  • Subject changed from Relaxing project identifier constraints (a bit) to Allow upper-case letters in project identifiers

#3 Updated by Arnaud GUT almost 9 years ago

When this could be implemented as it seems to not be a huge modification (a priori !)?
If you prefer, answer on my private mail.

#4 Updated by Patrick O'Keeffe almost 8 years ago

This shouldn't be difficult to implement:

root/trunk/public/javascripts/project_identifier.js | line 54:

-  identifier = identifier.replace(/[^a-z0-9_]+/gi, '-'); // remaining non-alphanumeric => hyphen
+ identifier = identifier.replace(/[^a-zA-Z0-9_]+/gi, '-'); // remaining non-alphanumeric => hyphen

Note: I don't know if/how this change might affect other components.

#5 Updated by Daniel Felix almost 8 years ago

What is the use case behind this? What benefit do you get from uppercase identifiers and uppercase URL's? Mostly this makes more problems than uses?

How do you plan to handle Identifieres like "Redmine", "redmine" and "RedMine"? They could occur, but the url is in this cases case insensitive.

#6 Updated by Vincent Caron almost 8 years ago

The use case was one where we would synchronize a repository hierarchy (a Hg repository managed by RhodeCode to be more precise) with a project hierarchy within Redmine. On the repository side, the URLs are built to map the filesystem which is case sensitive under Unix. Once the names were flatten as lowercase Redmine-project-IDs it became impossible to reverse-map those IDs to proper repository paths.

We (Arnaud and I) don't rely on this use case anymore, this ticket may be closed as far as I'm concerned.

#7 Updated by Go MAEDA over 4 years ago

  • Related to Feature #13824: Project identifier for greek + cyrillic glyphs added

Also available in: Atom PDF