Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2014 at 17:44 UTC
Updated:
13 Apr 2018 at 16:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drummComment #2
drumm(fix typo in issue summary)
Comment #3
drummAdding the delimiter to
preg_quote().Comment #5
drummThat seems unreasonable.
Comment #6
drumm3: 2257231.diff queued for re-testing.
Comment #7
meeli commentedSeems reasonable, but it seems like we need some tests for this to make sure it outputs what we're expecting.
Comment #8
drummComment #12
sebastien m. commentedThis patch includes kernel tests
Comment #14
sebastien m. commentedmy fault, file paths updated.
Comment #15
sebastien m. commentedComment #18
jody lynnI actually just got bit by this issue.
I'm serving files from s3 with URLs like https://foo-org-private.s3.amazonaws.com/.... on the site foo.org. So the result of file_url_transform_relative (which was called by FileMediaFormatterBase) was to change my URLs to be -private.s3.amazonaws.com/....
Not only did it mix up the -org with .org as described here, but it also didn't mind that my domain name only began with my host domain rather than matching it.
Comment #19
jody lynnConfirmed the patch fixes it.
Comment #20
alexpottI've confirmed the tests fail without the fix.
Comment #21
alexpottCrediting @Jody Lynn for testing that fix covers the scenario detailed in #18.
Committed d32d0c5 and pushed to 8.6.x. Thanks!
Setting to patch to be ported to backport to 8.5.x once the commit freeze is over.
Comment #24
alexpott