[
https://issues.apache.org/jira/browse/KNOX-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamás Hanicz updated KNOX-3375:
-------------------------------
Description:
CLIGatewayServices load the below services
{code:java}
addService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
gatewayServiceFactory.create(this, ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
config, options));
addService(ServiceType.LDAP_SERVICE, gatewayServiceFactory.create(this,
ServiceType.LDAP_SERVICE, config, options)); {code}
If the rolesLookupInterceptor is enabled it needs the below which results in an
NPE
{code:java}
protected LDAPRolesLookupService getLDAPRolesLookupService() {
final GatewayServices gatewayServices =
GatewayServer.getGatewayServices();
return
gatewayServices.getService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE);
} {code}
Even a simple create-alias fails
was:
CLIGatewayServices load the below services
{code:java}
addService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
gatewayServiceFactory.create(this, ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
config, options));addService(ServiceType.LDAP_SERVICE,
gatewayServiceFactory.create(this, ServiceType.LDAP_SERVICE, config, options));
{code}
If the rolesLookupInterceptor is enabled it needs the below which results in an
NPE
{code:java}
protected LDAPRolesLookupService getLDAPRolesLookupService() {
final GatewayServices gatewayServices =
GatewayServer.getGatewayServices();
return
gatewayServices.getService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE);
} {code}
Even a simple create-alias fails
> KnoxCLI fails if rolesLookupInterceptor is enabled
> --------------------------------------------------
>
> Key: KNOX-3375
> URL: https://issues.apache.org/jira/browse/KNOX-3375
> Project: Apache Knox
> Issue Type: Bug
> Components: KnoxCLI
> Affects Versions: 3.0.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
>
> CLIGatewayServices load the below services
> {code:java}
> addService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
> gatewayServiceFactory.create(this, ServiceType.LDAP_ROLES_LOOKUP_SERVICE,
> config, options));
> addService(ServiceType.LDAP_SERVICE, gatewayServiceFactory.create(this,
> ServiceType.LDAP_SERVICE, config, options)); {code}
> If the rolesLookupInterceptor is enabled it needs the below which results in
> an NPE
>
> {code:java}
> protected LDAPRolesLookupService getLDAPRolesLookupService() {
> final GatewayServices gatewayServices =
> GatewayServer.getGatewayServices();
> return
> gatewayServices.getService(ServiceType.LDAP_ROLES_LOOKUP_SERVICE);
> } {code}
> Even a simple create-alias fails
--
This message was sent by Atlassian Jira
(v8.20.10#820010)