Problem/Motivation

When a URI don't have a scheme or URL valid, the functions fails in cron and cron is stopped.

Steps to reproduce

try ti use a Uri like /sites/default/files/myfile.pdf

Proposed resolution

Implements a validation to verify $this->streamWrapperManager->getViaUri doesn't return FALSE

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

aldibier created an issue. See original summary.

aldibier’s picture

I've created a fix for this issue in a new merge request.

Patch is available at https://git.drupalcode.org/project/search_api_attachments/-/merge_reques...

izus’s picture

thanks

izus’s picture

Status: Active » Fixed

  • izus committed 6083a2d7 on 8.x-1.x authored by aldibier
    Issue #3324510 by aldibier, izus: Validate wrapper result in getRealpath...

Status: Fixed » Closed (fixed)

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