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

chore(error_handlers): define response message for trace method 405 error status code #9448

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

liverpool8056
Copy link
Contributor

Summary

When nginx blocks request with trace method from client, it hits the default error message in kong which is "The upstream server responded with 405", it is a little ambiguous. Actually the request doesn't reach upstream.
Define a detail message "Method not allowed" for 405 status code.

@liverpool8056 liverpool8056 requested a review from a team as a code owner September 20, 2022 03:28
@dndx
Copy link
Member

dndx commented Sep 21, 2022

@liverpool8056 Could you add a test case for this PR?

@liverpool8056 liverpool8056 force-pushed the chore/FTI-4325-response-from-trace-method branch from 76d2d7a to b5a049f Compare September 21, 2022 03:27
@liverpool8056 liverpool8056 force-pushed the chore/FTI-4325-response-from-trace-method branch from b5a049f to df21f63 Compare September 21, 2022 03:34
@CLAassistant
Copy link

CLAassistant commented Sep 21, 2022

CLA assistant check
All committers have signed the CLA.

@liverpool8056 liverpool8056 force-pushed the chore/FTI-4325-response-from-trace-method branch from df21f63 to 103cbf7 Compare September 21, 2022 04:02
@liverpool8056
Copy link
Contributor Author

@dndx So sorrrrrrry for missing test case, and thank you for helping me to correct it, I added the test case in the new commit.

@chronolaw
Copy link
Contributor

Should we add an entry in changelog?

@chronolaw
Copy link
Contributor

Due to PR #9513, we should rebase the PR and change the index from string to number.

@liverpool8056 liverpool8056 force-pushed the chore/FTI-4325-response-from-trace-method branch from 103cbf7 to ae3d56c Compare October 27, 2022 03:13
@liverpool8056 liverpool8056 force-pushed the chore/FTI-4325-response-from-trace-method branch from ae3d56c to f26785f Compare October 27, 2022 03:22
@liverpool8056
Copy link
Contributor Author

@chronolaw already done

@hbagdi
Copy link
Member

hbagdi commented Oct 27, 2022

pinging @fffonion for merge.

@fffonion fffonion merged commit e5f9558 into master Oct 27, 2022
@fffonion fffonion deleted the chore/FTI-4325-response-from-trace-method branch October 27, 2022 04:19
@liverpool8056 liverpool8056 added this to the 3.1 milestone Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants