nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
986 stars 239 forks source link

sharing calendar with group fails if groupname includes space character #2843

Closed corvus-albus closed 3 years ago

corvus-albus commented 3 years ago

Since the last update of calendar-app sharing calendars with groups that contain space characters in their groupname is no longer working. Old shares won't work, new generated share won't be accepted. If you logout and login again the share will disappear.

Steps to reproduce

  1. Add (as admin) a group with blank space in groupname.
  2. Add members to this group (user B).
  3. Login as user A.
  4. Add a calendar.
  5. Share the calendar with the new group.
  6. Login as user B --> you won't see the shared calendar
  7. Login as user A again. The share disappeared.

Expected behaviour

Sharing with groups containing spaces in their groupnames should work as it was before the last update. (By the way: Sharing files still works with those groups)

Actual behaviour

Sharing calendar with groups containing spaces in their groupnames does not work.

Calendar app

2.1.3

CalDAV-clients used: none

Client configuration

Firefox 84

Operating system: (e.g. Arch Linux) Ubuntu 20.04

Server configuration

Operating system: (e.g. Debian 8) Ubuntu 20.04 Web server: (e.g. Apache, Nginx,...) Apache2 Database: (e.g. MariaDB, SQLite or PostgreSQL) mysql PHP version: (e.g. 7.0.3) 7.4 Nextcloud Version: (see admin page, e.g. 17.0.2) 20.0.5 Updated from an older installed version or fresh install: updated from 20.0.4 List of activated apps: Accessibility 1.6.0, Activity 2.13.4, AppOrder 0.11.0, Auditing / Logging 1.10.0, Calendar 2.1.3, Carnet 0.23.7, Circles 0.20.6, Collaborative tags 1.10.0, Comments 1.10.0, Contacts 3.4.3, Contacts Interaction 1.1.0, Dashboard 7.0.0, Deck 1.2.3, Deleted files 1.10.1, External storage support 1.11.1, Federation 1.10.1, File sharing 1.12.2, First run wizard 2.9.0, Log Reader 2.5.0, Mail 1.7.2, Monitoring 1.10.0, Moodle integration 0.0.5, Nextcloud announcements 1.9.0, Notes 4.0.2, Notifications 2.8.0, Password policy 1.10.1, Passwords 2021.1.0, PDF viewer 2.0.1, Photos 1.2.3, Privacy 1.4.0, Recommendations 0.8.0, Right click 0.17.0, Share by mail 1.10.0, Support 1.3.0, Talk 10.0.5, Tasks 0.13.6, Text 3.1.0, Theming 1.11.0, Update notification 1.10.0, Usage survey 1.8.0, User status 1.0.1, Versions 1.13.0, Video player 1.9.0, Weather status 1.0.0, Default encryption module 2.8.1, Impersonate 1.7.0, LDAP user and group backend 1.10.2, Music 0.17.3, Notifications for calendar event updates 1.2.0, Preview Generator 3.1.0

Nextcloud configuration: <?php $CONFIG = array ( 'datadirectory' => '', 'dbtype' => '', 'version' => '20.0.5.2', 'dbname' => 'nextcloud', 'dbhost' => '', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'installed' => true, 'share_folder' => '/mit_mir_geteilt', 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => 'OCA\User_LDAP\LDAPProviderFactory', 'ldapUserCleanupInterval' => 51, 'mail_from_address' => '', 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpsecure' => 'tls', 'mail_smtpauth' => 1, 'mail_smtpport' => '587', 'memcache.local' => '\OC\Memcache\Redis', 'redis' => array ( 'host' => '', ), 'memcache.locking' => '\OC\Memcache\Redis', 'skeletondirectory' => '', 'overwriteprotocol' => 'https', 'maintenance' => false, 'loglevel' => 2, 'theme' => '', 'updater.release.channel' => 'stable', 'app_install_overwrite' => array ( 0 => 'ownpad', 1 => 'ldaporg', 2 => 'files_texteditor', ), 'onlyoffice' => array ( 'verify_peer_off' => true, ), 'sharing.minSearchStringLength' => 1, 'sharing.maxAutocompleteResults' => 15, );

Logs

Web server error log (e.g. /var/log/apache)

Insert your webserver log here

Log file (data/nextcloud.log)

Insert your nextcloud.log file here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
tcitworld commented 3 years ago

Duplicate from #2825, see the issue in server.