ioBroker.admin icon indicating copy to clipboard operation
ioBroker.admin copied to clipboard

[permission handling] Changing group permissions requires adapter restart

Open klein0r opened this issue 3 years ago • 7 comments

Describe the bug

  1. Create a new user
  2. Add the user to group system.group.user
  3. Logged in with the new user in another browser
  4. Set all object permissions for object to users group with admin
Screenshot 2022-10-05 at 09 27 01
  1. Try to create a new object in 0_userdata.0 with user
  2. permissionError
  3. Reload the browser tab: still permissionError
  4. Log out and log in: permissionError

This solves the problem:

iobroker stop admin.0
iobroker start admin.0

Caching issue?

Bonus

This should be hidden if "create object" permission is missing

Screenshot 2022-10-05 at 09 18 32

Versions:

  • Adapter version: 6.2.22

klein0r avatar Oct 05 '22 07:10 klein0r

Does it also needs a restart (and not only logoout/login) when you do a "Shift reload"? (To make sure not certein data are still cached in browser

Apollon77 avatar Oct 05 '22 07:10 Apollon77

@Apollon77 Yes. Seems like permissions are cached on server side?!

ScreenFlow

klein0r avatar Oct 05 '22 07:10 klein0r

which js-controller? Yes they are bug shopud be updated on object changes ......

Apollon77 avatar Oct 05 '22 08:10 Apollon77

js-controller 4.0.23 node v16.17.0

klein0r avatar Oct 05 '22 08:10 klein0r

Other way around (revoking object write)

It looks like the permissions are just evaluated on client side?! After removing the "object write" permissions I can still create new objects until the browser is refreshed. At least the server side should prevent that

I was able to create object "ok2"

ScreenFlow

klein0r avatar Oct 05 '22 08:10 klein0r

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar May 09 '23 02:05 stale[bot]

⬆️

klein0r avatar May 09 '23 08:05 klein0r