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

Javascript error in settings.js function setupGroupsSelect() #20619

Closed
iandavidwild opened this issue Apr 23, 2020 · 1 comment · Fixed by #19124
Closed

Javascript error in settings.js function setupGroupsSelect() #20619

iandavidwild opened this issue Apr 23, 2020 · 1 comment · Fixed by #19124
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@iandavidwild
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create two groups. One groups should allow sharing but the other not.
  2. Navigate to .../settings/admin/sharing
  3. Under the "Sharing" heading, click on "Exclude groups from sharing".

Expected behaviour

A drop down menu listing the available groups should be displayed. Groups can be selected from this list.

Actual behaviour

A text box is revealed but no drop down menu. Please see Chrome Developer Tools screen grab below for details on the actual JavaScript error.

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: Apache

Database: MySQL 5.7.29

PHP version: 7.3.16

Nextcloud version: 17.0.5

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 17.0.4

Where did you install Nextcloud from: Snap package

Signing status:

Signing status No errors have been found.

List of activated apps:

App list Enabled: - accessibility: 1.3.0 - activity: 2.10.1 - admin_audit: 1.7.0 - calendar: 2.0.3 - cloud_federation_api: 1.0.0 - comments: 1.7.0 - contacts: 3.3.0 - data_request: 1.4.0 - dav: 1.13.0 - encryption: 2.5.0 - federatedfilesharing: 1.7.0 - federation: 1.7.0 - files: 1.12.0 - files_pdfviewer: 1.6.0 - files_rightclick: 0.15.1 - files_sharing: 1.9.0 - files_trashbin: 1.7.0 - files_versions: 1.10.0 - files_videoplayer: 1.6.0 - firstrunwizard: 2.6.0 - logreader: 2.2.0 - lookup_server_connector: 1.5.0 - nextcloud_announcements: 1.6.0 - notifications: 2.5.0 - oauth2: 1.5.0 - password_policy: 1.7.0 - privacy: 1.1.0 - provisioning_api: 1.7.0 - recommendations: 0.5.0 - serverinfo: 1.7.0 - sharebymail: 1.7.0 - spreed: 7.0.3 - support: 1.0.1 - survey_client: 1.5.0 - systemtags: 1.7.0 - terms_of_service: 1.3.1 - text: 1.1.1 - theming: 1.8.0 - twofactor_backupcodes: 1.6.0 - viewer: 1.2.0 - workflowengine: 1.7.0 Disabled: - files_external - gallery - mail - user_ldap

Nextcloud configuration:

Config report { "system": { "apps_paths": [ { "path": "\/snap\/nextcloud\/current\/htdocs\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps", "url": "\/extra-apps", "writable": true } ], "supportedDatabases": [ "mysql" ], "memcache.locking": "\\OC\\Memcache\\Redis", "memcache.local": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0 }, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "cloud.deightonbowie.co.uk" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "skeletondirectory": "", "dbtype": "mysql", "version": "17.0.5.0", "overwrite.cli.url": "http:\/\/localhost", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "theme": "", "logfile": "\/var\/log\/nextcloud.log", "loglevel": 2, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_smtpsecure": "ssl", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpauthtype": "LOGIN", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***" } }

Are you using external storage, if yes which one: None

Are you using encryption: Yes

Are you using an external user-backend, if yes which one: None

Client configuration

Browser: Chrome 81.0.4044.122

Operating system: Windows 10

Logs

Browser log

Browser log ![setupGroupsSelect_js_error](https://user-images.githubusercontent.com/2386283/80100427-df239c00-8567-11ea-86ff-bfcafbcbcf07.jpg)
@iandavidwild iandavidwild added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 23, 2020
@kesselb kesselb linked a pull request Apr 23, 2020 that will close this issue
@iandavidwild
Copy link
Author

Having investigated this further I can see I was encountering this issue: #13647. The problem is that I had deleted a group that was being excluded. I guess when deleting a group we need to also, potentially, delete the group from the shareapi_exclude_groups_list field in the oc_appconfig table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant