Defect #26892

Link to user in wiki syntax only works when login is written in lower case

Added by Anders Thomsen 7 months ago. Updated 13 days ago.

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

0%

Category:Text formatting
Target version:4.1.0
Resolution: Affected version:3.4.2

Description

Related: #4179

The plugin "Redmine Mentions" gives a handy dropdown with users when hitting "@" on the keyboard. Selecting a user puts "@loginname" in the textbox. This works great with the feature implemented in #4179. However, if the user's login contains capital letters it is not recognized by the regex in application_helper.

"Redmine mentions" puts in the actual login-name with exact casing (what I believe is the correct behaivour).

The regex should be ajusted to a-zA-Z

0001-user-link-syntax-should-work-also-with-logins-in-upp.patch Magnifier (1.79 KB) Marius BALTEANU, 2018-04-08 09:38


Related issues

Related to Redmine - Feature #4179: Link to user in wiki syntax Closed 2009-11-08
Blocked by Redmine - Defect #26443: User link syntax (user:login) doesn't work for logins con... Confirmed

History

#1 Updated by Go MAEDA 7 months ago

#2 Updated by Toshi MARUYAMA 6 months ago

  • Target version set to 4.1.0

#3 Updated by Marius BALTEANU 13 days ago

  • Blocked by Defect #26443: User link syntax (user:login) doesn't work for logins consisting of an email adress added

#4 Updated by Marius BALTEANU 13 days ago

Attached is a patch that fixes this issue and it should be applied after #26443.

#5 Updated by Marius BALTEANU 13 days ago

  • Status changed from New to Confirmed

Also available in: Atom PDF