You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/07/13 10:37:00 UTC
[jira] [Commented] (KNOX-3375) KnoxCLI fails if rolesLookupInterceptor is enabled
[ https://issues.apache.org/jira/browse/KNOX-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095854#comment-18095854 ]
ASF subversion and git services commented on KNOX-3375:
-------------------------------------------------------
Commit 3f2ed2e5930b19629284e9fe01fa871e8787bc7e in knox's branch refs/heads/master from hanicz
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=3f2ed2e59 ]
KNOX-3375: Wire in gatewayservices for LDAPRolesLookupInterceptorFactory so KnoxCLI is able to load it (#1303)
> 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
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)