Skip to content

Commit

Permalink
[JBWS-4429] NPE when SOAP request with mismatched targetNameSpace is …
Browse files Browse the repository at this point in the history
…received
  • Loading branch information
lvydra authored and jimma committed Oct 11, 2024
1 parent 3d6a122 commit 7a43a95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,7 @@ public interface Messages {

@Message(id = 24113, value = "Invalid endpoint URI: %s")
IllegalArgumentException invalidEndpointURI(String endpoint);

@Message(id = 24118, value = "BindingOperation is missing for authorization")
IllegalArgumentException missingBindingOperationForAuthorization();
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ protected void checkAuthorization(MessageContext ctx)
SecurityContext secCtx = message.get(SecurityContext.class);
BindingOperationInfo bop = exchange.getBindingOperationInfo();
MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName());
if (bop == null)
{
throw MESSAGES.missingBindingOperationForAuthorization();
}
Method method = md.getMethod(bop);

EJBMethodSecurityAttribute attributes = attributeProvider.getSecurityAttributes(method);
Expand Down

0 comments on commit 7a43a95

Please sign in to comment.