Error trying to access to a Private Message via URL

Description

We have detected at our University that users tend to save URL's as Bookmarks and favorites to access to certain pages of the application. In the case of private messages, they save URL's as the following to access to a private message:

http://serverName/portal/site/2f1aef79-f683-407b-86a4-89eb26adfb38/tool/d3ebf86f-bf0f-4dcd-b620-1d4c91d32c3e/privateMsg/pvtMsgDetail

The problem here is obvious: if there is no information in the JSF backing bean about the message, there is no information to display.

Before SAK-42557, the problem with this situation was that an empty message detail page was displayed since JSF does not cause a NullPointerException. After SAK-42557 a NullPointerException is thrown in this situation by the "getSenderRoleAndGroups" method added to the "MessageForumsFilePickerServlet" class.

We have detected another problem with URL's in private messages. This problem is related with the URL sent via email when the select the option "Send a copy of this message to recipients' email address(es)". Sometimes they paste URL's as the following ones:

http:// serverName /portal/site/2f1aef79-f683-407b-86a4-89eb26adfb38/tool/d3ebf86f-bf0f-4dcd-b620-1d4c91d32c3e/privateMsg/pvtMsgDirectAccess?current_msg_detail=

http://serverName/portal/site/2f1aef79-f683-407b-86a4-89eb26adfb38/tool/d3ebf86f-bf0f-4dcd-b620-1d4c91d32c3e/privateMsg/pvtMsgDirectAccess?current_msg_detail=null

We are not sure of why there is no id of message in these URL's, but sometimes it happens.

We need a way to assure that a copy-paste of a URL won't cause these errors.

 

is related to

relates to

Activity

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created October 10, 2019 at 3:29 AM
Updated October 22, 2019 at 11:08 AM
Resolved October 15, 2019 at 6:52 AM