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

removing realpath requirement for symbolically linked site directories #18313

Closed

Conversation

tukutela
Copy link

@tukutela tukutela commented Oct 7, 2022

Some of us have sites where the private and public folders are symbolically linked and shared across multiple machines (behind a load balancer). We mount a single datastore between machines which causes the directories or the is_safe_path method to fail even though its perfectly valid.

Removing the os.path.realpath requirement for the matchpath ensures it works as designed, and also works for symbolically linked directories.

@tukutela tukutela requested a review from a team as a code owner October 7, 2022 03:48
@tukutela tukutela requested review from phot0n and removed request for a team October 7, 2022 03:48
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Oct 7, 2022
@ankush ankush added security and removed add-test-cases Add test case to validate fix or enhancement labels Oct 7, 2022
@ankush ankush requested a review from a team October 7, 2022 06:04
@ankush
Copy link
Member

ankush commented Oct 10, 2022

Hey thanks for sending this PR, we missed the use case of symlinking inside the site directory.

Closing in favor of better alternate fix (which will address your use case too) #18316

@ankush ankush closed this Oct 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants