Skip to content

crypt: improve handling of undecryptable file names - fixes #5787 #6439 #6437 - #7513

Merged
ncw merged 1 commit into
rclone:masterfrom
nielash:crypt-strict-names
Feb 29, 2024
Merged

ncw merged 1 commit into
rclone:masterfrom
nielash:crypt-strict-names

Conversation

@nielash

@nielash nielash commented Dec 18, 2023 •

Copy link
Copy Markdown
Contributor

What is the purpose of this change?

Before this change, undecryptable file names would be skipped very quietly (there was a log warning, but only at DEBUG level), failing to alert users of a potentially serious issue that needs attention.

After this change, the log level is raised to NOTICE by default and a new --crypt-strict-names flag allows raising an error, for users who may prefer not to proceed if such an issue is detected.

Was the change discussed in an issue or in the forum before?

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

fixes rclone#6439 fixes rclone#6437

Before this change, undecryptable file names would be skipped very quietly
(there was a log warning, but only at DEBUG level),
failing to alert users of a potentially serious issue that needs attention.

After this change, the log level is raised to NOTICE by default and a new
--crypt-strict-names flag allows raising an error, for users who may prefer not
to proceed if such an issue is detected.

See https://forum.rclone.org/t/skipping-undecryptable-file-name-should-be-an-error/27115
rclone#5787
@nielash
nielash force-pushed the crypt-strict-names branch from 7aeab31 to 065e9f2 Compare January 20, 2024 22:41

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine - thank you. Will merge now :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants