discourse/spec
Martin Brennan 72f139191e
FIX: S3 store has_been_uploaded? was not taking into account s3 bucket path (#9810)
In some cases, between Discourse forums the hostname of a URL could match if they are hosting S3 files on the same bucket but the S3 bucket path might not. So e.g. https://testbucket.somesite.com/testpath/some/file/url.png vs https://testbucket.somesite.com/prodpath/some/file/url.png. So has_been_uploaded? was returning true for the second URL, even though it may have been uploaded on a different Discourse forum.

This is a very rare case but must be accounted for, because this impacts UrlHelper.is_local which mistakenly thinks the file has already been downloaded and thus allows the URL to be cooked, where we want to return the full URL to be downloaded using PullHotlinkedImages.
2020-05-20 10:40:38 +10:00
..
components FIX: S3 store has_been_uploaded? was not taking into account s3 bucket path (#9810) 2020-05-20 10:40:38 +10:00
fabricators FEATURE: Include optimized thumbnails for topics (#9215) 2020-05-05 09:07:50 +01:00
fixtures FIX: Allow post migrations using `#change` to carry out unsafe migration 2020-05-15 14:23:27 +08:00
helpers DEV: Fix some more flaky tests (#9384) 2020-04-08 12:46:43 +02:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration DEV: Clean up thumbnail tests correctly 2020-05-19 11:04:02 +01:00
integrity DEV: Adds an integrity spec for JS constants 2020-05-12 12:23:36 -04:00
jobs DEV: Change use of Redis `flushall` to `flushdb`. 2020-05-19 10:20:00 +08:00
lib DEV: Change use of Redis `flushall` to `flushdb`. 2020-05-19 10:20:00 +08:00
mailers DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
models DEV: Change use of Redis `flushall` to `flushdb`. 2020-05-19 10:20:00 +08:00
multisite FIX: S3 store has_been_uploaded? was not taking into account s3 bucket path (#9810) 2020-05-20 10:40:38 +10:00
requests DEV: Change use of Redis `flushall` to `flushdb`. 2020-05-19 10:20:00 +08:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers DEV: Clean up thumbnail tests correctly 2020-05-19 11:04:02 +01:00
services DEV: Change use of Redis `flushall` to `flushdb`. 2020-05-19 10:20:00 +08:00
support DEV: Use `response.parsed_body` in specs (#9615) 2020-05-07 17:04:12 +02:00
tasks DEV: Clean up some Redis leaks in test env. 2020-05-18 17:27:37 +08:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb FIX: randomize file name when created from fixtures (#9731) 2020-05-19 09:09:36 +10:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00