Skip to content
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] Importing of some user failes #1323

Closed
crackytsi opened this issue May 13, 2020 · 1 comment
Closed

[Bug] Importing of some user failes #1323

crackytsi opened this issue May 13, 2020 · 1 comment
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@crackytsi
Copy link

Bug / Feature Request

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
TheHive version / git hash 4 RC2
Package Type DEB

Problem Description

When I start the migration tool to import everything, I can see the following error message:

[error] o.t.t.m.t.Input - org.thp.thehive.migration.dto.InputUser read failure:List(
 - : JsonValidationError(List('roles' is undefined on object: {"name":"error2","updatedAt":1518167098512,"status":"Locked","preferences":"{}","createdAt":1497380352646,"createdBy":"user1","updatedBy":" user1","password":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","_type":"user","_routing":"user7","_parent":null,"_id":" user7","_version":1}),WrappedArray()))

It seems that the attribute roles (I guess it was never used) makes some trouble.
Can you handle that in an upcoming release to allow also this user migration?

@crackytsi crackytsi added TheHive4 TheHive4 related issues bug labels May 13, 2020
@nadouani nadouani added this to the 4.0.0-RC3 milestone May 13, 2020
@To-om
Copy link
Contributor

To-om commented May 16, 2020

This error means that your data in ElasticSearch has invalid format. TheHive 3 doesn't permit to create an user without roles.
Anyway, I add a fallback for this case and consider the user as "read-only" profile.

@To-om To-om closed this as completed May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

3 participants