CSP-11549 - Browser cookies cause NullPointerException when integrated with Confluence

Product: Confluence

Environment

Operating System  
Affect Version/s 2.5.7
JVM  
Database PostgreSQL
Application Server Tomcat 5.5.x

Error Message

Cause:

java.lang.NullPointerException
at com.atlassian.seraph.util.CookieUtils.setCookie(CookieUtils.java:100)

Stack Trace: [hide]

java.lang.NullPointerException
at com.atlassian.seraph.util.CookieUtils.setCookie(CookieUtils.java:100)
at com.atlassian.seraph.util.CookieUtils.invalidateCookie(CookieUtils.java:41)
at com.atlassian.seraph.util.CookieUtils.invalidateCookie(CookieUtils.java:55)
at com.atlassian.crowd.integration.seraph.CrowdAuthenticator.autoLoginToCrowd(CrowdAuthenticator.java:253)
at com.atlassian.crowd.integration.seraph.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:156)

Symptom

Seems to be related to Cookies not being reset and also associated with the Remember me functionality.

Diagnostics/Test

Root Cause

When integrating Confluence with Crowd as described here user has experienced Null Pointer Exceptions as soon as the crowd integration was added.

User clicked "Dashboard" link in breadcrumbs.

User had recently changed his password via our password update application.

Solution

Initially it looks as clearing the webbrowser cookies may do the trick. However, it is a known problem in the crowd connector authentication module as described here

Labels

confluence confluence Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.