nextcloud / fulltextsearch

🔍 Core of the full-text search framework for Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch
GNU Affero General Public License v3.0
216 stars 51 forks source link

Fulltext search broken with groupfolders enabled. #634

Closed funsurfer2008 closed 1 year ago

funsurfer2008 commented 3 years ago

Hy. If i disable groupfolders indexing is working, but if i enable groupfolders i become this error: An unhandled exception has been thrown: TypeError: OCA\Files_FullTextSearch\Model\MountPoint::isGlobal(): Return value must be of type bool, null returned in /var/www/nextcloud/apps/files_fulltextsearch/lib/Model/MountPoint.php:103 Stack trace:

0 /var/www/nextcloud/apps/files_fulltextsearch/lib/Model/MountPoint.php(175): OCA\Files_FullTextSearch\Model\MountPoint->isGlobal()

1 [internal function]: OCA\Files_FullTextSearch\Model\MountPoint->jsonSerialize()

2 /var/www/nextcloud/apps/files_fulltextsearch/lib/TNC22Logger.php(193): json_encode()

3 /var/www/nextcloud/apps/files_fulltextsearch/lib/TNC22Logger.php(178): OCA\Files_FullTextSearch\Service\GroupFoldersService->log()

4 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php(133): OCA\Files_FullTextSearch\Service\GroupFoldersService->debug()

5 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(379): OCA\Files_FullTextSearch\Service\GroupFoldersService->initGroupSharesForUser()

6 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(661): OCA\Files_FullTextSearch\Service\FilesService->initFileSystems()

7 /var/www/nextcloud/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(317): OCA\Files_FullTextSearch\Service\FilesService->updateDocument()

8 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(407): OCA\Files_FullTextSearch\Provider\FilesProvider->updateDocument()

9 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Live.php(308): OCA\FullTextSearch\Service\IndexService->updateDocument()

10 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Live.php(261): OCA\FullTextSearch\Command\Live->liveCycle()

11 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Live->execute()

12 /var/www/nextcloud/core/Command/Base.php(169): Symfony\Component\Console\Command\Command->run()

13 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()

14 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()

15 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()

16 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()

17 /var/www/nextcloud/console.php(100): OC\Console\Application->run()

18 /var/www/nextcloud/occ(11): require_once('...')

I have nextcloud 21.0.2, and the actual fulltextserach app. brgds

sinichi19 commented 3 years ago

this also what I noticed when i test nc21 the time i created group folder the fulltextserch or elasticsearch had a problem

sethHive commented 3 years ago

same issue in fresh installs of both 21.0.2 and 20.0.10. and disabling group folders does in fact fix it, but this is not a solution.

EDIT: a temporary fix is mentioned in the comments here. https://github.com/nextcloud/files_fulltextsearch/issues/125 which i found after realizing i should be looking in the files_fulltextsearch and not fulltextsearch repo. I suggest deleting this, and following the issue linked above.

funsurfer2008 commented 3 years ago

@hiveintegrated yes. this is fixing the index. brgds

ArtificialOwl commented 3 years ago

please install last version of files_fulltextsearch and confirm this bug is fixed

joshtrichards commented 1 year ago

Closing with no further information provided after 2+ years so I assume it was fixed. :)