Skip to content

Can't RSVP to events when the username includes blank spaces #16877

Description

@tikoflano

Steps to reproduce

  1. Create usar with the username "Awesome Name" (username, not display name)
  2. This user sends and invitation to an event to other user with username "normalusername"
  3. "normalusername" receives the email with the invite and Accepts it (or Rejects, whatever)
  4. The webpage opened (in the form https://mynextcloud.com/apps/dav/invitation/accept/pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF) shows "Internal Server Error"
  5. Logs shows "Sabre\DAV\Exception\NotFound: Principal with name Awesome%20Name not found"

Expected behaviour

You should be able to RSVP the event

Actual behaviour

Internal Server Error

Server configuration

Operating system: Linux 3.10.0-957.10.1.el7.x86_64 nextcloud/calendar#1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64

Web server: Apache/2.4.38 (Debian) (apache2handler)

Database: mysql 10.4.7

PHP version: 7.3.8

Server version: 16.0.4 - 16.0.4.1

Calendar version: 1.7.0

Login as admin user into your cloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

No errors have been found.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your instance's installation folder

Enabled:  - accessibility: 1.2.0  - activity: 2.9.1  - announcementcenter: 3.5.1  - apporder: 0.7.1  - audioplayer: 2.7.2  - bookmarks: 1.1.1  - bruteforcesettings: 1.4.0  - calendar: 1.7.0  - checksum: 0.4.3  - circles: 0.17.7  - cloud_federation_api: 0.2.0  - comments: 1.6.0  - contacts: 3.1.3  - cospend: 0.1.0  - dav: 1.9.2  - deck: 0.6.6  - drawio: 0.9.3  - external: 3.3.0  - extract: 1.2.0  - federatedfilesharing: 1.6.0  - federation: 1.6.0  - files: 1.11.0  - files_accesscontrol: 1.6.0  - files_antivirus: 2.1.1  - files_automatedtagging: 1.6.0  - files_external: 1.7.0  - files_frommail: 0.2.0  - files_mindmap: 0.0.15  - files_pdfviewer: 1.5.0  - files_retention: 1.5.1  - files_sharing: 1.8.0  - files_texteditor: 2.8.0  - files_trashbin: 1.6.0  - files_versions: 1.9.0  - files_videoplayer: 1.5.0  - firstrunwizard: 2.5.0  - forms: 1.0.3  - gallery: 18.3.0  - group_everyone: 0.1.3  - groupfolders: 4.1.0  - guests: 1.1.1  - impersonate: 1.3.0  - issuetemplate: 0.5.0  - keeweb: 0.5.1  - logreader: 2.1.0  - lookup_server_connector: 1.4.0  - nextcloud_announcements: 1.5.0  - notes: 3.0.1  - notifications: 2.4.1  - oauth2: 1.4.2  - occweb: 0.0.4  - onlyoffice: 2.4.0  - password_policy: 1.6.0  - phonetrack: 0.5.2  - polls: 0.10.2  - privacy: 1.0.0  - provisioning_api: 1.6.0  - quickaccesssorting: 1.0.1  - recommendations: 0.4.0  - serverinfo: 1.6.0  - sharebymail: 1.6.0  - spreed: 6.0.4  - support: 1.0.0  - survey_client: 1.4.0  - systemtags: 1.6.0  - tasks: 0.11.1  - theming: 1.7.0  - twofactor_backupcodes: 1.5.0  - updatenotification: 1.6.0  - video_converter: 0.1.0  - viewer: 1.1.0  - w2g2: 2.2.8  - workflowengine: 1.6.0Disabled:  - admin_audit  - encryption  - event_update_notification  - files_frommail.bak  - files_rightclick  - user_ldap

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your instance's installation folder

{    "system": {        "htaccess.RewriteBase": "\/",        "memcache.local": "\\OC\\Memcache\\APCu",        "apps_paths": [            {                "path": "\/var\/www\/html\/apps",                "url": "\/apps",                "writable": false            },            {                "path": "\/var\/www\/html\/custom_apps",                "url": "\/custom_apps",                "writable": true            }        ],        "memcache.distributed": "\\OC\\Memcache\\Redis",        "memcache.locking": "\\OC\\Memcache\\Redis",        "redis": {            "host": "***REMOVED SENSITIVE VALUE***",            "port": 6379        },        "mail_smtpmode": "smtp",        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",        "mail_smtpport": 25,        "mail_smtpsecure": "",        "mail_smtpauth": false,        "mail_smtpauthtype": "LOGIN",        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",        "mail_from_address": "***REMOVED SENSITIVE VALUE***",        "mail_domain": "***REMOVED SENSITIVE VALUE***",        "passwordsalt": "***REMOVED SENSITIVE VALUE***",        "secret": "***REMOVED SENSITIVE VALUE***",        "trusted_domains": [            "localhost",            "nextcloud.hosting.cl"        ],        "datadirectory": "***REMOVED SENSITIVE VALUE***",        "dbtype": "mysql",        "version": "16.0.4.1",        "overwrite.cli.url": "https:\/\/nextcloud.hosting.cl",        "dbname": "***REMOVED SENSITIVE VALUE***",        "dbhost": "***REMOVED SENSITIVE VALUE***",        "dbport": "",        "dbtableprefix": "",        "mysql.utf8mb4": true,        "dbuser": "***REMOVED SENSITIVE VALUE***",        "dbpassword": "***REMOVED SENSITIVE VALUE***",        "installed": true,        "instanceid": "***REMOVED SENSITIVE VALUE***",        "overwriteprotocol": "https",        "forwarded_for_headers": [            "HTTP_X_FORWARDED_FOR"        ],        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",        "default_locale": "es_CL",        "skeletondirectory": "\/var\/www\/html\/data\/admin\/files\/Base",        "app_install_overwrite": [            "occweb",            "w2g2"        ],        "updatechecker": "true",        "has_internet_connection": "true",        "theme": "",        "maintenance": false,        "loglevel": 2,        "csrf.optout": {            "1": "\/\\bKeeWeb\\b\/"        }    }}

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

Are you using encryption: no

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

Client configuration

Browser: Any

Operating system: Any

Logs

Log file (data/nextcloud.log)

{"reqId":"OQbuwIMJUwQhHxaEdBuc","level":3,"time":"2019-08-26T22:18:51+00:00","remoteAddr":"192.168.120.185","user":"alvaro","app":"index","method":"GET","url":"\/apps\/dav\/invitation\/accept\/pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF","message":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"Principal with name Tomy%20Casamayor not found","Code":0,"Trace":[{"file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php","line":76,"function":"getChild","class":"Sabre\\DAVACL\\AbstractPrincipalCollection","type":"->","args":["Tomy%20Casamayor"]},{"file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php","line":71,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->","args":["calendars\/Tomy%20Casamayor"]},{"file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAVACL\/Plugin.php","line":621,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->","args":["calendars\/Tomy%20Casamayor\/inbox"]},{"file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAVACL\/Plugin.php","line":196,"function":"getCurrentUserPrivilegeSet","class":"Sabre\\DAVACL\\Plugin","type":"->","args":["calendars\/Tomy%20Casamayor\/inbox\/"]},{"file":"\/var\/www\/html\/apps\/dav\/lib\/Connector\/Sabre\/DavAclPlugin.php","line":49,"function":"checkPrivileges","class":"Sabre\\DAVACL\\Plugin","type":"->","args":["calendars\/Tomy%20Casamayor\/inbox\/",["{urn:ietf:params:xml:ns:caldav}schedule-deliver-reply"],1,false]},{"file":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/CalDAV\/Schedule\/Plugin.php","line":506,"function":"checkPrivileges","class":"OCA\\DAV\\Connector\\Sabre\\DavAclPlugin","type":"->","args":["calendars\/Tomy%20Casamayor\/inbox\/","{urn:ietf:params:xml:ns:caldav}schedule-deliver-reply",1,false]},{"file":"\/var\/www\/html\/apps\/dav\/lib\/CalDAV\/InvitationResponse\/InvitationResponseServer.php","line":116,"function":"scheduleLocalDelivery","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->","args":[{"uid":"YP71EG8J5T2DS18BLP9LL","component":"VEVENT","method":"REPLY","sequence":null,"sender":"mailto:alvaro@hosting.cl","senderName":null,"recipient":"mailto:tomas.casamayor@neuronal.cl","recipientName":null,"scheduleStatus":null,"message":{"name":"VCALENDAR","parent":null,"__class__":"Sabre\\VObject\\Component\\VCalendar"},"significantChange":true,"__class__":"Sabre\\VObject\\ITip\\Message"}]},{"file":"\/var\/www\/html\/apps\/dav\/lib\/Controller\/InvitationResponseController.php","line":81,"function":"handleITipMessage","class":"OCA\\DAV\\CalDAV\\InvitationResponse\\InvitationResponseServer","type":"->","args":[{"uid":"YP71EG8J5T2DS18BLP9LL","component":"VEVENT","method":"REPLY","sequence":null,"sender":"mailto:alvaro@hosting.cl","senderName":null,"recipient":"mailto:tomas.casamayor@neuronal.cl","recipientName":null,"scheduleStatus":null,"message":{"name":"VCALENDAR","parent":null,"__class__":"Sabre\\VObject\\Component\\VCalendar"},"significantChange":true,"__class__":"Sabre\\VObject\\ITip\\Message"}]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"accept","class":"OCA\\DAV\\Controller\\InvitationResponseController","type":"->","args":["pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Controller\\InvitationResponseController"},"accept"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Controller\\InvitationResponseController"},"accept"]},{"file":"\/var\/www\/html\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\DAV\\Controller\\InvitationResponseController","accept",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF","_route":"dav.invitation_response.accept"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"token":"pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF","_route":"dav.invitation_response.accept"}]},{"file":"\/var\/www\/html\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"token":"pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF","_route":"dav.invitation_response.accept"}]},{"file":"\/var\/www\/html\/lib\/base.php","line":975,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/dav\/invitation\/accept\/pQMHNRLp3ap2NwPAIL6NKkvpUue5Po6oztiWmiNbznETYazJhncMsR4CU3LF"]},{"file":"\/var\/www\/html\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAVACL\/AbstractPrincipalCollection.php","Line":118,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.100 Safari\/537.36","version":"16.0.4.1"}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions