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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid created an issue. See original summary.

achap’s picture

This patch will use the default file scheme and fall back to public if nothing is set. Have included a Kernel test.

achap’s picture

Status: Needs work » Needs review
achap’s picture

Dave Reid’s picture

Status: Needs review » Needs work

I think this testing is incomplete without also testing to ensure the routing works as well. There are still references to the hard-coded public file system in \Drupal\remote_stream_wrapper\Routing\RemoteImageStyleRoutes.

achap’s picture

Thanks for the feedback.

I spent some time looking at the relevant code but I'm having a hard time understanding how the code in RemoteImageStyleRoutes and RemoteImageStyleDownloadController is used. There doesn't appear to be any documentation to explain their usage either in this module or the core classes that they override. The only clues I have found are 'Defines a route subscriber to register a url for serving image styles.' for RemoteImageStyleRoutes and 'Defines a controller to serve image styles.' for the controller.

I'm using the above patch on my site alongside flysystem_s3 and my image styles are generating just fine and being stored in s3.

Are you able to provide some context on their purpose?

Dave Reid’s picture

Version: 8.x-1.x-dev » 2.x-dev

Dave Reid’s picture

Status: Needs work » Needs review

After review we don't need to update RemoteImageStyleRoutes, we only need to override the public directory path since that's what the original route in \Drupal\image\Routing\ImageStyleRoutes::routes() sets.

  • Dave Reid committed 83efc1f on 2.x
    Issue #2790311 by Dave Reid, achap: Image styles derivatives should use...
Dave Reid’s picture

Status: Needs review » Fixed

  • Dave Reid committed 5687fb5 on 8.x-1.x
    Issue #2790311 by Dave Reid, achap: Image styles derivatives should use...

Status: Fixed » Closed (fixed)

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