Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8791

Closed
Open
Created Feb 13, 2015 by Administrator@rootOwner

Mentioning user in issue does not work for usernames starting with a number

Created by: ghost

  1. Summary: Mentioning a user by @username in a gitlab issue does not actually add this user to the issue participants and does not make the @username a link to the user profile for usernames starting with a number, such as 3G1234567, on gitlab version 7.7.2.
  2. Steps to reproduce: Register a user with a username such as 3G1234567, and have another user create an issue referencing 3G1234567 using @3G1234567.
  3. Expected behavior: The "@3G1234567" in the issue text will become a clickable link to the user's profile, 3G1234567 will be added to the issue participants, and 3G1234567 will be notified that he was mentioned in an issue.
  4. Observed behavior: The "@3G1234567" in the issue text will not be a link, and 3G1234567 is not notified nor is he added to the issue participants.

We tried to fix it by changing the regular expression in https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/markdown.rb#L124 to NAME_STR = '[a-zA-Z0-9_-.]*', which makes the username clickable, but does not add the user to the issue participants.

Assignee
Assign to
Time tracking