-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Migration of usernames from ES to Cassandra #1374
Comments
I forgot to mention that "-" also gets translated to a "." |
Strange is also that a rollback is performed, so task and observable is not created, but case stays. |
I've fixed user translation. I hope I cover all cases. |
@To-om When I perform the migration and it fails because of missing user, it says: "Exception raised, rollback". So i though that tasks that were created are deleted again. But the case that was created stays in that as it is. That means after the migration, there are a lot of cases, that have no observables and no tasks, but the case was migrated from ES. |
@crackytsi The dashes are correctly handled, I'll add some tests. |
@To-om : I compiled based on your latest dev-commit TH4, but user migration still does not work as expected:
|
I used the new version on a complete new keyspace of Cassandra.
|
Importing user without role doesn't fail any more. |
Bug
Work Environment
Problem Description
I have users in the format:
firstname.lastname@example.com
During import with migration tool they get renamed in TheHive4 to:
firstname.lastname.example.com@test.local
Additional this later leads to issues in migration:
Is there an option to preserve there login and do not append the default domain?
Possible Solutions
If username contains one "@" preserve the username.
The text was updated successfully, but these errors were encountered: