# Bug JIM-95 - Jira Migrator cannot import a user with non-alphanumeric characters in their name

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-95

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions | 17.5.0 |
| Observed in versions | 17.4.0 |
| Sprint | Sprint 2 (within the cycle of 17.6) |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Overview

We have some user accounts in the company that contain special characters, such as "\[\]". They are used to designate certain types of accounts and are coming from an external (corporate) system, so we can't control them.

The problem is, OpenProject does not allow creating users with such names, e.g. "\[SA\] Tester".

This is essentially is a blocker for our migration to OpenProject, as we can't change all those accounts, and we can't migrate without them.

### Steps to reproduce

1.  Create a user with full name "\[SA\] Tester" (Jira doesn't have separate fields for first/last name)

2.  Assign an issue in a test project to that user.

3.  In OpenProject, as a system administrator: go to Administration \> Import \> Jira

4.  Provide connection details and choose the test project for import

5.  Attempt to execute import.

### What is the buggy behavior?

  - Import fails with "First name is invalid." error

  - The same happens if I try to create a user with such name directly in OpenProject

### What is the expected behavior?

OpenProject removes the invalid characters for such users and continues importing without errors

### Out of scope

Allowing all characters in usernames for import and/or creation of users

### Environment information

**OpenProject installation type**

  - Docker-compose installation

**OpenProject version**

17.4

**Browser**

- [x] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (OracleLinux 8)
- [ ] Chrome OS
- [ ] Other (please specify)
