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

Backup User Data only returns some users? #240

Closed
nardev opened this issue Feb 14, 2019 · 3 comments
Closed

Backup User Data only returns some users? #240

nardev opened this issue Feb 14, 2019 · 3 comments
Labels

Comments

@nardev
Copy link
Collaborator

nardev commented Feb 14, 2019

I just want to see of somebody can test this too.

I have issue when i want to Backup User Data, despite the fact that there is about 110 users in users list, if i try to backup that, i get only 7 in Backup file.

Can somebody confirm/check/test that?

@omersiar
Copy link
Collaborator

omersiar commented Feb 14, 2019

Is there any information available browser's console? especially on Network tab? When you try to backup?

@nardev
Copy link
Collaborator Author

nardev commented Feb 14, 2019

@omersiar i think that i figured out what is happening. Could you try this:

  1. Login to web
  2. Go to Users page and go thought the list a bit, left/right
  3. Go to Backup page and press the Backup User Data

Only in that case this bug happens

Otherways, if you:

  1. Login to web
  2. Go straight to Backup page and press the Backup User Data

So, it's obviously JS bug, it should "reset" the page variable when it asks the device for users list or, there should be another function for extracting users, not page by page.

@omersiar was there any issues if you try to "get" all users at once instead of page by page? Any memory issues?

@nardev
Copy link
Collaborator Author

nardev commented Feb 15, 2019

@omersiar The page = 1; was forgotten in esprfid.js

function backupuser() {
  page = 1;
  backupstarted = true;
  data = [];
  var commandtosend = {};
  commandtosend.command = "userlist";
  commandtosend.page = page;
  websock.send(JSON.stringify(commandtosend));
}

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

No branches or pull requests

2 participants