Jump to content

4.7.11.1 - S3 URLs in Downloads using bucket name instead of configured CDN domain name


Recommended Posts

When I download a file from Downloads that is stored on S3, the url that opens has the S3 bucket name as the url instead of my usual cdn domain name. I don’t recall seeing this before. Is it a bug?

Sanitised example, downloading a PDF, the download works fine:

https://s3.us-east-2.amazonaws.com/cdn.example.com/monthly_2023_06/Pilot(White)(NoWatermarks)_pdf.8cc51399999999999999988c74?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAJ299999999999/20230701/us-east-2/s3/aws4_request&X-Amz-Date=20230701T162042Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&response-content-disposition=attachment;%20filename*=UTF-8%27%2520-%2520Pilot%2520%2528White%2529%2520%2528No%2520Watermarks%2529.pdf&response-content-type=application/pdf;charset=UTF-8&X-Amz-Signature=c1853cd3d92d621459999999999999991a5f5bf6a0af

Should begin as 

https://cdn.example.com/monthly blah...

As configured in the AdminCP File Storage settings:

Could contain: Cd Player, Electronics, Text

My Cloudflare rules won’t be honoured because the URL isn’t starting with my cdn.domain name.

Link to comment
Share on other sites

Hi @Marc Stridgen

It's more evident with a PDF download because the S3 URL shows inside the browser's address bar when viewing the PDF, but they are not public files. However, if you go to this guest-friendly example when you download the actual .zip file, you can get the final download link which begins with:

https://s3.us-east-2.amazonaws.com/cdn.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...