zeroflag opened a new pull request, #745:
URL: https://github.com/apache/knox/pull/745
## What changes were proposed in this pull request?
NullPointerException is thrown when the referenced provider is invalid in a
composite provider.
```
<provider>
<role>authorization</role>
<name>CompositeAuthz</name>
<enabled>true</enabled>
<param>
<name>composite.provider.names</name>
<value>x</value>
</param>
</provider>
```
## How was this patch tested?
Manually:
```
2023-03-29 10:19:20,541 ERROR knox.gateway
(DeploymentFactory.java:contributeServices(514)) - Failed to contribute service
[role=WEBHDFS, name=null]: org.apache.knox.gateway.deploy.DeploymentException:
Invalid composite provider name: x role: authorization provider: CompositeAuthz
topology: sandbox
org.apache.knox.gateway.deploy.DeploymentException: Invalid composite
provider name: x role: authorization provider: CompositeAuthz topology: sandbox
at
org.apache.knox.gateway.deploy.impl.CompositeAuthzDeploymentContributor.contributeFilter(CompositeAuthzDeploymentContributor.java:71)
~[gateway-provider-security-authz-composite-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
````
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]