Skip to content

Conversation

ptiurin
Copy link
Contributor

@ptiurin ptiurin commented Jul 5, 2024

os.path was not a good idea since on windows it uses different slashes. As I understand it's primary use is to resolve system paths instead of URL.
Changed to urljoin, which seems to be the recommended solution. Test run succeeds.
The "/" trick we're doing is necessary at least to be compatible with the previous code. Our tests expect the url to have the trailing slash even if there's nothing after it (or just query parameters).

Copy link

sonarqubecloud bot commented Jul 5, 2024

@ptiurin ptiurin changed the title fix(FIR-34234): use os-specific separators for path fix(FIR-34234): windows-compatible url parsing Jul 8, 2024
@ptiurin ptiurin marked this pull request as ready for review July 10, 2024 08:27
@ptiurin ptiurin requested a review from a team as a code owner July 10, 2024 08:27
@ptiurin ptiurin merged commit 6a83f42 into main Jul 10, 2024
@ptiurin ptiurin deleted the fix-use-os-separator branch July 10, 2024 09:53
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

Successfully merging this pull request may close these issues.

2 participants