Increase the URL field to avoid issues with long URLs

Created on 2 August 2024, 8 months ago

Problem/Motivation

Importing References to the Bibcite entity, the URL field is not supporting long URLs. Some cases the URLs can be very long and need some more space.
[error] Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'bibcite_url' at row 1

Steps to reproduce

Try to import or add a Reference with a long URL. E.g: https://melbourne.figshare.com/articles/report/_I_think_all_disabled_peo...

Proposed resolution

Change the Field type from $default_string to $default_string_long.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇷Brazil adrianopulz Florianópolis

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

Comments & Activities

Production build 0.71.5 2024