- Open on Drupal.org βCore: 10.2.1 + Environment: PHP 8.1 & MySQL 8last update
6 months ago Waiting for branch to pass - Issue created by @slasher13
- Open on Drupal.org βCore: 10.2.1 + Environment: PHP 8.1 & MySQL 8last update
6 months ago Waiting for branch to pass - π¨π¦Canada rosiel
This patch does not allow us to create image style derivatives.
On line 132, we need to set `required_derivative_scheme' => $scheme,` not 'public' in order for image styles to work when we're using a flysystem scheme.
huhhuh β made their first commit to this issueβs fork.
huhhuh β changed the visibility of the branch 3457193-drupal-10.3.x-imagestyledownloadcontrollerdeliver to hidden.
I was testing the patch from comment #2. The image_style route needs to be defined for each scheme in the loop. I fixed that and created a merge request.
- π³πΏNew Zealand jonathan_hunt
fwiw, I needed to amend https://git.drupalcode.org/project/flysystem/-/merge_requests/57/diffs#2... to be
'required_derivative_scheme' => $scheme ?? 'fedora',
because when running phpunit on other code this function would be invoked with no$scheme
defined.
My intervention is a work-around; someone more familiar with the code may have a better approach. - π³πΏNew Zealand xurizaemon Εtepoti, Aotearoa π
NW based on feedback from @jonathan_hunt
I'm not that familiar with rest of the code, but I'm willing to give this a go, since I would like to see this issue fixed. @jonathan_hunt, I don't fully understand what you are doing and what issue you have.
To me, it sounds like some of your tests are failing. Are the phpunit tests missing some configuration, so that the $scheme variable is NULL? The scheme comes from
\Drupal\flysystem\FlysystemFactory::getSchemes()
, which ultimately seem to come fromSettings::get('flysystem', [])
. How is the flysystem module configured in your tests?