Longer field for request_uri

Created on 27 June 2024, 4 months ago
Updated 12 September 2024, about 1 month ago

Problem/Motivation

The request_uri field is limited to 255 characters, but URIs might be up to around 2048 characters. Long URIs cause errors because the field is too small, eg:

Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'request_uri' at row 1: INSERT INTO "rest_log"

Steps to reproduce

Make an API request where the URI is super long.

Proposed resolution

Change the request_uri field to be a long_string, instead of a string.

Data model changes

Change the request_uri field to be a long_string, instead of a string.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom JKingsnorth

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