-
Notifications
You must be signed in to change notification settings - Fork 194
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
Backport: Follow P2 contract of cached file's extension (#2938) #2944
Backport: Follow P2 contract of cached file's extension (#2938) #2944
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks for the enhancement!
Test Results 567 files + 3 567 suites +3 4h 31m 51s ⏱️ - 28m 0s For more details on these errors, see this check. Results for commit d544578. ± Comparison against base commit 486e6e4. ♻️ This comment has been updated with latest results. |
@basilevs can you please target the |
@basilevs build seems fine now, can you rebase and squash your commits? |
This is a backport from 5.0.0 P2 relies on correct file extensions to parse cached files. This change prevents cached file name from changing over HTTP redirect. See eclipse-equinox/p2#355 Fix HttpServer concurrency bug. URLs returned from HttpServer.getAccessedUrls() are now stripped of context prefix. No callers have used these values until now. Fix concurrency bug in test utility class HttpServer request logging. Add verification of request logs to ensure that metadata repository does indeed unjars fresh, non-cached artifact. Ensure that cached XML file does not produce false negative in tests. Refactor tests.
d4d443d
to
d544578
Compare
Fixes #2938
This is a backport of #2945
CacheManager
injected from Tycho into P2 names cached downloads internally based on their URLsThis change ensures that CacheManager injected into P2 adheres to the contract and returns cached files with extensions matching the (original, before redirect) request.
eclipse-equinox/p2#355 discusses fix on P2 side.