Closed (fixed)
Project:
Security Review
Version:
3.0.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2024 at 12:18 UTC
Updated:
8 Aug 2024 at 15:14 UTC
Jump to comment: Most recent
Since #3387142: PrivateFiles check may fail or give misleading results for alternate stream wrappers, we get this message for the private_files check:
Private files is not enabled.
But we do have $settings['file_private_path'] defined in settings.php.
Add this to settings.php:
$settings['file_private_path'] = '../private/default/';
Run the private_files check.
PrivateStream::getUri() seems to always return NULL.
This seems to happen when the stream_wrapper.private is fetched directly from the container.
Using StreamWrapperManager::getViaScheme() instead sets the URI correctly.
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 #3
prudloff commentedComment #4
smustgrave commentedMay impact https://www.drupal.org/project/security_review/issues/3387142
Comment #6
smustgrave commentedThanks, fixed some phpcs issue but testing it and it still detects for me.