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

Do content sensing to make sure the file is really not a jar #356

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Oct 20, 2023

Currently we rely on the file-ending to determine the type of file but this can fail in cases a CacheManger returns a cached file without that extension (for whatever reason).

This now adds another check for content sensing if the simple check fails to ensure a zipped item is not parsed as plain text.

Currently we rely on the file-ending to determine the type of file but
this can fail in cases a CacheManger returns a cached file without that
extension (for whatever reason).

This now adds another check for content sensing if the simple check
fails to ensure a zipped item is not parsed as plain text.
@laeubi laeubi requested a review from merks October 20, 2023 16:18
@github-actions
Copy link

Test Results

       9 files  ±0         9 suites  ±0   40m 37s ⏱️ + 2m 31s
2 177 tests ±0  2 173 ✔️ ±0    4 💤 ±0  0 ±0 
6 621 runs  ±0  6 610 ✔️ ±0  11 💤 ±0  0 ±0 

Results for commit 0a5ffb8. ± Comparison against base commit 413c76a.

Copy link
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@laeubi
Copy link
Member Author

laeubi commented Oct 20, 2023

Great so lets merge this after Eclipse Platform M2 promotion freeze is over...

@merks
Copy link
Contributor

merks commented Oct 20, 2023

There is no freeze for m2. Just merge when ready.

@laeubi laeubi merged commit 158291b into eclipse-equinox:master Oct 21, 2023
8 of 9 checks passed
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