contacts
contacts copied to clipboard
No provider found for id account exception
Describe the bug
I get a lot of errors No provider found for id account in my log when using Nextcloud 30 together with the latest Contact app. Contacts app seems to trigger the issue after some investigation.
Steps to reproduce
- Use the latest NC30 and your Contacts app
- Go to 'All contacts' in the Contact app
- See errors appear in the logging: "No provider found for id account"
- Inspecting the network tab in the developer tool shows HTTP request:
https://<domain>/ocs/v2.php/teams/resources/account/<contact-name>, which is using this server API end-point: https://github.com/nextcloud/server/blob/master/core/Controller/TeamsApiController.php#L65. And the/resources/{providerId}/{resourceId}is/resources/account/<contact-name>. For some reasonaccountsis an invalid provider identifier now. - Clicking on "Contacts settings" -> Address books -> It does show the address books called "Accounts". Meaning this address book is present, but I'm unsure what is meant by provider ID in this case. I only know that
accountsis causing 500 internal server errors.
Expected behavior
No exceptions, no 500 errors.
Actual behavior
HTTP request https://<domain.com>/ocs/v2.php/teams/resources/account/<user> returning responses:
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>500</statuscode>
<message>Internal Server Error
</message>
</meta>
<data/>
</ocs>
Log is showing:
Contact version
6.1.0
Operating system
Ubuntu server 22.04
PHP engine version
PHP 8.3
Web server
Nginx
Database
MariaDB
Additional info
Related issue: https://github.com/nextcloud/server/issues/48039 (but I think it's a Contacts app issue, is it?).