-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
information request: long polling seem's bugged on 304 http status code. #3923
Labels
distribution
Issues related to the bundle plugin
Comments
floriangasc
added a commit
to floriangasc/opa
that referenced
this issue
Oct 25, 2021
Signed-off-by: Gasc Florian <florian.gasc@gmail.com> Fixes: open-policy-agent#3923
floriangasc
added a commit
to floriangasc/opa
that referenced
this issue
Nov 21, 2021
…ling download/download_test.go: testing about oneShot and download method When 304 content-type should not be send. Fix the download code for switch to regular polling and keep the previous value. Fixes: open-policy-agent#3923 Signed-off-by: Gasc Florian <florian.gasc@gmail.com>
floriangasc
added a commit
to floriangasc/opa
that referenced
this issue
Nov 22, 2021
…ling download/download_test.go: testing about oneShot and download method Fixes: open-policy-agent#3923 Signed-off-by: Gasc Florian <florian.gasc@gmail.com>
floriangasc
added a commit
to floriangasc/opa
that referenced
this issue
Nov 22, 2021
…ling download/download_test.go: testing about oneShot and download method When 304 content-type should not be send. Fix the download code for switch to regular polling and keep the previous value. Fixes: open-policy-agent#3923 Signed-off-by: Gasc Florian <florian.gasc@gmail.com>
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
PR# #3926 |
srenatus
pushed a commit
that referenced
this issue
Dec 10, 2021
…TTP status (#3926) Previously a 304 HTTP status code would make the downloader switch from long polling to regular polling. This is not desired, as it's in line with the HTTP spec not to have a Content-Type header for 304 responses. The absent Content-Type header had triggered the switch back to regular polling. Fixes: #3923 Signed-off-by: Gasc Florian <florian.gasc@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Actual Behavior
304 http status without content-type header should not change mode from long polling to regular polling.
Steps to Reproduce the Problem
the etag of foo.tar.gz is : "61751cfa-2c61e2"
opa polling config:
opa bundle server (i use openresty)
Additional Info
For solve issue i have
go longPoll: isLongPollSupported(resp.Header)
, tolongPool : longPoll
in case of 304 status in download function.question:
The text was updated successfully, but these errors were encountered: