Field length limit logic is incorrect

Created on 24 June 2025, 25 days ago

Problem/Motivation

The logic for field lengths is incorrect, e.g. setting a field to a max size of 64kb results in an error that says the value can't be more than 4kb.

Steps to reproduce

Add a JSON "text" field to a content type, set the limit to 64kb.
Create a node of that content type, paste in Drupal's composer.json content.

Expected behavior:
* The node saves.

Actual behavior:
* This error is shown: JSON: the text may not be longer than 4096 characters.

Proposed resolution

Fix the field length logic.

Remaining tasks

Fix the field length logic.
Add test coverage.

User interface changes

Field lengths will work correctly.

API changes

n/a

Data model changes

n/a

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States damienmckenna NH, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024