I had NC 12.0.2 installed with “SSO & SAML authenication” 1.3.4 active.
Using occ, I get this message
-bash-4.2$ php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Updating database schema
Updated database
PHP Fatal error: Class OCA\User_SAML\UserBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\Authentication\IApacheBackend::getLogoutUrl) in /usr/share/nextcloud/apps/user_saml/lib/userbackend.php on line 34
PHP Stack trace:
PHP 1. {main}() /usr/share/nextcloud/occ:0
PHP 2. require_once() /usr/share/nextcloud/occ:11
PHP 3. OC\Console\Application->run() /usr/share/nextcloud/console.php:100
PHP 4. Symfony\Component\Console\Application->run() /usr/share/nextcloud/lib/private/Console/Application.php:170
PHP 5. Symfony\Component\Console\Application->doRun() /usr/share/nextcloud/3rdparty/symfony/console/Application.php:117
PHP 6. Symfony\Component\Console\Application->doRunCommand() /usr/share/nextcloud/3rdparty/symfony/console/Application.php:186
PHP 7. OC\Core\Command\Upgrade->run() /usr/share/nextcloud/3rdparty/symfony/console/Application.php:818
PHP 8. OC\Core\Command\Upgrade->execute() /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php:256
PHP 9. OC\Updater->upgrade() /usr/share/nextcloud/core/Command/Upgrade.php:263
PHP 10. OC\Updater->doUpgrade() /usr/share/nextcloud/lib/private/Updater.php:130
PHP 11. OC\Updater->doAppUpgrade() /usr/share/nextcloud/lib/private/Updater.php:262
PHP 12. OC_App::loadApp() /usr/share/nextcloud/lib/private/Updater.php:386
PHP 13. OC_App::requireAppFile() /usr/share/nextcloud/lib/private/legacy/app.php:149
PHP 14. require_once() /usr/share/nextcloud/lib/private/legacy/app.php:209
PHP 15. spl_autoload_call() /usr/share/nextcloud/apps/user_saml/appinfo/app.php:41
PHP 16. OC\Autoloader->load() /usr/share/nextcloud/apps/user_saml/appinfo/app.php:41
PHP 17. require_once() /usr/share/nextcloud/lib/autoloader.php:169
-bash-4.2$
I manually update appconfig row user_saml enabled to no.
The upgrade works successfully.
I can then access the system and upgrade the SAML app to 1.4.0 and re-enable it.