-
Bug
-
Resolution: Done
-
Major
-
fuse-6.x-GA
-
None
-
%
-
-
After applying Rollup Patch 4 and logging into a fabric container via the client script, when trying to exit the session, the command fails with:
> exit
Error executing command: Invalid null input: name
Looking at the code, LogoutAction has been refactored to support audit logging of logout events and now looks up the sshRealm property from pid org.apache.karaf.shell. For some reason, this property seems to have gotten unset during the patch, though it is present in the configuration for R3 and R4. Restoring the property seems to resolve the issue.
Log contains the following stack:
2017-09-21 10:44:47,838 | INFO | Thread-52 | org.apache.karaf.shell.commands.LogoutAction | {{bundle.id,38}{bundle.name,org.apache.karaf.shell.console}{bundle.version,2.4.0.redhat-630283}} | Disconnecting from current session... 2017-09-21 10:44:47,840 | ERROR | Thread-52 | org.apache.karaf.shell.console.jline.Console | {{bundle.id,38}{bundle.name,org.apache.karaf.shell.console}{bundle.version,2.4.0.redhat-630283}} | Exception caught while executing command javax.security.auth.login.LoginException: Invalid null input: name at javax.security.auth.login.LoginContext.init(LoginContext.java:238)[:1.8.0_144] at javax.security.auth.login.LoginContext.<init>(LoginContext.java:381)[:1.8.0_144] at javax.security.auth.login.LoginContext.<init>(LoginContext.java:458)[:1.8.0_144] at org.apache.karaf.shell.commands.LogoutAction.doExecute(LogoutAction.java:60) at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33) at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_144] at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54) at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119) at org.apache.karaf.shell.console.commands.$BlueprintCommand310717754.execute(Unknown Source)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-630283] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92) at org.apache.karaf.shell.console.jline.Console.run(Console.java:197) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:171)[155:org.apache.karaf.shell.ssh:2.4.0.redhat-630283] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:126) at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_144] at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-630283] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:124)[155:org.apache.karaf.shell.ssh:2.4.0.redhat-630283]
- is caused by
-
ENTESB-6226 JAAS FileAuditLoginModule does not log explicit logouts
- Closed