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

[Console] Encode pathname #122080

Merged
merged 6 commits into from
Jan 28, 2022
Merged

Conversation

mibragimov
Copy link
Contributor

Closes #76585

@mibragimov mibragimov self-assigned this Dec 28, 2021
@mibragimov mibragimov force-pushed the encoding-pathname branch 2 times, most recently from f0e845d to d7cdb31 Compare January 20, 2022 07:07
@mibragimov mibragimov added backport:skip This commit does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.1.0 labels Jan 21, 2022
@mibragimov mibragimov marked this pull request as ready for review January 24, 2022 04:30
@mibragimov mibragimov requested a review from a team as a code owner January 24, 2022 04:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov mibragimov requested review from sabarasaba and removed request for Kuznietsov January 24, 2022 04:33
@Kuznietsov Kuznietsov self-requested a review January 24, 2022 07:18
Copy link
Contributor

@Kuznietsov Kuznietsov left a comment

Choose a reason for hiding this comment

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

Nice catch! Code LGTM 👍

Copy link
Member

@sabarasaba sabarasaba 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 patching this up @mibragimov! changes lgtm, tested locally 🚀

I think would be nice to enhance the current tests in order to include this new behaviour :)

@@ -44,6 +58,7 @@ export const proxyRequest = ({
}: Args) => {
const { hostname, port, protocol, pathname, search } = uri;
const client = uri.protocol === 'https:' ? https : http;
const encodedPath = encodePathname(pathname);
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

@Kuznietsov Kuznietsov left a comment

Choose a reason for hiding this comment

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

Test LGTM! Thanks ) 🚀

@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

cc @mibragimov

@mibragimov mibragimov merged commit 0dcdc8a into elastic:main Jan 28, 2022
@mibragimov mibragimov deleted the encoding-pathname branch January 28, 2022 12:57
awahab07 pushed a commit to awahab07/kibana that referenced this pull request Jan 31, 2022
* Fix encoding pathname

* Add a test case


Co-authored-by: Muhammad Ibragimov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console isn't URI encoding pathname in a way that ES expects
6 participants