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

fix(FIR-34234): windows-compatible url parsing #393

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

ptiurin
Copy link
Collaborator

@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
19 checks passed
@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