Problem/Motivation

Errors are shown when adding media via Media Library and the thumbnails are not computed for providers that provide them. There are some missing definition attributes. See \Drupal\media\Annotation\MediaSource

Steps to reproduce

Add media via media library (may need to add patch from #3228501: Unable to add new oembed media from Media Library dialog.). See errors in the dialog.

Missing MediaSource plugin definition attributes causing errors when using Media Library

Proposed resolution

Add missing definition attributes.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrissnyder created an issue. See original summary.

ChrisSnyder’s picture

This patch adds the missing attributes that are not optional according to \Drupal\media\Annotation\MediaSource.

ChrisSnyder’s picture

Status: Active » Needs review

  • chrissnyder authored 856fe85 on 2.x
    Issue #3228512 by chrissnyder, Chris Burge: Missing MediaSource plugin...
Chris Burge’s picture

Status: Needs review » Fixed

I'm able to confirm this bug through manual testing. Without the 'default_name_metadata_attribute' attribute, no name is assigned to the media entity on creation. Without the 'thumbnail_uri_metadata_attribute' attribute, no thumbnail is generated on media entity on creation. These are simply missing definition attributes. I don't think we need test coverage in the oEmbed Providers module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.