advanced-object-search
advanced-object-search copied to clipboard
[Bug]: advanced-object-search:update-mapping logs errors when index is not existing
Expected behavior
no error log
Actual behavior
error log
Processing PortalUserGroup -> index advanced_object_search_portalusergroup
11:45:29 ERROR [pimcore_advanced_object_search] OpenSearch\Common\Exceptions\Missing404Exception: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [advanced_object_search_portalusergroup]","index":"advanced_object_search_portalusergroup","resource.id":"advanced_object_search_portalusergroup","resource.type":"index_or_alias","index_uuid":"_na_"}],"type":"index_not_found_exception","reason":"no such index [advanced_object_search_portalusergroup]","index":"advanced_object_search_portalusergroup","resource.id":"advanced_object_search_portalusergroup","resource.type":"index_or_alias","index_uuid":"_na_"},"status":404} in /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php:656
Stack trace:
#0 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(328): OpenSearch\Connections\Connection->process4xxError(Array, Array, Array)
#1 /var/www/html/vendor/react/promise/src/FulfilledPromise.php(28): OpenSearch\Connections\Connection->OpenSearch\Connections\{closure}(Array)
#2 /var/www/html/vendor/ezimuel/ringphp/src/Future/CompletedFutureValue.php(65): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#3 /var/www/html/vendor/ezimuel/ringphp/src/Core.php(341): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#4 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(260): GuzzleHttp\Ring\Core::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#5 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(238): OpenSearch\Connections\Connection->OpenSearch\Connections\{closure}(Array, Object(OpenSearch\Connections\Connection), Object(OpenSearch\Transport), Array)
#6 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Transport.php(112): OpenSearch\Connections\Connection->performRequest('DELETE', '/advanced_objec...', Array, NULL, Array, Object(OpenSearch\Transport))
#7 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Namespaces/AbstractNamespace.php(61): OpenSearch\Transport->performRequest('DELETE', '/advanced_objec...', Array, NULL, Array)
#8 /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/Namespaces/IndicesNamespace.php(193): OpenSearch\Namespaces\AbstractNamespace->performRequest(Object(OpenSearch\Endpoints\Indices\Delete))
#9 /var/www/html/vendor/pimcore/advanced-object-search/src/Service.php(368): OpenSearch\Namespaces\IndicesNamespace->delete(Array)
Steps to reproduce
call bin/console advanced-object-search:update-mapping
on empty index
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.