Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-418

Uberfire is swallowing exceptions during login

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 0.8.0.Final
    • None
    • None
    • NEW
    • NEW

      Working on RHBPMS-473, I noticed that UF is swallowing security exceptions in the following way:

      This makes debugging login issues unnecessarily hard.

      For reference, here is the full stack trace (after I added e.printStackTrace() into the JAASAuthenticationService.login method:

      13:51:01,471 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.as.security.remoting.RemotingLoginModule
      13:51:01,472 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:794)
      13:51:01,472 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
      13:51:01,472 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
      13:51:01,472 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
      13:51:01,472 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at java.security.AccessController.doPrivileged(Native Method)
      13:51:01,473 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      13:51:01,473 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
      13:51:01,473 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at org.uberfire.backend.server.security.JAASAuthenticationService.login(JAASAuthenticationService.java:76)
      13:51:01,473 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at org.uberfire.backend.server.security.IOServiceSecuritySetup$2.authenticate(IOServiceSecuritySetup.java:101)
      13:51:01,473 ERROR [stderr] (sshd-SshServer[416a86dc]-nio2-thread-3) 	at org.uberfire.java.nio.fs.jgit.daemon.ssh.GitSSHService$2.authenticate(GitSSHService.java:98)
      

              abakos@redhat.com Alexandre Porcelli
              rhn-support-mputz Martin Weiler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: