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

Case sensitivity preservation in list_allowed_directories #499

Open
jszala opened this issue Jan 8, 2025 · 0 comments
Open

Case sensitivity preservation in list_allowed_directories #499

jszala opened this issue Jan 8, 2025 · 0 comments

Comments

@jszala
Copy link

jszala commented Jan 8, 2025

The list_allowed_directories function currently returns paths in lowercase, even though the filesystem operations respect case sensitivity. This can be confusing when working with case-sensitive paths.

The issue appears to be in how paths are normalized when stored in allowedDirectories, while actual filesystem operations preserve case sensitivity.

Steps to reproduce:

  1. Start server with case-sensitive paths like "/home/user/Desktop/"
  2. Call list_allowed_directories
  3. Observe that the returned paths are lowercase: "/home/user/desktop/"

Suggested fix: Modify path normalization to preserve case in the allowedDirectories array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant