FOUR-6432: 4.2.31-Adjust upgrade migration that updates each username based on a list of disallowed not to sanitize the #4418
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue & Reproduction Steps
Keeps @ + . - _ characters in user names when the migration that fixes user names is run
Solution
How to Test
Add users that use not allowed characters and allowed characters, for example
user1.lastname1
user2@lastname2
user3_lastname3
user4-lastname4
user5+lastname5
user6~lastname6
user7 lastname7
user8*lastname8
user9^lastname9
After the upgrade the user names should be modified to (not allowed characters must be removed):
user1.lastname1
user2@lastname2
user3_lastname3
user4-lastname4
user5+lastname5
user6lastname6
user7lastname7
user8lastname8
user9lastname9
Related Tickets & Packages
https://processmaker.atlassian.net/browse/FOUR-6432
Code Review Checklist