Uncaught exception in link formatter if a link field has malformed data

Created on 8 June 2016, over 8 years ago
Updated 20 April 2024, 8 months ago

Problem/Motivation

If some link field data is migrated in from D6/D7 and the rules for the link back there weren't as strict... then this can lead to a WSOD and InvalidArgumentException thrown from LinkFormatter->buildUrl() => LinkItem->getUrl => URI->fromUri().

This was discovered in a Search API scenario where the exception was breaking all of searching because one of the search results had bad link data.

Proposed resolution

Try/catch that thing and be a little more friendly in rendering the link field.

Remaining tasks

User interface changes

API changes

Data model changes

šŸ› Bug report
Status

Fixed

Version

9.5

Component
LinkĀ  ā†’

Last updated 3 days ago

Created by

šŸ‡³šŸ‡®Nicaragua juancasantito

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.

Production build 0.71.5 2024