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

[WFCORE-1028]: Poor handling of invalid roles. #1319

Merged
merged 1 commit into from Apr 16, 2016

Conversation

ehsavoie
Copy link
Contributor

Getting the authorization error passed to the handler so it can get back cleanly.

Jira: https://issues.jboss.org/browse/WFCORE-1028

@Override
public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) {
if(fakeOperationResponse != null && fakeOperationResponse.hasDefined(FAILURE_DESCRIPTION)) {
context.setRollbackOnly();
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary? I don't think it should be needed, since whatever step populated fakeOperationResponse has already reported a problem. So I think it's out-of-scope for this result handler to be manipulating the OC's resultAction.

Getting the authorization error passed to the handler so it can get back cleanly.
@bstansberry bstansberry added ready-for-merge This PR is ready to be merged and fulfills all requirements 3.x labels Apr 15, 2016
@bstansberry bstansberry merged commit 629fd30 into wildfly:master Apr 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
2 participants