Sharing typeahead isn't working

Nextcloud version: 13.0.6
Operating system and version: Ubuntu 18.04
Apache version: 2.4.29
PHP version: 7.2.9

The issue you are facing: When I try to share my calendar with other users, the typeahead shows no matches. The same happens when I try to share a file folder with local users.

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. Open calendar sharing widget or file/folder sharing widget
  2. Type complete username or group name
  3. See nothing happen (calendar) or error message popover stating no such user or group found (files)

The output of your Nextcloud log in Admin > Logging:
No related logs

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '<obscured>',
  'passwordsalt' => '<obscured>',
  'secret' => '<obscured>',
  'trusted_domains' => 
  array (
    0 => '<obscured>',
    1 => '<obscured>',
  ),
  'datadirectory' => '/<obscured>',
  'overwrite.cli.url' => '<obscured>',
  'dbtype' => 'mysql',
  'version' => '13.0.6.1',
  'dbname' => '<obscured>',
  'dbhost' => '<obscured>',
  'dbport' => '',
  'dbtableprefix' => '<obscured>',
  'dbuser' => '<obscured>',
  'dbpassword' => '<obscured>',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'tls',
  'mail_from_address' => '<obscured>',
  'mail_domain' => '<obscured>',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '<obscured>',
  'mail_smtpname' => '<obscured>',
  'mail_smtppassword' => '<obscured>',
  'mail_smtpport' => '<obscured>',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:

 - - [12/Sep/2018:12:34:26 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=R&perPage=200&itemType=principals HTTP/1.1" 200 1188 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:27 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Re&perPage=200&itemType=principals HTTP/1.1" 200 1040 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:27 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Rea&perPage=200&itemType=principals HTTP/1.1" 200 1041 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
- - [12/Sep/2018:12:34:27 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read&perPage=200&itemType=principals HTTP/1.1" 200 1042 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:28 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read-&perPage=200&itemType=principals HTTP/1.1" 200 1043 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:28 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read-O&perPage=200&itemType=principals HTTP/1.1" 200 1044 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:28 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read-On&perPage=200&itemType=principals HTTP/1.1" 200 1045 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
 - - [12/Sep/2018:12:34:28 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read-Onl&perPage=200&itemType=principals HTTP/1.1" 200 1046 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
- - [12/Sep/2018:12:34:29 -0700] "GET /cloud/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=Read-Only&perPage=200&itemType=principals HTTP/1.1" 200 1047 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"

Hi,

Did you check as admin that the following setting is enabled?

Sorry I don’t see anything in your post about a specific admin setting. I will say that this used to work fine as the calendar is currently shared with 2 other users. If I log out, and into a new account, and try to share the new account’s calendar with the group or the original user I tried to share with then the typeahead works. It is configured (somewhere) to only show usernames once a complete match is found, as I don’t want all users on my system to know about all my contacts/other users.

But I digress. This used to work for this user, and newly-created users can share fine.