You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/11/16 10:16:11 UTC

[Bug 60379] New: GenericPrincipal never frees GSSCredential

https://bz.apache.org/bugzilla/show_bug.cgi?id=60379

            Bug ID: 60379
           Summary: GenericPrincipal never frees GSSCredential
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: 1983-01-06@gmx.net
  Target Milestone: ----

Created attachment 34453
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34453&action=edit
Patch for disposing the delegated GSS credential

GenericPrincipal#logout() implementation never frees GSSCredential on logout
but the contract of GSSCredential#dispose() requires to be called as soon as
this senstivive auth data is not needed anymore.

A simple
if (gssCredential != null) {
    gssCredential.dispose();
}

can be added to the #logout() implementation.

See
http://docs.oracle.com/javase/7/docs/api/org/ietf/jgss/GSSCredential.html#dispose()
of dispose().

This issue will likely apply to 9.0.x as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60379] GenericPrincipal never frees GSSCredential

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60379
Bug 60379 depends on bug 60380, which changed state.

Bug 60380 Summary: HttpServletRequest#logout() never calls TomcatPrincipal#logout()
https://bz.apache.org/bugzilla/show_bug.cgi?id=60380

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60379] GenericPrincipal never frees GSSCredential

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60379

Michael Osipov <19...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |60380


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=60380
[Bug 60380] HttpServletRequest#logout() never calls TomcatPrincipal#logout()
-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60379] GenericPrincipal never frees GSSCredential

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60379

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the patch.

It has been fixed in:
- trunk for 9.0.0.M14 onwards
- 8.5.x for 8.5.9 onwards
- 8.0.x for 8.0.40 onwards
- 7.0.x for 7.0.74 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org