An unhandled exception has been thrown:
TypeError: Return value of "OCA\User_SAML\Command\GetMetadata::execute()" must be of the type int, "null" returned. in /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:301
Stack trace:
#0 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#1 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#2 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#3 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#4 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#5 /var/www/nextcloud/occ(11): require_once('...')
The reason for this is that /var/www/nextcloud/apps/user_saml/lib/Command/ConfigGet.php don't return a exit code. All other commands in /var/www/nextcloud/apps/user_saml/lib/Command returns something like:
class ConfigGet extends Base {
protected function execute(InputInterface $input, OutputInterface $output): int {
return 0; // <- like this
}
}
Server configuration
Operating system: ubuntu 22.04 LTS
Web server: apache 2.4
Database: mariadb 10.6
PHP version: 8.1
Nextcloud version: 27.1.3
Where did you install Nextcloud from: Downloaded zip from homepage
Steps to reproduce
Expected behaviour
The metadata should be output to stdout
Actual behaviour
Metadata is outputed and also an error:
The reason for this is that
/var/www/nextcloud/apps/user_saml/lib/Command/ConfigGet.php
don't return a exit code. All other commands in /var/www/nextcloud/apps/user_saml/lib/Command returns something like:Server configuration
Operating system: ubuntu 22.04 LTS
Web server: apache 2.4
Database: mariadb 10.6
PHP version: 8.1
Nextcloud version: 27.1.3
Where did you install Nextcloud from: Downloaded zip from homepage