ExtensionDiscovery fails to scan the vfsStream filesystem for modules or profiles

Created on 16 April 2018, about 6 years ago
Updated 12 February 2024, 4 months ago

During kernel tests, ExtensionDiscovery is set up with the site directory, ORIGIN_SITE, as a virtual filesystem. This means the $searchDir item for this is of the form 'vfs://root/sites/simpletest/28733299'.

However, scanDirectory() doesn't manage to find anything in this, because it treats all the directories as being relative, and prefixes them all with the root:

    $dir_prefix = ($dir == '' ? '' : "$dir/");
    $absolute_dir = ($dir == '' ? $this->root : $this->root . "/$dir");

That means we end up with the directory '/Users/me/whatever/etc/vfs://root/sites/simpletest/28733299' which is broken.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ExtensionΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024