owncloud / moodle-repository_ocis

GNU General Public License v3.0
3 stars 0 forks source link

catch DB exception when getting oauth issuer #18

Closed individual-it closed 1 year ago

individual-it commented 1 year ago

When creating an oauth2 service, using it in a repo and then deleting that auth2 service, the repository list crashes with an SQL error

grafik

This PR catches the exception and disables the invalid oauth2 issuer/service.

Fix to document the thrown exception in moodle: https://tracker.moodle.org/browse/MDL-80093