-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
clientRelated to the client (updater) implementationRelated to the client (updater) implementationmicrosoft-windows
Description
mirrors.py does this:
base = os.path.join(mirror_info['url_prefix'], mirror_info['metadata_path'])
This seems like an incorrect use of os.path.join(). I'm not sure what it does on Windows but there's probably room for bugs here. urllib.parse.join() is probably the safe choice (although it has some annoying corner cases that makes it different from os.path.join()) ?
There is a related issue here: I'm trying to figure out how to handle the case where metadata and targets are hosted on different hosts and the use of os.path.join() affects it. The discussion is in https://python.zulipchat.com/#narrow/stream/223926-pep458-implementation/topic/separate.20hosting.20for.20metadata.20and.20targets . Fixing this probably makes sense after we know the resolution of that discussion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
clientRelated to the client (updater) implementationRelated to the client (updater) implementationmicrosoft-windows