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

Correct path manipulation on Windows and UNIX #37

Merged
merged 10 commits into from
Feb 22, 2023

Conversation

0x6675636b796f75676974687562
Copy link
Member

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 commented Feb 16, 2023

This is intended to eventually address saveourtool/save-cli#489 on Windows and UNIX.

Test cases:

  • an absolute file:// URI that contains an absolute path: file:///C:/autoexec.bat
  • a relative URI (no file:// scheme) that contains an absolute path with forward slashes: C:/autoexec.bat
  • a relative URI (no file:// scheme) that contains an absolute path with backslashes: C:\autoexec.bat
  • an absolute file:// URI that contains a relative path: file:autoexec.bat
  • a relative URI (no file:// scheme) that contains a relative path: autoexec.bat

Support for encoded URIs (e.g.: file:///C%3A/Program%20Filesfile:///C:/Program FilesC:\Program Files) would require much more effort and is probably out of scope for this issue.

@github-actions
Copy link

github-actions bot commented Feb 16, 2023

JUnit Tests (Linux, EnricoMi/publish-unit-test-result-action@v1)

62 tests  +20   62 ✔️ +20   1s ⏱️ ±0s
  6 suites +  2     0 💤 ±  0 
  6 files   +  2     0 ±  0 

Results for commit 64af940. ± Comparison against base commit 7cf2ba4.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 16, 2023

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v1)

62 tests  +20   62 ✔️ +20   2s ⏱️ ±0s
  6 suites +  2     0 💤 ±  0 
  6 files   +  2     0 ±  0 

Results for commit 64af940. ± Comparison against base commit 7cf2ba4.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 16, 2023

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

62 tests  +20   62 ✔️ +20   3s ⏱️ ±0s
  6 suites +  2     0 💤 ±  0 
  6 files   +  2     0 ±  0 

Results for commit 64af940. ± Comparison against base commit 7cf2ba4.

♻️ This comment has been updated with latest results.

@kgevorkyan
Copy link
Member

You marked this PR as ready, but it is not, right? I don't see any changes in existing code of sarif lib

auto-merge was automatically disabled February 22, 2023 19:58

Pull request was closed

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 deleted the bugfix/path-manipulation branch February 22, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants