Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
file system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2017 at 16:36 UTC
Updated:
13 Apr 2017 at 23:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottMarking this major since any file operation in kernel tests might cause files to be created in places you don't expect.
Comment #3
dawehnerOOH, I always saw that and thought I became crazy / used some bad command in the command line. Can we explain in a comment why we need some fallback? (pre installation could be a different place where this function returns the wrong output).
Comment #4
alexpottHere's a better fix that is isolated to KTB only.
Comment #5
alexpottHere's a test.
Comment #6
mile23If we're writing the test in #5 then file_default_scheme() should be deprecated in a follow-up.
Comment #10
alexpottComment #11
alexpott@Mile23 wrt to deprecation of
file_default_scheme()see #2244513: Move the unmanaged file APIs to the file_system service (file.inc) - I don't think that it is in scope here.Comment #12
dawehnerGiven that this is a problem in the testing infrastructure (kernel tests don't boot up a real site) I think fixing it just inside tests is totally cool. The referenced issue will fix other parts.
The only small thing I was wondering, do we need a change notice as this might break some contrib tests? I guess this is such an edge case, that this is not worth it?
Comment #15
catchCommitted/pushed to 8.4.x and cherry-picked to 8.3.x. Thanks!