-
Notifications
You must be signed in to change notification settings - Fork 4
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
when logged in with users an error occurs in vis-2 #251
Comments
Hm which error occurs? You mean the Index.html not found? Please show the log from the browser console when this problem occurs. And please show the permissions of the group the user is in. |
Looks good basically, but 404 should not really be related to some permission error. So if you are logging in as admin the error does not appear? Can you try |
Administrator group works very well. |
Which version of web adapter is installed? It has to do something with web adapter, as this returns 404 in these scenarios. |
my iobroker web adapter version is 6.1.10 |
Hm okay, this seems valid. If you give the group all permissions, does it work then? |
i give all permission to any group but it does not work also |
I've had the same issue and tracked this down to the file permission of the vis folders. Per default, read/write permissions for files like index.html are only given for the user and group that owns the file/folder, which usually is admin/administrator. I worked around the issue by creating yet another group, changed the vis folders file ownership group to this new group and added all admin and vis users to the new user group. What is the influence of the permissions settings for each group: This way you could also specifically restrict access to the editor page to a certain group, by setting the file ownership and permissions accordingly for edit.html. One thing that doesn't yet work for me is the per-page/per-widget visibility for certain user groups. The former seems to be just ignored, while trying to set the latter results into me being redirected to blank page directly from the editor. Another thing: Editing the file permission via the admin adapter file browser (expert view) doesn't work to reliable for me. I did change the _data.json files manually (search and replace groups) and then did run an iobroker restart. |
it did not change. The problem still exists |
Hi a) first login as admin. This somehow initialises the environment, so that a login with a simple user works till the next restart or timeout of a certain component (iobroker, web-instance or similar). I am a bit astonished, that this workaround solves the issue too. This looks like a bug in the web instance. Anyway this is just a workaround, where admin access would be required before a user logs in. b) If you list the files of vis-2, you will see, that all files have no permissions for "others" yet. The following one-liner set all permissions to 664 for all the vis-2 files. I assume there are no secret files, which a simple user may not read. My suggestion to solve this issue quick and easy: |
No existing issues.
Describe the bug
when logging in with users other than the administrator an error occurs in vis-2
To Reproduce
1
Expected behavior
i want to login with other user from, not only with administrator
Screenshots & Logfiles
Adapter version
v2.9.5
js-controller version
5.0.16
Node version
18.19.0
Operating system
windows11 23h2
Additional context
No response
The text was updated successfully, but these errors were encountered: