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

Issue 2283: Improve error message if authorization is not enabled #2382

Merged
merged 2 commits into from
Aug 17, 2018

Conversation

sijie
Copy link
Member

@sijie sijie commented Aug 15, 2018

Motivation

Fixes #2283.

If authorizationEnabled is not enabled, authorization service is not set. All the accesses to this authorization service will throw NPE and clients will receive Internal Server Error. The message is meaningless. It is better to return a more meaningful message.

Changes

Return Not implemented if authorization is not enabled.

 ### Motivation

 Fixes apache#2283.

 If authorizationEnabled is not enabled, authorization service is not set. All the accesses to this authorization service will throw NPE and clients will receive Internal Server Error. The message is meaningless. It is better to return a more meaningful message.

 ### Changes

 Return `Not implemented` if authorization is not enabled.
@sijie sijie added type/bug The PR fixed a bug or issue reported a bug area/cli area/broker labels Aug 15, 2018
@sijie sijie added this to the 2.2.0-incubating milestone Aug 15, 2018
@sijie sijie self-assigned this Aug 15, 2018
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@sijie
Copy link
Member Author

sijie commented Aug 16, 2018

run java8 tests

1 similar comment
@srkukarni
Copy link
Contributor

run java8 tests

@sijie sijie merged commit 2d197b0 into apache:master Aug 17, 2018
@sijie sijie deleted the remove_authorization_enabled branch August 17, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker area/cli type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants