Hadoop Common
  1. Hadoop Common
  2. HADOOP-8565

AuthenticationFilter#doFilter warns unconditionally when using SPNEGO

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      The following code in AuthenticationFilter#doFilter throws AuthenticationException (and warns) unconditionally because KerberosAuthenticator#authenticate returns null if SPNEGO is used.

        token = authHandler.authenticate(httpRequest, httpResponse);
        ...
        if (token != null) { ... } else {
          throw new AuthenticationException
        }
      

        Activity

        Alejandro Abdelnur made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Hide
        Alejandro Abdelnur added a comment -

        This is a dup of HADOOP-8355 (which I've missed to backport to branch-1, doing that now)

        Show
        Alejandro Abdelnur added a comment - This is a dup of HADOOP-8355 (which I've missed to backport to branch-1, doing that now)
        Eli Collins made changes -
        Assignee Alejandro Abdelnur [ tucu00 ]
        Eli Collins made changes -
        Field Original Value New Value
        Affects Version/s 2.0.0-alpha [ 12320352 ]
        Target Version/s 1.2.0, 2.0.1-alpha [ 12321659, 12321441 ] 1.2.0 [ 12321659 ]
        Hide
        Eli Collins added a comment -

        Only affects branch-1.

        Show
        Eli Collins added a comment - Only affects branch-1.
        Eli Collins created issue -

          People

          • Assignee:
            Alejandro Abdelnur
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development