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

[Bug]: Unable to uncheck 'restrict usage/edit to specific groups' in Nextcloud Admin Settings #3506

Open
isdnfan opened this issue Feb 27, 2024 · 4 comments
Labels
bug Something isn't working feature: settings

Comments

@isdnfan
Copy link

isdnfan commented Feb 27, 2024

Describe the bug

  • once checked both values can not be unchecked.
    error is logged in browser console

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://cloud.mydomain/settings/admin/richdocuments)'
  2. Check the checkbox 'restrict usage to specific groups'
  3. try to unCheck the checkbox 'restrict usage to specific groups'
  4. in browser console see error 'TypeError: this.value.filter is not a function'

Expected behavior
settings could be checked/unchecked

Screenshots
image

Client details:

  • OS: Windows
  • Browser Firefox

Server details

Operating system: docker community edition
Web server: Apache
Database: MariaDB
PHP version: 8.2
Nextcloud version: 28.0.2
Version of the richdocuments app 8.3.1
Version of Collabora Online 23.05.6.4
Configuration of the richdocuments app

    "richdocuments": {
      "canonical_webroot": "",
      "doc_format": "",
      "edit_groups": "",
      "enabled": "yes",
      "external_apps": "",
      "installed_version": "8.3.1",
      "public_wopi_url": "https://collabora.mydomain.tld",
      "types": "prevent_group_restriction",
      "use_groups": "",
      "wopi_allowlist": "172.16.0.0/12,fd00:feed:beef::/48",
      "wopi_url": "https://collabora.mydomain.tld"
    }

initially reported at https://help.nextcloud.com/t/nextcloud-collabora-code-docker-compose-almost-everything-is-working-except-it-isnt/183450

@isdnfan
Copy link
Author

isdnfan commented Feb 27, 2024

similar to #3377

@joshtrichards joshtrichards added bug Something isn't working feature: settings labels Mar 6, 2024
@lftsy
Copy link

lftsy commented Apr 20, 2024

FYI, here is the woraround I used

root@ifrit:[~]# sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ config:app:delete richdocuments use_groups
Config value use_groups of app richdocuments deleted

root@ifrit:[~]# sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ config:app:delete richdocuments edit_groups
Config value edit_groups of app richdocuments deleted

@RealKoenisch
Copy link

RealKoenisch commented May 5, 2024

This bug goes even deeper. In case you limit the usage of office by restricing the groups (1st option), for all non listed groups the folder management is broken - click on o folder for users in groups without office access will lead to a download, instead of opening the folder; right click on the folder will not shown the nextcloud menu, the display of the the shared sources is not shown (icon is missing) and finally the 3-horizontal dots are missing as well.

User of a group without access to office
image

User with access to office
image

image

KR

@steadfasterX
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: settings
Projects
None yet
Development

No branches or pull requests

5 participants