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

Importing exported password predicates #2765

Closed
Scapal opened this issue Nov 21, 2018 · 2 comments
Closed

Importing exported password predicates #2765

Scapal opened this issue Nov 21, 2018 · 2 comments
Assignees
Labels
kind/bug Something is broken.

Comments

@Scapal
Copy link

Scapal commented Nov 21, 2018

If you suspect this could be a bug, follow the template.

Exported using 1.0.10
Imported using 1.0.11rc3

I exported a Dgraph DB containing a 'secret' predicate of type password: secret: password ..
After wiping the DB, reimporting the schema, then importing the exported data, the passwords won't match anymore.

Sample exported secret with part of the key replaced by '...................' for security purpose:

<_:uidea71> <secret> "$2a$10$/9SC/UZ...................0VUVlpm"^^<xs:string> .
<_:uidea73> <secret> "$2a$10$SkYtFDKb...................uMsEmDI0pW9dVJ.efpq"^^<xs:string> .
<_:uidea80> <secret> "$2a$10$w0EOSU21t1DFjP...................zTIHwtMvhsRYUPDb2"^^<xs:string> .
<_:uidea84> <secret> "$2a$10$e0/6sieVJ0wll...................osDseERt8eVWrSwkIHO"^^<xs:string> .
@manishrjain manishrjain added the kind/bug Something is broken. label Nov 21, 2018
@srfrog srfrog self-assigned this Nov 27, 2018
@srfrog
Copy link
Contributor

srfrog commented Nov 27, 2018

Thanks for reporting this. I suspect the exported password value is being fed to the new password predicate.

@srfrog
Copy link
Contributor

srfrog commented Dec 4, 2018

@Scapal master now has the fixed export with password types. Try it and let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

3 participants