Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42631

Error trying to access to a Private Message via URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.3, 20.0
    • Fix Version/s: 20.0
    • Component/s: Messages Tool
    • Labels:
      None
    • 19 status:
      Please Merge
    • 12 status:
      Please Merge
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      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.

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  adrianmticarum Adrian Martinez
                  Reporter:
                  adrianmticarum Adrian Martinez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration