Open melroy89 opened 2 weeks ago
same here after update from 29.0.7 to 30.0
Anyhow it seems to throw this error message: https://github.com/nextcloud/server/blob/8a8bbd4f9fc8b68f4cc73d50599b0f087612f0b9/lib/private/Teams/TeamManager.php#L65
HELP!
Same here after update from 29.0.7 to 30.0.0.
Same problem after the Update to 30.0.0.
Wild guess but: Shouldn't this be a if-else block?
public function getProvider(string $providerId): ITeamResourceProvider {
$providers = $this->getProviders();
if (isset($providers[$providerId])) {
return $providers[$providerId];
}
throw new \RuntimeException('No provider found for id ' . $providerId);
}
Shouldn't this be a if-else block?
That doesn't matter.. The if has a return statement, so in case the if condition is true it will return the provider by ID ($providers[$providerId]
). And since it's a return it will stop executing further. So in that case the RuntimeException
is never executed..
Update: I found how and where to trigger the problem.. So the issue can be triggered via Contact app of Nextcloud. Still unsure if it's a core issue of the server or an issue in the Contact app..
Eg. go to all your contacts overview in the Contact app: https://<domain.com>/apps/contacts/All%20contacts/
(if set in English language).
Contact app will do teams lookup toward the OCS v2 API in Nextcloud. This is what I see in the network tab of the developer tool.
https://<domain>/ocs/v2.php/teams/resources/account/<contact-name>
(<contact-name>
is a real contact in my contact list)/resources/{providerId}/{resourceId}
/resources/account/<contact-name>
account
is not a valid provider identifier.. contacts
? I dunno.. I only know account
is the wrong ID here.. Is account
referring to the Address book?Update on update: yes creating a new contact seems to use the Address book called "Contacts".. Pretty sure here is the issue.. Somebody?
At the bottom of the page -> Clicking on "Contacts settings" -> Address books -> It does show the address books called "Accounts". So not sure what is the problem..
I suspect the Contacts app for now, so I created the issue here: https://github.com/nextcloud/contacts/issues/4165 (although.. it can still be a server issue in NC30, I need to know back from the devs.. At this point I'm just guessing)
At the bottom of the page -> Clicking on "Contacts settings" -> Address books -> It does show the address books called "Accounts". So not sure what is the problem..
The "account" provider could seem like the system address book. (Also despite having the said address book deactivated via a OCC command.)
OK.. So I dived even deeper now. And I checked the oc_addressbooks
table in my MariaDB DB of NC:
I believe account
should be renamed to system
?? Or the DB record is wrong.. Either way, there is a bug.
⚠️ This issue respects the following points: ⚠️
Bug description
I get a lot of errors in my error log when using Nextcloud 30. It seems to be related to the Contacts app.
Steps to reproduce
/apps/contacts/All%20contacts/
Expected behavior
No errors in error log.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info