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

[Reporting] Remove Boom #116289

Merged
merged 4 commits into from
Oct 28, 2021
Merged

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Oct 26, 2021

Summary

Removes an instance of throwing a Boom.unauthorized error and instead uses the kibanaResponseFactory responses.

Notes

  • Replaced 401 Unauthorized with 403 Forbidden to avoid Kibana public from sending user back to log in screen
  • Also updated throwing behaviour in the abstract ResponseHandle class and instead returns a 500 with error message that will hopefully provide more information about the issue client side.

Checklist

@jloleysens jloleysens added chore (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Reporting Services v7.16.1 labels Oct 26, 2021
@jloleysens jloleysens requested review from a team as code owners October 26, 2021 13:41
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@jloleysens jloleysens changed the title [Reporting] Remove boom [Reporting] Remove Boom Oct 26, 2021
Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens jloleysens enabled auto-merge (squash) October 28, 2021 11:22
@jloleysens jloleysens added the auto-backport Deprecated - use backport:version if exact versions are needed label Oct 28, 2021
@jloleysens jloleysens merged commit 1e88abb into elastic:master Oct 28, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@kibanamachine
Copy link
Contributor

The following labels were identified as gaps in your version labels and will be added automatically:

  • v8.1.0

If any of these should not be on your pull request, please manually remove them.

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 28, 2021
* remove use of boom from info response handler; also changed unauthd response to forbidden to avoid client logging user out

* rather return 500 with err.message

* added jest tests for common cases on the info route

Co-authored-by: Kibana Machine <[email protected]>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 28, 2021
* remove use of boom from info response handler; also changed unauthd response to forbidden to avoid client logging user out

* rather return 500 with err.message

* added jest tests for common cases on the info route

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

@jloleysens jloleysens deleted the reporting/remove-boom branch October 28, 2021 15:32
kibanamachine added a commit that referenced this pull request Oct 28, 2021
* remove use of boom from info response handler; also changed unauthd response to forbidden to avoid client logging user out

* rather return 500 with err.message

* added jest tests for common cases on the info route

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Jean-Louis Leysens <[email protected]>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 29, 2021
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

jloleysens added a commit that referenced this pull request Nov 1, 2021
* remove use of boom from info response handler; also changed unauthd response to forbidden to avoid client logging user out

* rather return 500 with err.message

* added jest tests for common cases on the info route

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Jean-Louis Leysens <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 1, 2021
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 chore (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v7.16.1 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants