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

User Profile Creation Bug? #41

Closed
undiagnosed opened this issue Mar 11, 2017 · 1 comment
Closed

User Profile Creation Bug? #41

undiagnosed opened this issue Mar 11, 2017 · 1 comment

Comments

@undiagnosed
Copy link

When a new user profile is created on ZeroMe, the following happens:

1UDbADib99KE9d3qZ87NqJF2QLTHmMkoV/data/userdb/<user_hash>/content.json is created with the following content:

{
"user": [
{
"date_added": 1489271191,
"avatar": "generate",
"hub": "1oranGeS2xsKZ4jVsu9SVttzgkYXu4k9v",
"intro": "Random ZeroNet user",
"user_name": "Zerometst"
}
]
}

Then the file is signed and the previous information that was written is overwritten with the signing data and the user data is no longer in the file. The relevant code is in User.coffee in the saveUserdb function at lines 144-145 where fileWrite and sitePublish commands are called.

Also, no entry is added to the database user table (not sure if it's supposed to be). Entries are added to the json table. However, in my site which is based off of ZeroMe, no entries are added to either table in the database. Where do the writes to the database file occur?

@HelloZeroNet
Copy link
Owner

Thanks, looks like it got broken somewhere.
Fixed in latest release:
HelloZeroNet/ZeroNet@2473a09
And also added a test for it:
HelloZeroNet/ZeroNet@f46f9fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants