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

[WFLY-9450] NPE on jaxrs subsystem of FAILED deployment #12022

Closed
wants to merge 1 commit into from

Conversation

baranowb
Copy link
Contributor

bstansberry
bstansberry previously approved these changes Jan 24, 2019
@@ -184,7 +184,9 @@ public void execute(OperationContext context, ModelNode operation) throws Operat
UndertowService.deploymentServiceName(server, host, contextPath));
final UndertowDeploymentService deploymentService = (UndertowDeploymentService) controller.getService();
try {

if(deploymentService.getDeployment() == null) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just returning here bypasses the catch block. Which is good in that writing to the server log, with a stack trace, is not good in this situation. OTOH it also bypasses the context.addResponseWarning in that catch block, so the user doesn't get the expected result but also gets no feedback as to why.

I can live with that though; I expect there are many other similar cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I will give it another spin and see if it can do better withought drawbacks.

@bstansberry bstansberry dismissed their stale review February 8, 2019 16:14

@baranowb I'm removing my "Approved" review based on the discussion above. I don't want this to get merged by mistake while you're making changes. I'm fine though with merging this as is if you want to make any change later. If you want that, please just ping me and we'll make it happen. Thanks!

@kabir
Copy link
Contributor

kabir commented Oct 29, 2019

Closing as #12731 has been merged and contains the fixes from here

@kabir kabir closed this Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants