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

[chrome/urlOverflowCheck] use modifyUrl helper #22435

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Aug 28, 2018

Fixes #18835

This updates the url-overflow redirect to use the modifyUrl() helper which was written almost exclusively to help deal with the confusion that node's path and pathname nonsense creates. I tested this in Edge and things seem to work well, but I'd appreciate if @baracudda or @chandanpal could checkout this PR and see if it works for them.

@spalger spalger added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:fix v7.0.0 v6.5.0 labels Aug 28, 2018
@spalger spalger requested a review from azasypkin August 28, 2018 00:18
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@azasypkin
Copy link
Member

Will review and test on my Windows VM today.

Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

LGTM, I think I was able to reproduce original issue locally on master and confirmed that it's not reproducible with this PR.

Steps to reproduce I followed (with local code change):

  1. ngnix config:
server {
  	listen 8080;
  	server_name kibana;

	location ~ ^/kibana/(.*)$ {
		rewrite /kibana/(.*) /$1 break;
		proxy_pass http://localhost:5601;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection 'upgrade';
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
}
  1. Change this value to something smaller so that you can reproduce the issue with a bunch of visualizations in any browser, e.g. 2500

  2. Run Kibana with node scripts/kibana --oss --server.basePath=/kibana --server.rewriteBasePath=false

@spalger spalger merged commit 925e13f into elastic:master Aug 28, 2018
spalger pushed a commit to spalger/kibana that referenced this pull request Aug 28, 2018
Fixes elastic#18835

This updates the url-overflow redirect to use the `modifyUrl()` helper which was written almost exclusively to help deal with the confusion that node's `path` and `pathname` nonsense creates. I tested this in Edge and things seem to work well, but I'd appreciate if @baracudda or @chandanpal could checkout this PR and see if it works for them.
spalger pushed a commit that referenced this pull request Aug 29, 2018
Fixes #18835

This updates the url-overflow redirect to use the `modifyUrl()` helper which was written almost exclusively to help deal with the confusion that node's `path` and `pathname` nonsense creates. I tested this in Edge and things seem to work well, but I'd appreciate if @baracudda or @chandanpal could checkout this PR and see if it works for them.
@spalger
Copy link
Contributor Author

spalger commented Aug 29, 2018

6.x/6.5: ae8cbe3

@spalger spalger deleted the fix/url-overflow-redirect branch August 29, 2018 19:29
@chandanpal
Copy link

@spalger thanks for the fix. i will test it and let you know. is this fix will come under 6.5 release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.5.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants