-
Notifications
You must be signed in to change notification settings - Fork 667
Bug 2027288: Devfile samples can't be loaded after fixing it on Safari (redirect caching issue) #10570
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
Conversation
|
@gruselhaus: This pull request references Bugzilla bug 2027288, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign @jerolimov |
|
/retest-required |
christoph-jerolimov
left a comment
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.
Tested this locally and it looks good to me.
/lgtm
/approve
/cc jhadvig
|
/assign florkbr |
|
/lgtm |
|
/assign TheRealJon |
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: florkbr, gruselhaus, jerolimov, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@gruselhaus: All pull requests linked via external trackers have merged: Bugzilla bug 2027288 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |


This PR is a continuation to #10464
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2027288
https://issues.redhat.com/browse/OCPBUGSM-37613
Analysis / Root cause:
After fixing that the Devfile samples could not be loaded on Safari (only), it looks like they couldn't be loaded at all / or on other browsers.
The reason was that the browsers caches an redirect from /api/devfile/samples (frontend code) to /api/devfile/samples/ (backend code). The PR #10464 to fix https://bugzilla.redhat.com/show_bug.cgi?id=2023356 changed all code to /api/devfile/samples but the browsers keep their redirect. So that the fix works when the user clears their cache or uses another cluster (URL) but has issues after updating locally. We could also expect that the users will have issues after updating from 4.9 to 4.10 with this solution.
Solution Description:
How reproducible:
Only if the user uses an older version first (before #10464 was merged) and then switches to the latest version.
Steps to Reproduce:
Actual results:
The Devfile samples could not be loaded. After cleaning the browser cache it works fine.
Expected results:
The Devfile samples could be loaded also when the browser has a redirect in its cache.
Additional info:
You can open the browser network inspector to check if the API calls contain any redirect.
Fix:
I changed all routes back to
...samples/.... In addition to that I made a change indevfileHooks.tsto use the new logic which was overlooked at #10464.Browser conformance: