Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-288

AuthenticationException is not recognized as auth fail by Discovery interceptor

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.7.Final
    • Fix Version/s: 4.0.8.Final
    • Labels:
      None

      Description

      As documented in JBEAP-12279, remoting throws two different exceptions for failed authentication depending whether the connection was already opened or not: SaslException or AuthenticationException

      But EJB clients use "instanceof SaslException" to determine, whether the fail was an authentication of or the target server is unavailable:

      https://github.com/wildfly/jboss-ejb-client/blob/d2c6432b3a8357d18c2b65ace3080604e8feefa9/src/main/java/org/jboss/ejb/client/DiscoveryEJBClientInterceptor.java#L108

      Should accept both exceptions, unless JBEAP-12279 will be resolved.
      (but unification to AuthenticationException was rejected and reverted and unification to SaslException is blocked by elytron public api change - better to accept both exceptions here)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                honza889 Jan Kalina
                Reporter:
                honza889 Jan Kalina
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: