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

Add project key to cache key #837

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomas-boehm-tractive
Copy link
Contributor

If a requests is sent with a project key, and the key is not part of the cache key, following requests for other projects will result in the cached repositories for the first project, leading to wrong results

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.
    • No, as I don't know how to write such a test case.

Fixes #836

@thomas-boehm-tractive thomas-boehm-tractive force-pushed the fix-cache-key-by-including-project-key branch from 52aafe2 to 2f7a1a4 Compare March 28, 2024 12:27
@lifeofguenter lifeofguenter added feature java Pull requests that update Java code labels Mar 28, 2024
@thomas-boehm-tractive thomas-boehm-tractive force-pushed the fix-cache-key-by-including-project-key branch 2 times, most recently from 4481063 to c51763a Compare April 2, 2024 06:47
@thomas-boehm-tractive thomas-boehm-tractive force-pushed the fix-cache-key-by-including-project-key branch from c51763a to b9f51d0 Compare May 23, 2024 06:25
@thomas-boehm-tractive
Copy link
Contributor Author

@KalleOlaviNiemitalo @lifeofguenter does anything speak against merging this PR? I think this is a very useful bugfix, as caching without the project key causes issues.

If a requests is sent with a project key, and the key is not part of the cache key, following requests for other projects will result in the cached repositories for the first project, leading to wrong results
@thomas-boehm-tractive thomas-boehm-tractive force-pushed the fix-cache-key-by-including-project-key branch from 2ddc58a to a0491ee Compare May 23, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No usage of project key in cache key leading to wrong repos added to Organization Folder jobs
3 participants