Problem/Motivation

The ExtensionMimeTypeGuesser in core got updated. It now returns NULL for unknown extension.

Ironically, that fix breaks remote_stream_wrapper's HttpMimeTypeGuesser.

Steps to reproduce

See phpunit test log in a pipeline after recent module commits.

Proposed resolution

Change code accordingly.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pingwin4eg created an issue. See original summary.

pingwin4eg’s picture

Assigned: pingwin4eg » Unassigned
Status: Active » Needs review

Phpunit passed for Drupal 10.3.6 and PHP 8.1.30 - https://git.drupalcode.org/issue/remote_stream_wrapper-3486396/-/jobs/32... . And failed for D11 (expected, because the 2.x branch doesn't ready for D11 yet).

pawelgorski87’s picture

Hey, Fix works fine. I think we can move this ticket.
Also passed also in D11.

pawelgorski87’s picture

Status: Needs review » Reviewed & tested by the community

nagy.balint’s picture

Status: Reviewed & tested by the community » Fixed

I guess it is best to commit this here.

Thanks!

nagy.balint’s picture

Status: Fixed » Closed (fixed)

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