Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setContent Error while indexing still exist in V1.3.1 with nc16 #495

Closed
justemu opened this issue May 14, 2019 · 2 comments
Closed

setContent Error while indexing still exist in V1.3.1 with nc16 #495

justemu opened this issue May 14, 2019 · 2 comments

Comments

@justemu
Copy link

justemu commented May 14, 2019

Nextcloud 16 with
Fulltextsearch 1.3.1
Fulltextsearch - Files 1.3.0
Fulltextsearch - elasticsearch platform 1.3.0

Elasticsearch 6.7 with
ingest-attachment 6.7.0
analysis-smartcn 6.7.0
analysis-phonetic 6.7.0
analysis-icu 6.7.0
search-guard-6 6.7.0-24.3
PHP 7

An unhandled exception has been thrown:
TypeError: Argument 1 passed to OC\FullTextSearch\Model\IndexDocument::setContent() must be of the type string, null given, called in /var/www/html/apps/deck/lib/Service/FullTextSearchService.php on line 182 and defined in /var/www/html/lib/private/FullTextSearch/Model/IndexDocument.php:477
Stack trace:
#0 /var/www/html/apps/deck/lib/Service/FullTextSearchService.php(182): OC\FullTextSearch\Model\IndexDocument->setContent(NULL)
#1 /var/www/html/apps/deck/lib/Provider/DeckProvider.php(187): OCA\Deck\Service\FullTextSearchService->fillIndexDocument(Object(OC\FullTextSearch\Model\IndexDocument))
#2 /var/www/html/apps/fulltextsearch/lib/Service/IndexService.php(325): OCA\Deck\Provider\DeckProvider->fillIndexDocument(Object(OC\FullTextSearch\Model\IndexDocument))
#3 /var/www/html/apps/fulltextsearch/lib/Service/IndexService.php(205): OCA\FullTextSearch\Service\IndexService->indexDocuments(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Deck\Provider\DeckProvider), Array, Object(OCA\FullTextSearch\Model\IndexOptions))
#4 /var/www/html/apps/fulltextsearch/lib/Command/Index.php(409): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Deck\Provider\DeckProvider), '2D7BCF4E-71CA-4...', Object(OCA\FullTextSearch\Model\IndexOptions))
#5 /var/www/html/apps/fulltextsearch/lib/Command/Index.php(273): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Deck\Provider\DeckProvider), Object(OCA\FullTextSearch\Model\IndexOptions))
#6 /var/www/html/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/3rdparty/symfony/console/Application.php(901): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/3rdparty/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/console.php(97): OC\Console\Application->run()
#13 /var/www/html/occ(11): require_once('/var/www/html/c...')


The error is very similar to previous reported and fixed issues, but it happens again in the newest version of the plugin (1.3.1) with NC16.

@justemu justemu changed the title setContent Error while indexing still exist in V1.31 with nc16 setContent Error while indexing still exist in V1.3.1 with nc16 May 14, 2019
@justemu
Copy link
Author

justemu commented May 14, 2019

Update : it is the same issue as #492 . Cancel of Plugin Deck can avoid this error.

@ArtificialOwl
Copy link
Member

nextcloud/deck#1049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants