Support for S3 file system scheme

Created on 25 August 2021, over 3 years ago
Updated 25 April 2023, over 1 year ago

Problem/Motivation

S3FS File Proxy to S3 only works with public files handled by s3fs, but not files directly stored on the S3 File System (S3://).

Steps to reproduce

Create a new media type with an image field, which has its upload destination set to S3 File System instead of Public files. Then upload an image in production and enable s3sf_file_proxy_to_s3 and load a page in your staging environment which displays the image. The source URL prefix of the image is not being change to "s3fs_to_s3".

Proposed resolution

Also attach to stream_wrapper.s3fs, not just stream_wrapper.public.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland phma Basel, CH

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States csmdgl

    Re-roll for 4.0.1

  • Status changed to Needs review over 1 year ago
  • πŸ‡¨πŸ‡­Switzerland phma Basel, CH
  • πŸ‡¨πŸ‡­Switzerland phma Basel, CH

    Using the patch I'm getting

     Uncaught Error: Class "Drupal\s3fs_file_proxy_to_s3\S3fsFileProxyToS3Stream" not found in /var/www/html/w
    eb/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php:154

    Looks like S3fsFileProxyToS3ServiceProvider.php is missing a use statement. Also, use Symfony\Component\DependencyInjection\Reference; can be removed.

  • Status changed to Needs work over 1 year ago
  • πŸ‡¨πŸ‡­Switzerland phma Basel, CH
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States csmdgl

    Updated patch.

Production build 0.71.5 2024