Cannot view files stored as private objects

Created on 17 April 2020, over 4 years ago
Updated 25 August 2023, about 1 year ago

GoogleCloudStorage::getExternalUrl() always return a direct URL to GCS even when the visibility of the object is set to 'private'.

As a result, the GCS URL ends up in the final return HTML (in <img src="">) and fails to be loaded.

In that case, we should use the Flysystem module provided URL (/_flysystem/<scheme>/<path>) so that Drupal first fetches the file from GCS then serves it to the client.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada garphy

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.

Production build 0.71.5 2024