-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 0.20 Larks
-
Fix Version/s: 0.20 Larks
-
Labels:None
-
Environment:
deploy.jtalks.org/jcommune
Error 500 occurs when new registered user clicking on Messages link.
1) Register new user.
2) Use Activation link received by Email after registration.
3) Log-in with Login and password created on step 1.
4) Click on Messages link on the top of the page.
ACTUAL RESULT: Error "The server encountered an internal error () that prevented it from fulfilling this request" occurs.
EXPECTED: No errors, successful opening of messages page.
Note: This error reproduces only first one time. When this user clicks on Messages link for next time it will be ok.
root cause
org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/template/newPrivateMessage.jsp at line 22
19: <%@ taglib prefix="jtalks" uri="http://www.jtalks.org/tags" %>
20: <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
21: <sec:authentication property="principal.id" var="senderId"/>
22: <jtalks:hasPermission targetId='${senderId}' targetType='USER' permission='ProfilePermission.SEND_PRIVATE_MESSAGES'>
23: <a href="${pageContext.request.contextPath}/pm/new?senderId=${senderId}"
24: class="btn btn-primary btn-small pm_buttons">
25: <spring:message code="label.new_pm"/></a>