vdirsyncer
vdirsyncer copied to clipboard
don't normalize paths in expand_path
Remove normalizing paths in "expand_path" and expand environment variables. Paths don't need to be normalized, but doing this on non-path parameters (i.e. URLs) might cause bugs.
Reported-by: s-hamann Closes: https://github.com/pimutils/vdirsyncer/issues/1021
I'd have to recall why we normalised paths in the first place. The initial commit isn't very helpful: da8bba89de3baf26e45f7c70761326277d7532ea But I have a vague impression that it makes a difference in some situations (e.g.: when a user-provided path is compared with an internally-generated path maybe?).
But yeah, we shouldn't normalise paths on URLs, that's outright wrong.
Looks like the readthedocs job is preventing this PR from being merged? It's saying the .readthedocs.yaml
file can't be found in the repository, which I don't see on main
either.
Would like to see this merged as I am also running into this issue.