Problem/Motivation
I've noticed that after installing Byte, there is an empty public: folder in web. This happens when installing from the repo as well as via composer-create. Doesn't happen with Starter though so possibly related to the repo split?
Steps to reproduce
- Clone the repo
- Run
ddev launch - Run
ddev install-byte - See there is an empty
public:folder underweb
Issue fork drupal-3554133
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
phenaproximaI would imagine this is something to do with a content import gone wrong. I'll look into it.
Comment #3
phenaproximaI think this is a bug in core's
\Drupal\Core\DefaultContent\Importer::copyFileAssociatedWithEntity()method.If you have a URI like
public://byte-logo.png, which Byte does, thendirname('public://byte-logo.png')yieldspublic:. That's exactly the name of the directory that gets created.Moving this to core's queue, because this is an unambiguous bug.
Comment #7
darren ohComment #8
phenaproximaThanks, @darren-oh! Tests pass with this change and fail exactly as expected without it, so I say ship it. All I did was write the test here, which was one line, so I feel good about RTBCing it.
Comment #9
alexpottCommitted 2d67d38 and pushed to 11.x. Thanks!
Committed ab303a0 and pushed to 11.3.x. Thanks!
Committed b6c78e3 and pushed to 11.2.x. Thanks!
Nice find, nice fix, nice test. Thanks everyone.