`BlockComponent::validateComponentInput()` allows garbage to pile up

Created on 14 May 2025, about 6 hours ago

Overview

Current logic:

  public function validateComponentInput(array $inputValues, string $component_instance_uuid, ?FieldableEntityInterface $entity): ConstraintViolationListInterface {
    if (!$this->requiresExplicitInput()) {
      return new ConstraintViolationList();
    }

… which means that I could store garbage values for block component instances, and the block component source plugin would not complain.

Proposed resolution

TBD

User interface changes

šŸ“Œ Task
Status

Active

Version

0.0

Component

Component sources

Created by

šŸ‡§šŸ‡ŖBelgium wim leers Ghent šŸ‡§šŸ‡ŖšŸ‡ŖšŸ‡ŗ

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024