[
https://issues.jboss.org/browse/GTNPORTAL-2712?page=com.atlassian.jira.pl...
]
Stian Thorgersen updated GTNPORTAL-2712:
----------------------------------------
Description:
There's a few simple improvements that can be made to the garbage collection of
expired tokens in AbstractTokenService.
If an exception is thrown in cleanExpiredTokens this will cause the executor to stop
running garbage collection until the server is restarted. There's is also no
warning/error in the log for this.
A NPE can be thrown in cleanExpiredTokens if a token is deleted between getAllTokens and
getToken as the if statement that checks if a token is expired doesn't test for null.
There are several implementations of AbstractTokenService which all have their own
scheduled executor service.
was:There's a few simple improvements that can be made to
Issues with AbstractTokenService garbage collection of tokens
-------------------------------------------------------------
Key: GTNPORTAL-2712
URL:
https://issues.jboss.org/browse/GTNPORTAL-2712
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Reporter: Stian Thorgersen
Assignee: Stian Thorgersen
There's a few simple improvements that can be made to the garbage collection of
expired tokens in AbstractTokenService.
If an exception is thrown in cleanExpiredTokens this will cause the executor to stop
running garbage collection until the server is restarted. There's is also no
warning/error in the log for this.
A NPE can be thrown in cleanExpiredTokens if a token is deleted between getAllTokens and
getToken as the if statement that checks if a token is expired doesn't test for null.
There are several implementations of AbstractTokenService which all have their own
scheduled executor service.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira