passman icon indicating copy to clipboard operation
passman copied to clipboard

Auto refreshment for the list

Open egeu5 opened this issue 8 years ago • 9 comments

Bug report

Steps to reproduce

  1. Add some passwords on computer 1
  2. Want to use those passwords on computer 2 with the same account
  3. Click refresh-button on computer 2, now the passwords are available

Expected behaviour

Auto refresh one per day or hour

Actual behaviour

I had to manual refresh the list

Configuration

Operating system: Win 10, Arch Linux

Browser: Firefox 56.0.2

Passman version: 2.0.4

Server Operating system: Arch Linux

Web server: Apache

Database: Mariadb

PHP version: 7

cloud server: Nextcloud

cloud version: 12


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

egeu5 avatar Jan 02 '18 13:01 egeu5

The list refreshes every 30 seconds.

brantje avatar Jan 02 '18 14:01 brantje

Not at my system. I watched the access-log from Apache. If I restart the browser or manually press the sync-button I got the following lines in those log file:

christoph [02/Jan/2018:19:31:27 +0100] "GET /index.php/apps/passman/api/v2/vaults/.... HTTP/1.1" 200 christoph [02/Jan/2018:19:31:28 +0100] "GET /index.php/apps/passman/api/v2/sharing/vault/...../get HTTP/1.1" 200

But there is no GET-Request in the log if I am waiting a long time.

egeu5 avatar Jan 02 '18 18:01 egeu5

My mistake, once every 5 min: as from the code: 60000 * 5

brantje avatar Jan 02 '18 18:01 brantje

I watched the log over half an hour and there was no refreshment.

egeu5 avatar Jan 02 '18 19:01 egeu5

image Tested on demo and my own server

brantje avatar Jan 02 '18 19:01 brantje

Make sure you are logged in to a vault

brantje avatar Jan 02 '18 19:01 brantje

What did you mean with "logged in to a vault"?

My app symbol is showing a 1 on websites where I stored a password. And if there is a password form passman will automatically fill out the formular.

egeu5 avatar Jan 02 '18 22:01 egeu5

@brantje: I understand that it does make sense not to poll not to often for updates. However, it would be useful if the list auto-refreshes after you added or updated an entry in the vault.

For example:

  • Click + to add a new entry
  • Fill the fields
  • Click save You see now the list of entries in the vault. However, the new entry you added is not visible, until you wait for the next refresh (which can take up to 5 mins - this works, by the way). When I tried Passman, I was always confused, why new are not visible or if I updated an entry, the changes do not appear and manually hit [F5] to refresh the page, which is anoying.

Please automatically refresh the list after the user hits the "Save" button. Thanks.

Version: Whatever is currently installed in your demo environment.

haziegler avatar Jan 07 '18 10:01 haziegler

auto-refreshes after you added or updated an entry in the vault. That would be possible with websockets, unfortunately we don't have those and i need to pull for changes.

brantje avatar Apr 01 '18 10:04 brantje