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