https://issues.apache.org/bugzilla/show_bug.cgi?id=56523

            Bug ID: 56523
           Summary: SPNEGO auth failures are leading to stack trace prints
                    of PrivilegedActionExceptions
           Product: Tomcat 7
           Version: 7.0.53
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31620
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31620&action=edit
GNU Unified diff format of proposed fix

In the event of a privilegedactionexception in SpnegoAuthenticator, the error
is always logged. Hence the stack trace of the error always appears in
catalina.out. 
This leads to spurious logs even when debugging is not enabled

In the event of GSSException, its logged only when debugging is enabled.

It is imperative to note that The privilegedactions are AcceptAction and action
both of which only have the capacity to throw GSSException.

Hence I am suggesting a fix which logs privileged action exception only when
debugging is enabled in tomcat. This is added as an attachment and is a unified
diff of the SpnegoAuthenticator before and after the change.

Please let me know if you have any doubts about the fix or if you need a sample
catalina.out highlighting the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to