Batch parsing in the UI leads to exception for parse error

Created on 27 August 2025, about 1 month ago

Problem/Motivation

\Drupal\l10n_server\ConnectorParseHandlerInterface::parseHandler() documents FALSE as a valid return value.

\Drupal\l10n_server\Form\ConnectorBatchConfirmParseForm::batchOperation(), however, does not account for this and unconditionally calls a method on the return value.

Steps to reproduce

If the setup is such that the parser will return FALSE (for example if \Drupal\l10n_server\Entity\Storage\L10nServerReleaseStorage::getIdsToRefresh() returns an empty set) attempt to initiate a batch parsing job from the UI. This will lead to an exception.

Proposed resolution

Account for the return value being FALSE.

Remaining tasks

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Needs review

Version

3.0

Component

User interface

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024