"Not in database" selection empty when there are files not in database

Created on 12 March 2021, about 4 years ago
Updated 16 February 2023, about 2 years ago

Problem/Motivation

For the Not in Database 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.

Steps to reproduce

  1. Add file(s) manually to public and/or private directory by editing a new file in the given directory. This is independent of Drupal.
  2. Set default download method in /admin/config/media/file-system to private or public files as appropriate (I tried both ways)
  3. Install Audit File module and set config to file_private_path or file_public_path, as appropriate
  4. Clear the cache
  5. Run report for Auditing Not in Database (/admin/reports/auditfiles/notindatabase)
  6. No files appear in report

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.

Proposed resolution

This is the same type of bug documented in https://www.drupal.org/project/auditfiles/issues/3090003 . 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.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Not in database report

Created by

🇺🇸United States bkudrle Waxahachie, TX

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • 🇩🇪Germany broon Potsdam

    I can confirm both issues.

    (1) If set to 0, no files are shown.

    (2) If set to 250, only the one file directly in "public://" is shown, the other 682 files in subdirectories are not listed.

    (3) If set to 1000 (which is larger than 683), all 683 files are listed.

    (4) Patch #9 resolves both (1) and (2).

  • Status changed to Fixed about 2 years ago
  • Status changed to Fixed about 2 years ago
Production build 0.71.5 2024