I'm seeing s3 urls being constructed with an http scheme despite my pages being served via https. I don't have "Always serve files from S3 via HTTPS" selected because the module is meant to auto-detect the scheme. It appears the constructor for S3fsStream uses the old $is_https global and needs to be updated to be in compliance with this change record: https://www.drupal.org/node/1983438

Comments

azinck created an issue. See original summary.

azinck’s picture

Status: Active » Needs review
StatusFileSize
new669 bytes
azinck’s picture

StatusFileSize
new670 bytes
new587 bytes

Whoops...need to fix the reference to global \Drupal class...

darvanen’s picture

That will do the job.

It would be nice to see a patch where it's injected as a dependency instead of side-loaded since it's a brand new service here, would require setting up injection for this class.

azinck’s picture

Yes, I wasn’t sure if wider refactoring would be welcome here since I see other global services referenced in this class.

darvanen’s picture

It's a tricky one, and I can't answer that because I'm not a maintainer. Perhaps provide it as an option?

I'm considering posting a refactor of the class but there are so many outstanding issues right now that seems counter-productive.

Maintainer feedback welcome!

cmlara’s picture

Status: Needs review » Reviewed & tested by the community

I've spent the past couple weeks familiarizing myself with the current code base and working to close out open issue tickets. I still have some work left to do on those, but getting closer to resolving the backlog of issues. I just obtained commit access today so I am beginning to move the patches into the repository.

I intend to commit this patch as written so we can move forward, however I believe your right that we need to refactor for the newer standards of Drupal. Any help you wish to provide going forward would be appreciated.

  • cmlara committed c509b52 on 8.x-3.x authored by azinck
    Issue #3180682 by azinck, Darvanen: https not correctly detected in...
cmlara’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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