"Not in database" selection empty when there are files not in database
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3203317. -->
Reported by: [bkudrle](https://www.drupal.org/user/22787)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>For the <strong>Not in Database</strong> report, the list is empty, even after adding files manually to files directories. I tried this for the auditfiles config settings having private, public or temporary file paths. I manually added simple text files to both the public and private directories, but none of theme showed up in the report. </p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Add file(s) manually to public and/or private directory by editing a new file in the given directory. This is independent of Drupal. </li>
<li>Set default download method in /admin/config/media/file-system to private or public files as appropriate (I tried both ways)</li>
<li>Install Audit File module and set config to file_private_path or file_public_path, as appropriate</li>
<li>Clear the cache</li>
<li>Run report for Auditing Not in Database (/admin/reports/auditfiles/notindatabase) </li>
<li>No files appear in report</li>
</ol>
<p>I am running Drupal 8.9.13 on Ubuntu 18 with PHP 7.4 and tried this with both 2.11.0 and 3.0-beta1 of the auditfiles module. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>This is the same type of bug documented in <a href="https://www.drupal.org/project/auditfiles/issues/3090003">https://www.drupal.org/project/auditfiles/issues/3090003</a>. I compared the patches in the installed auditfile module to that given in the mentioned issue, and that patch has been applied. Perhaps there is something more in the filtering procedure, however, that might be causing this. </p>
issue