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.
Follow-up to #2745179: Uncaught exception in link formatter if a link field has malformed data
Problem/Motivation
This should first be triaged and confirmed, but it doesn't appear that link validation is fired when data is imported into D8 link field.
Marking as major because this can lead to system stability issues.
Proposed resolution
Remaining tasks
Reproduce this by migrating in a simple CSV value for a link into a link field. See if malformed links can be stuffed into a node. If it can, then we need to make sure the validation doesn't just fire in the FAPI but also in normal entity CUD operations.
Comments
Comment #2
heddnIt seems like, in general, field validation doesn't occur during a migration. Just confirmed with mikeryan1 in IRC. Also see #2550033: Handle empty fields gracefully
Comment #3
heddnComment #4
mikeryanIt should be simple enough to allow optional validation, though: #2745797: Add option to content entity destinations for validation.