Skip to content

Files scan complains even when NFD compatibility is on #29438

@PVince81

Description

@PVince81

Steps

  1. Setup SMB external storage
  2. Put a file called "bête.txt" (make sure to copy-paste this exact string as it contains an NFD encoded accented character)
  3. Run occ files:scan --all
  4. Enable NFD encoding compatibility for the external storage
  5. Run occ files:scan --all

Expected result

At step 3 a warning appears that the file might not be accessible.
No warning at step 5.
File is accessible in the web UI after enabling compatibility mode.

Actual result

Warning appears at both step 3 and 5.
File is accessible in the web UI after enabling compatibility mode.

Versions

Tested with v21.0.4

Analysis

It seems that the scanner is not checking if the compatibility wrapper was enabled on the current storage so it always compares the file names to show the warning.
https://github.com/nextcloud/server/blob/v21.0.4/apps/files/lib/Command/Scan.php#L111

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions