Allow longer database file name for the SQLite driver

Created on 18 April 2019, over 5 years ago
Updated 30 January 2023, almost 2 years ago

When installing Drupal with a sqlite database, "Database name" and "Database file" textfield are limited by a length of 128 characters.

Under certain circumstances, this limit is not enough.

In my case, i am running inside a Jenkins job some phpunit tests on Drupal 8.x instances relying on sqlite databases.
Unfortunately the directory provided by Jenkins for my project is quite long, resulting in a local sqlite file name being more than 128 characters, and tests are failing.
Indeed, during a functionnal test, Drupal installation is triggered and an exception is thrown, something like that :

Drupal\Core\Installer\Exception\InstallerException: Database name cannot be longer than <em class="placeholder">128</em> characters but is currently <em class="placeholder">156</em> characters long.
Database name cannot be longer than <em class="placeholder">128</em> characters but is currently <em class="placeholder">156</em> characters long.
Database file cannot be longer than <em class="placeholder">128</em> characters but is currently <em class="placeholder">156</em> characters long.

it would be nice to increase this limit of 128, because today it is the default maxlength of textfield inputs.
so i wll submit a very short patch to overcome this :)
any suggestion/comments on the 512 value i propose ?
many thanks in advance

🐛 Bug report
Status

Needs work

Version

10.1

Component
Install 

Last updated 2 days ago

No maintainer
Created by

🇫🇷France just_like_good_vibes PARIS

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024