Bug on sharing autocomplete Nextcloud 12

When I fill the input with the username or email to share some folder, I’m getting the following ajax error from API:

{“ocs”:{“meta”:{“status”:“failure”,“statuscode”:998,“message”:“Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:\n”},“data”:[]}}

Query String parameters:

format:json
search:test
perPage:200
itemType:folder

Request info:

Request URL:https://ra10.domain.com/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=fdsf&perPage=200&itemType=folder
Request Method:GET
Status Code:200 OK
Remote Address:10.73.1.30:443
Referrer Policy:no-referrer

Thanks in advance!

There is the same message on an existing bug report:

More information is required for developers that they can reproduce this problem.

Yes, but is not my situation because I have turned off Share By Mail and my version is 12… I think is a diferent problem…

I found this error in the background…

Base table or view not found: 1146 Table ‘nextcloud.oc_addressbooks’ doesn’t exist"

So… I run in linux

grep -ri 'create table address' *

And I founded the SQL statement in apps/dav/appinfo/database.xml

CREATE TABLE oc_addressbooks (
    id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
    principaluri VARBINARY(255),
    displayname VARCHAR(255),
    uri VARBINARY(200),
    description TEXT,
    synctoken INT(11) UNSIGNED NOT NULL DEFAULT '1',
    UNIQUE(principaluri(100), uri(100))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

What’s apps/dav/?? I dont know… but I enabled it by console running

php occ app:enable dav

And problem solved!