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:
The problem here is obvious: if there is no information in the JSF backing bean about the message, there is no information to display.
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:
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.