Skip to content

Under Windows, file path has to respect case, including disk drive letter otherwise symlink resolution will fail #7

Open
@gsimard

Description

@gsimard

For example:

c:\git\claude-files

Will fail, where:

C:\git\claude-files

Will succeed, because otherwise this will fail, when Windows returns the real path with a capital C:

func (s *FilesystemServer) validatePath(requestedPath string) (string, error) {
....
	// Check if the real path (after resolving symlinks) is still within allowed directories
	if !s.isPathInAllowedDirs(realPath) {
		return "", fmt.Errorf(
			"access denied - symlink target outside allowed directories",
		)
	}

	return realPath, nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions