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
The entry is not whitelisted if it is a symbolic link to a directory #31238
Comments
Looks like maybe this code (in should be: thepath.relative_to(pathlib.Path(whitelisted_path).resolve()) But that is fairly basic and it looks like it's been this way (i.e., not resolving the white listed paths) since the configuration option was added three years ago. But then again, maybe that was an oversight. @pvizeli, what do you think? Should the white listed paths be resolved to handle links? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The issue is still present in v0.106.5. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The issue is present in v0.111.4. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Given the following filesystem symlink:
and the following YAML:
it is expected that sensor is correctly started, however the following error is reported:
The following change in the configuration makes the sensor working:
It is expected that symlinks in
whitelist_external_dirs
are correctly expanded / handled.Environment
Home Assistant version: 1.102.2
Operating system: Debian Linux x64
Other: forum post
The text was updated successfully, but these errors were encountered: