server/apps
fretn 7efcd11b8e Fix for crashing occ files:scan
when $share === false then (int)$share['share_type'] will always be equal to (int)0

which results in following crash:

[root@server nextcloud] sudo -u apache php occ files:scan someuser
The current PHP memory limit is below the recommended value of 512MB.
Starting scan for user 1 out of 1 (someuser)
An unhandled exception has been thrown:
TypeError: Argument 1 passed to OC\OCS\DiscoveryService::discover() must be of the type string, null given, called in /var/www/html/nextcloud/apps/files_sharing/lib/External/Manager.php on line 382 and defined in /var/www/html/nextcloud/lib/private/OCS/DiscoveryService.php:65
Stack trace:
0 /var/www/html/nextcloud/apps/files_sharing/lib/External/Manager.php(382): OC\OCS\DiscoveryService->discover(NULL, 'FEDERATED_SHARI...')
1 /var/www/html/nextcloud/apps/files_sharing/lib/External/Manager.php(527): OCA\Files_Sharing\External\Manager->sendFeedbackToRemote(NULL, NULL, NULL, 'decline')
2 /var/www/html/nextcloud/apps/files_sharing/lib/External/Storage.php(216): OCA\Files_Sharing\External\Manager->removeShare('files/Someth...')
3 [internal function]: OCA\Files_Sharing\External\Storage->checkStorageAvailability()
4 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(505): call_user_func_array(Array, Array)
5 [internal function]: OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array)
6 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(505): call_user_func_array(Array, Array)
7 /var/www/html/nextcloud/apps/files_sharing/lib/External/Scanner.php(89): OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array)
8 /var/www/html/nextcloud/apps/files_sharing/lib/External/Scanner.php(44): OCA\Files_Sharing\External\Scanner->scanAll()
9 /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php(245): OCA\Files_Sharing\External\Scanner->scan('', true, 3)
10 /var/www/html/nextcloud/apps/files/lib/Command/Scan.php(172): OC\Files\Utils\Scanner->scan('/someuser', true, NULL)
11 /var/www/html/nextcloud/apps/files/lib/Command/Scan.php(249): OCA\Files\Command\Scan->scanFiles('someuser', '/someuser', false, Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false)
12 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(251): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
13 /var/www/html/nextcloud/core/Command/Base.php(162): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
14 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
15 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
16 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
17 /var/www/html/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
18 /var/www/html/nextcloud/console.php(96): OC\Console\Application->run()
19 /var/www/html/nextcloud/occ(11): require_once('/var/www/html/n...')
20 {main}[root@server nextcloud]

Signed-off-by: fretn <frederikdelaere+github@gmail.com>
2019-01-24 11:45:53 +01:00
..
accessibility Fix empty content icons on darktheme 2019-01-23 12:55:19 +01:00
admin_audit Bump versions of server and the requirements of apps 2018-11-23 10:28:40 +01:00
cloud_federation_api update compatible versions for cloud federation api 2018-11-29 21:47:38 +01:00
comments [tx-robot] updated from transifex 2019-01-19 01:12:22 +00:00
dav Merge pull request #13642 from nextcloud/contacts-menu-url-fix 2019-01-22 13:00:07 +01:00
encryption [tx-robot] updated from transifex 2019-01-19 01:12:22 +00:00
federatedfilesharing Merge pull request #13648 from nextcloud/darktheme-fix 2019-01-22 16:30:14 +01:00
federation [tx-robot] updated from transifex 2019-01-16 01:12:34 +00:00
files Merge pull request #13723 from kofemann/patch-1 2019-01-22 09:26:40 +01:00
files_external [tx-robot] updated from transifex 2019-01-18 01:14:32 +00:00
files_sharing Fix for crashing occ files:scan 2019-01-24 11:45:53 +01:00
files_trashbin [tx-robot] updated from transifex 2019-01-20 01:12:32 +00:00
files_versions [tx-robot] updated from transifex 2019-01-09 01:12:39 +00:00
lookup_server_connector Bump versions of server and the requirements of apps 2018-11-23 10:28:40 +01:00
oauth2 Merge pull request #13775 from nextcloud/dependabot/npm_and_yarn/apps/oauth2/webpack-4.29.0 2019-01-24 08:50:48 +01:00
provisioning_api Fix doc block 2019-01-10 10:49:09 +01:00
sharebymail [tx-robot] updated from transifex 2019-01-21 01:11:50 +00:00
systemtags [tx-robot] updated from transifex 2019-01-20 01:12:32 +00:00
testing Bump versions of server and the requirements of apps 2018-11-23 10:28:40 +01:00
theming [tx-robot] updated from transifex 2019-01-16 01:12:34 +00:00
twofactor_backupcodes [tx-robot] updated from transifex 2019-01-21 01:11:50 +00:00
updatenotification Bump nextcloud-vue from 0.5.0 to 0.6.0 in /apps/updatenotification 2019-01-21 11:20:23 +01:00
user_ldap [tx-robot] updated from transifex 2019-01-24 01:12:02 +00:00
workflowengine [tx-robot] updated from transifex 2019-01-17 01:12:15 +00:00