Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn if Butler is running on Linux-ish system *and* UNC path is specified in approved list or as REST call parameter #522

Closed
mountaindude opened this issue Aug 6, 2022 · 1 comment · Fixed by #525, #526 or #529
Assignees
Milestone

Comments

@mountaindude
Copy link
Collaborator

Linux and macOS don't handle UNC paths well.
On these systems a remove file server should be mounted in the file system, then Butler can access the file share from there.

Output warnings to console and file log (if enabled).

@mountaindude mountaindude self-assigned this Aug 6, 2022
@mountaindude mountaindude added this to the 8.4.0 milestone Aug 6, 2022
@mountaindude mountaindude changed the title - Warn if Butler is running on Linux-ish system *and* UNC path is specified in approved list or as REST call parameter Warn if Butler is running on Linux-ish system *and* UNC path is specified in approved list or as REST call parameter Aug 6, 2022
mountaindude added a commit to mountaindude/butler that referenced this issue Aug 7, 2022
mountaindude added a commit to mountaindude/butler that referenced this issue Aug 7, 2022
@mountaindude
Copy link
Collaborator Author

Design notes

  • When reading file copy/move/delete allowed directories from config file AND the operating system Butler is running on is not Windows:
    • Warn in console and log file that UNC paths are not supported for non-Windows OSs.
  • When handling a call to the REST API endpoint for file copy/move/delete:
    • Warn in console and log file that UNC paths are not supported for non-Windows OSs.
    • Return http error 400 to calling client

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