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

File Permission Error Handling #19

Open
adeutscher opened this issue Feb 25, 2020 · 1 comment
Open

File Permission Error Handling #19

adeutscher opened this issue Feb 25, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@adeutscher
Copy link

adeutscher commented Feb 25, 2020

The Updog listing 403's if given a directory with a symbolic link to an inaccessible file.

To reproduce:

  1. Create a directory with a dead symbolic link on account of the destination being unreachable. I discovered this browsing my /etc directory, which had a symlink to something walled off to my user in /boot.
  2. View directory in Updog.

Expected behavior is that only the affected path should be be affected, not the parent directory with the link.

adeutscher added a commit to adeutscher/updog that referenced this issue Feb 25, 2020
…nd correct a problem in this branch with processing subdirectories
@adeutscher
Copy link
Author

The cause of the issue is that the is_dir/is_file methods of DirEntry throw PermissionErrors when used on a walled-off symbolic link.

@dostoevskylabs dostoevskylabs added the bug Something isn't working label Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants