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

[Maps] Use content-encoding header from ES for mvt response #130417

Merged
merged 3 commits into from
Apr 16, 2022

Conversation

nickpeihl
Copy link
Member

Fixes #130291

Summary

Fixes invalid content-encoding for vector tiles in maps when HTTPS is enabled.

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use yarn es snapshot --ssl and yarn start --ssl.

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.
@nickpeihl nickpeihl added release_note:fix [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.2.0 v8.3.0 labels Apr 15, 2022
@nickpeihl nickpeihl requested a review from a team as a code owner April 15, 2022 20:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

Thanks for digging into this one. Such a small change, yet such a huge impact.
Code review, tested in chrome

@nreese nreese added the v8.1.3 label Apr 15, 2022
@nickpeihl nickpeihl added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 16, 2022
@nickpeihl nickpeihl enabled auto-merge (squash) April 16, 2022 11:34
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@nickpeihl nickpeihl merged commit ac5aca4 into elastic:main Apr 16, 2022
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.2 Backport failed because of merge conflicts
8.1 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 130417

Questions ?

Please refer to the Backport tool documentation

nickpeihl added a commit to nickpeihl/kibana that referenced this pull request Apr 16, 2022
…130417)

* Use content-encoding header from ES for mvt

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.

(cherry picked from commit ac5aca4)
nickpeihl added a commit to nickpeihl/kibana that referenced this pull request Apr 16, 2022
…130417)

* Use content-encoding header from ES for mvt

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.

(cherry picked from commit ac5aca4)
nickpeihl added a commit that referenced this pull request Apr 16, 2022
…#130431)

* Use content-encoding header from ES for mvt

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.

(cherry picked from commit ac5aca4)
nickpeihl added a commit that referenced this pull request Apr 16, 2022
…#130432)

* Use content-encoding header from ES for mvt

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.

(cherry picked from commit ac5aca4)
@nickpeihl nickpeihl removed the v8.1.3 label Apr 19, 2022
@nickpeihl
Copy link
Member Author

Tests for this were added in #130395.

kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
…130417)

* Use content-encoding header from ES for mvt

We can't always assume the content-encoding will be gzip. When SSL is enabled in Elasticsearch, the http.compression is disabled by default. We can use the headers from the Elasticsearch response to form the Kibana response.

You should have HTTPS enabled to test this PR. Use `yarn es snapshot --ssl` and `yarn start --ssl`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:fix v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Vector tiles from Elasticsearch are not loading in on-prem instances
5 participants