Skip to content

fix(updater): report full paths in file checks - #786

Open
joshtrichards wants to merge 4 commits into
masterfrom
copilot/report-absolute-updater-paths
Open

joshtrichards wants to merge 4 commits into
masterfrom
copilot/report-absolute-updater-paths

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

The updater currently reports only filenames for unexpected entries and non-writable paths, making them difficult to locate - especially when buried in different directories or files in different directories share a name.

Inspiration: this comes up on the community help forum semi-routinely. The admin is left having to search around in their file hierarchy to figure out where the unexpected or non-writable files are located.

This change reports full paths in both the web and CLI updaters.

Before:

The following places can not be written to:
    duplicate
    duplicate
    README

After:

The following places can not be written to:
    /var/www/nextcloud/core/path-test/duplicate
    /var/www/nextcloud/themes/example/path-test/duplicate
    /var/www/nextcloud/themes/README

Unexpected root entries similarly change from apps2 to /var/www/nextcloud/apps2.

Also updates the PHAR consistency check to exclude generated version metadata.

Validation

  • Added CLI regression scenarios for unexpected entries and nested non-writable files.
  • Exercised the test helpers and packaged updater with a local non-root fixture.

joshtrichards and others added 3 commits November 24, 2026 01:26
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: joshtrichards <1731941+joshtrichards@users.noreply.github.com>
Signed-off-by: joshtrichards <1731941+joshtrichards@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: joshtrichards <1731941+joshtrichards@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@joshtrichards
joshtrichards force-pushed the copilot/report-absolute-updater-paths branch from f3fba3e to 9d27201 Compare November 24, 2026 01:27
@joshtrichards joshtrichards changed the title Report full paths for updater file checks fix(updater): report report full paths in file checks Nov 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: joshtrichards <1731941+joshtrichards@users.noreply.github.com>
@joshtrichards joshtrichards changed the title fix(updater): report report full paths in file checks fix(updater): report full paths in file checks Nov 24, 2026
@joshtrichards

Copy link
Copy Markdown
Member Author

Palm error is unrelated

@joshtrichards
joshtrichards marked this pull request as ready for review November 24, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant