Skip to content

[chrome/urlOverflowCheck] use modifyUrl helper#22435

Merged
spalger merged 1 commit intoelastic:masterfrom
spalger:fix/url-overflow-redirect
Aug 28, 2018
Merged

[chrome/urlOverflowCheck] use modifyUrl helper#22435
spalger merged 1 commit intoelastic:masterfrom
spalger:fix/url-overflow-redirect

Conversation

@spalger
Copy link
Copy Markdown
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// 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
Copy Markdown
Contributor

💚 Build Succeeded

@azasypkin
Copy link
Copy Markdown
Contributor

Will review and test on my Windows VM today.

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown

@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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.5.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants