Allow longer database file name for the SQLite driver

Created on 18 April 2019, about 5 years ago
Updated 30 January 2023, over 1 year 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 1 day 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.69.0 2024