Affected Version: 2.11.5
What steps will reproduce the problem?
1) Use gerrit with a configuration like:
[ldap]
[...]
[cache "web_sessions"]
maxAge = 0
What is the expected output? What do you see instead?
Expected behavior: stay logged in "forever", as documented at https://gerrit-documentation.storage.googleapis.com/Documentation/2.11.5/config-gerrit.html#cache which says that "If 0 is supplied, the maximum age is infinite and items are never purged except when the cache is full.".
Actual behavior instead is:
| [2015-12-10 11:12:13,642] WARN com.google.gerrit.httpd.WebSessionManager : cache.web_sessions.maxAge is set to 0 milliseconds; it should be at least 5 minutes.
and users aren't able to login as they get thrown out again immediately.