We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e01bb6b commit 09a9b7eCopy full SHA for 09a9b7e
plugins/LdapPlugin/src/opengrok/auth/plugin/AbstractLdapPlugin.java
@@ -226,15 +226,14 @@ protected boolean sessionExists(HttpServletRequest req) {
226
*/
227
@SuppressWarnings("unchecked")
228
private void ensureSessionExists(HttpServletRequest req) {
229
- User user;
230
-
231
if (req.getSession() == null) {
232
// old/invalid request (should not happen)
233
return;
234
}
235
236
// The cast to User should not be problem as this object is stored
237
// in the request itself (as opposed to in the session).
+ User user;
238
if ((user = (User) req.getAttribute(UserPlugin.REQUEST_ATTR)) == null) {
239
updateSession(req, null, false);
240
0 commit comments