discourse/app
Jeff Wong 893b50031d
replace subfolder on cdn url conversion between general cdn and s3 (#7764)
When both a cdn URL and an s3 cdn URL defined, subfolder paths were leaking
through to the s3 cdn URL. If we are replacing the cdn url with the s3_cdn url,
we also need to make sure that the subpath is removed as well, as it appears in
the original cdn url.

The test should give a fairly good gist of the situations - in subfolder
situations where s3_cdn and a cdn is defined:
`asset_path` returns the asset with a subfolder, in the form `{cdn_url}/{subfolder}/{asset_path}`

Currently this is being replaced to `{s3_cdn_url}/{subfolder}/{asset_path}`
I am proposing we change this to: `{s3_cdn_url}/{asset_path}` as it seems like
for s3_cdn urls we should not be carrying around app subfolder pathing anywhere
we are looking up s3 paths.
2019-06-17 11:51:17 -07:00
..
assets SECURITY: Add confirmation screen when logging in via email link 2019-06-17 16:18:37 +01:00
controllers SECURITY: Add confirmation screen when logging in via user-api OTP 2019-06-17 16:18:44 +01:00
helpers replace subfolder on cdn url conversion between general cdn and s3 (#7764) 2019-06-17 11:51:17 -07:00
jobs FIX: Remove onebox src from Jobs::PullHotlinkedImages. 2019-06-14 09:21:25 +08:00
mailers Make email_excerpt method take an optional post param (#7570) 2019-05-20 10:04:23 +02:00
models FIX: staged users should not be included in TL groups 2019-06-17 15:10:47 +10:00
serializers FIX: In reply to would sometimes have a broken link 2019-06-10 11:33:10 -04:00
services Fix the build. 2019-06-14 13:56:35 +08:00
views SECURITY: Add confirmation screen when logging in via user-api OTP 2019-06-17 16:18:44 +01:00