Problem/Motivation

#2297685: Edit URI for remote files introduced a regression for us that prevents us from saving media entities.

It results in an error as a form_set_errror() when no provider can be found, which I think is absolutely expected for a local image for example.

Proposed resolution

Not sure, just silently skip if no provider can be found instead of showing an error?

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir created an issue. See original summary.

Berdir’s picture

Status: Active » Needs review
FileSize
600 bytes

Having to throw/catch an exception is still bad design IMHO but at least the error is gone.

joseph.olstad’s picture

Instead lets revert 2297685

Berdir’s picture

Works for me too, but it's already in a release, so it's functionality that will then be gone again, so some users might be unhappy about that ;)

joseph.olstad’s picture

Status: Needs review » Fixed

yes , the patch is still available in the other issue.
Maybe Chris Goss can fix the patch.

there's a lot of different ways media_internet is used by various other contrib modules so maybe not as simple as we thought at first glance.
I can think of media_youtube and media_oembed and media_vimeo for example.

joseph.olstad’s picture

I will tag a new release right away.

joseph.olstad’s picture

Removed the said regression from all branches.

media 2.18 released
media 7.x-3.0-rc4 released
media 7.x-4.0-alpha3 released

Status: Fixed » Closed (fixed)

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