Content
View differences
Updated by Andrej Sandorf 3 days ago
### Steps to reproduce
1. Have two accounts with the same email address in Jira
2. Login to OP as a user with permissions to migrate from Jira
3. Start a migration run of a project/issue where both accounts are used
### What is the buggy behavior?
* The run is stopped with an error message
<br>
`Import::JiraOpenProjectReference with jira_entity_class Import::JiraUser and jira_entity_id 1486 not found!`
### What is the expected behavior?
1. The import run continues without errors
2. To satisfy OpenProject requirement of unique emails, the duplicated email is amended via the sub addressing mechanism [https://en.wikipedia.org/wiki/Email\_address#Sub-addressing](https://en.wikipedia.org/wiki/Email_address#Sub-addressing) with the accounts’ Jira key
e.g. `someone@example.com` ⇒ [`someone+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com)
`someone+abc@example.com` ⇒ [`someone+abc+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com)
if [`someone+abc+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com) already exists then a counter is added until a unique one can be found [`someone+abc+JIRA0001+1312@example.com`](mailto:someone+JIRA0001@example.com)
3. If a login is already in use (but by someone with a different email address), the same method will be applied for that too
`someone` ⇒ [`someone+JIRA0001`](mailto:someone+JIRA0001@example.com)
if [`someone+JIRA0001`](mailto:someone+JIRA0001@example.com) already exists, a counter is added until a unique combination can be found [`someone+JIRA0001+2304`](mailto:someone+JIRA0001@example.com)
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922403/content">
### Environment information
**OpenProject installation type**
* All
**OpenProject version**
* All since Jira migration beta release
**Browser**
* All
**Operating System**
* All
**Language**
* All
1. Have two accounts with the same email address in Jira
2. Login to OP as a user with permissions to migrate from Jira
3. Start a migration run of a project/issue where both accounts are used
### What is the buggy behavior?
* The run is stopped with an error message
<br>
`Import::JiraOpenProjectReference with jira_entity_class Import::JiraUser and jira_entity_id 1486 not found!`
### What is the expected behavior?
1. The import run continues without errors
2. To satisfy OpenProject requirement of unique emails, the duplicated email is amended via the sub addressing mechanism [https://en.wikipedia.org/wiki/Email\_address#Sub-addressing](https://en.wikipedia.org/wiki/Email_address#Sub-addressing) with the accounts’ Jira key
e.g. `someone@example.com` ⇒ [`someone+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com)
`someone+abc@example.com` ⇒ [`someone+abc+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com)
if [`someone+abc+JIRA0001@example.com`](mailto:someone+JIRA0001@example.com) already exists then a counter is added until a unique one can be found [`someone+abc+JIRA0001+1312@example.com`](mailto:someone+JIRA0001@example.com)
3. If a login is already in use (but by someone with a different email address), the same method will be applied for that too
`someone` ⇒ [`someone+JIRA0001`](mailto:someone+JIRA0001@example.com)
if [`someone+JIRA0001`](mailto:someone+JIRA0001@example.com) already exists, a counter is added until a unique combination can be found [`someone+JIRA0001+2304`](mailto:someone+JIRA0001@example.com)
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922403/content">
### Environment information
**OpenProject installation type**
* All
**OpenProject version**
* All since Jira migration beta release
**Browser**
* All
**Operating System**
* All
**Language**
* All