oembed creates broken file entities when created anywhere but the wysiwyg popup

Created on 25 April 2012, almost 13 years ago
Updated 26 November 2024, 4 months ago

I'm working on tests cases for oembed links, to make sure that they all render properly with our filter format. This demands I create file entities programmatically. However, when I do this, they don't get a bundle type set. I'm just calling $handler->save() to create the entity and that gives me broken ones that crash Drupal.

The bundle type is only set in the validators for the media form. If the form is not called with something in its 3rd parameter, the bundle is never set. If the form is not called at all, and the entity created with the handler, the bundle is never set.

πŸ› Bug report
Status

Closed: outdated

Version

0.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MPetrovic

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.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024