プロジェクト

全般

プロフィール

Vote #73139

未完了

Allow upper-case letters in project identifiers

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Project settings_43
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
43
version_id:
0
issue_org_id:
12844
author_id:
70304
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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


journals

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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
When this could be implemented as it seems to not be a huge modification (a priori !)?
If you prefer, answer on my private mail.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,13824,Project identifier for greek + cyrillic glyphs

Admin Redmine さんが約2年前に更新

  • カテゴリProject settings_43 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0