Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2605150: UrlItem::generateSampleValue() does not generate a valid uri introduced a random test failure in EntityFile::processStubRow
. The function strips the existing scheme from the the file uri. The scheme may be different in many cases. We replace http://
with public://
, this adds two additional chars to the url which trigger the database exception.
The random test failure happened in https://www.drupal.org/pift-ci-job/80178
Proposed resolution
Truncate the new url to max length.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2615450-2.patch | 1.04 KB | webflo |
Comments
Comment #2
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #3
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #4
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #5
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #6
mikeryanLooks good.
Comment #7
alexpottCommitted 84214e8 and pushed to 8.0.x. Thanks!