Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-6606

Blank/White screen when opening some Service Desk requests from the customer portal

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 4.4.3, 3.16.11, 4.5.3
    • 4.4.0, 4.4.1, 4.4.2, 3.16.11, 3.16.8
    • Customer Portal
    • None

      Issue Summary

      If a Service Desk ticket contains mentions of other tickets in public comments, a customer won't be able to open this ticket if this user does not have access to the mentioned tickets, and will see a blank page.

      The issue can also occur when hyperlinks to other sites are mentioned in either the ticket summary or ticket description

      Steps to reproduce

      • Install Service Desk 4.4.2
      • Create a new Service Desk project
      • Create a customer account in this project (let's call the user customer1)
      • Create 2 tickets in the Service Desk project:
        • 1 ticket that customer1 has access to, by being the reporter or a participant (let's call this ticket BASICSD-2)
        • 1 ticket that customer1 does not have access to (let's call this ticket BASICSD-3)
      • Log into Jira as an agent
      • Open BASICSD-2, add a new public comment and include the internal URL of the issue BASICSD-3 (<JIRA_BASE_URL>/browse/BASICSD-3) in the comment
      • Log into the customer portal as the user customer1
      • Go to My Requests, and click on the request BASICSD-2

      Expected results

      The request BASICSD-2 should be opened in the customer portal.

      Actual results

      • The request BASICSD-2 can't be opened and the following happens:
        • the ticket shows as a blank screen and a 500 error is thrown in the UI
        • the following error is thrown in the Jira logs:
          2019-10-18 10:03:12,746 http-nio-8080-exec-10 ERROR xxxxxx XXXxXXXXxX ubczia XXX.XX.XX.XX /servicedesk/customer/portal/1/ABC-123 [o.a.c.c.C.[.[localhost]..[default]] Servlet.service() for servlet [default] threw exception
          java.lang.NullPointerException
                  at java.util.regex.Matcher.appendReplacement(Matcher.java:804)
                  at com.atlassian.servicedesk.internal.feature.customer.request.UrlReplacer.replace(UrlReplacer.java:41)
                  at com.atlassian.servicedesk.internal.feature.customer.request.IssueUrlConverterImpl.replaceIssueUrlsWithPortalRequestUrls(IssueUrlConverterImpl.java:71)
                  at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateCustomerTextIntertal(CustomerTextRendererImpl.java:165)
                  at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateTextForCustomer(CustomerTextRendererImpl.java:150)
                  at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.renderComment(CustomerTextRendererImpl.java:84)
                  at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.buildCommentResponse(ActivityResponseManagerImpl.java:96)
                  at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.getResponse(ActivityResponseManagerImpl.java:72)
                  at 
          
      • In some situations, requests on the portal won't be shown at all:

      Workaround

      2 possible workarounds:

      1. Remove the URL <JIRA_BASE_URL>/browse/BASICSD-3) from the comment added to BASICSD-2
      2. Add the impacted user (customer1) as a participant of the request BASICSD-3

        1. CustomerPortal_View.png
          CustomerPortal_View.png
          103 kB
        2. JIRA_UI.png
          JIRA_UI.png
          442 kB
        3. screenshot-1.png
          screenshot-1.png
          30 kB

            [JSDSERVER-6606] Blank/White screen when opening some Service Desk requests from the customer portal

            set-jac-bot made changes -
            Ivan Lay made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 484253 ]
            Marko Filipan made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 475691 ]
            Sven Laanela (Inactive) made changes -
            Affects Version/s New: 3.16.11 [ 90397 ]
            Affects Version/s Original: 3.16.10 [ 89496 ]
            Elton Santos made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 470667 ]
            Elton Santos made changes -
            Fix Version/s New: 4.5.3 [ 90900 ]
            Fix Version/s Original: 4.5.0 [ 87497 ]
            Monique Khairuliana (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 466272 ]
            Aliaksei Melnikau (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 466114 ]
            Sergey made changes -
            Description Original: *Issue Summary*

            If a Service Desk ticket contains mentions of other tickets in public comments, a customer won't be able to open this ticket if this user does not have access to the mentioned tickets, and will see a blank page.

            *Steps to reproduce*
             - Install Service Desk 4.4.2
             - Create a new Service Desk project
             - Create a customer account in this project (let's call the user *customer1*)
             - Create 2 tickets in the Service Desk project:
             -- 1 ticket that customer1 has access to, by being the reporter or a participant (let's call this ticket BASICSD-2)
             -- 1 ticket that customer1 does not have access to (let's call this ticket BASICSD-3)
             - Log into *Jira* as an *agent*
             - Open BASICSD-2, add a new public comment and include the internal URL of the issue BASICSD-3 (<JIRA_BASE_URL>/browse/BASICSD-3) in the comment
             !JIRA_UI.png|thumbnail!
             - Log into the *customer portal* as the user *customer1*
             - Go to *My Requests*, and click on the request BASICSD-2

            *Expected results*

            The request BASICSD-2 should be opened in the customer portal.

            *Actual results*
             - The request BASICSD-2 can't be opened and the following happens:
             -- the ticket shows as a blank screen and a 500 error is thrown in the UI
             !CustomerPortal_View.png|thumbnail!
             -- the following error is thrown in the Jira logs:
            {code:java}
            2019-10-18 10:03:12,746 http-nio-8080-exec-10 ERROR xxxxxx XXXxXXXXxX ubczia XXX.XX.XX.XX /servicedesk/customer/portal/1/ABC-123 [o.a.c.c.C.[.[localhost]..[default]] Servlet.service() for servlet [default] threw exception
            java.lang.NullPointerException
                    at java.util.regex.Matcher.appendReplacement(Matcher.java:804)
                    at com.atlassian.servicedesk.internal.feature.customer.request.UrlReplacer.replace(UrlReplacer.java:41)
                    at com.atlassian.servicedesk.internal.feature.customer.request.IssueUrlConverterImpl.replaceIssueUrlsWithPortalRequestUrls(IssueUrlConverterImpl.java:71)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateCustomerTextIntertal(CustomerTextRendererImpl.java:165)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateTextForCustomer(CustomerTextRendererImpl.java:150)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.renderComment(CustomerTextRendererImpl.java:84)
                    at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.buildCommentResponse(ActivityResponseManagerImpl.java:96)
                    at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.getResponse(ActivityResponseManagerImpl.java:72)
                    at
            {code}
            - In some situations, requests on the portal won't be shown at all:
             !screenshot-1.png|thumbnail!

            *Workaround*

            2 possible workarounds:
             # Remove the URL {{<JIRA_BASE_URL>/browse/BASICSD-3)}} from the comment added to BASICSD-2
             # Add the impacted user (customer1) as a participant of the request BASICSD-3
            New: *Issue Summary*

            If a Service Desk ticket contains mentions of other tickets in public comments, a customer won't be able to open this ticket if this user does not have access to the mentioned tickets, and will see a blank page.

            The issue can also occur when hyperlinks to other sites are mentioned in either the ticket summary or ticket description

            *Steps to reproduce*
             - Install Service Desk 4.4.2
             - Create a new Service Desk project
             - Create a customer account in this project (let's call the user *customer1*)
             - Create 2 tickets in the Service Desk project:
             -- 1 ticket that customer1 has access to, by being the reporter or a participant (let's call this ticket BASICSD-2)
             -- 1 ticket that customer1 does not have access to (let's call this ticket BASICSD-3)
             - Log into *Jira* as an *agent*
             - Open BASICSD-2, add a new public comment and include the internal URL of the issue BASICSD-3 (<JIRA_BASE_URL>/browse/BASICSD-3) in the comment
             !JIRA_UI.png|thumbnail!
             - Log into the *customer portal* as the user *customer1*
             - Go to *My Requests*, and click on the request BASICSD-2

            *Expected results*

            The request BASICSD-2 should be opened in the customer portal.

            *Actual results*
             - The request BASICSD-2 can't be opened and the following happens:
             -- the ticket shows as a blank screen and a 500 error is thrown in the UI
             !CustomerPortal_View.png|thumbnail!
             -- the following error is thrown in the Jira logs:
            {code:java}
            2019-10-18 10:03:12,746 http-nio-8080-exec-10 ERROR xxxxxx XXXxXXXXxX ubczia XXX.XX.XX.XX /servicedesk/customer/portal/1/ABC-123 [o.a.c.c.C.[.[localhost]..[default]] Servlet.service() for servlet [default] threw exception
            java.lang.NullPointerException
                    at java.util.regex.Matcher.appendReplacement(Matcher.java:804)
                    at com.atlassian.servicedesk.internal.feature.customer.request.UrlReplacer.replace(UrlReplacer.java:41)
                    at com.atlassian.servicedesk.internal.feature.customer.request.IssueUrlConverterImpl.replaceIssueUrlsWithPortalRequestUrls(IssueUrlConverterImpl.java:71)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateCustomerTextIntertal(CustomerTextRendererImpl.java:165)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.updateTextForCustomer(CustomerTextRendererImpl.java:150)
                    at com.atlassian.servicedesk.internal.feature.customer.request.CustomerTextRendererImpl.renderComment(CustomerTextRendererImpl.java:84)
                    at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.buildCommentResponse(ActivityResponseManagerImpl.java:96)
                    at com.atlassian.servicedesk.internal.feature.customer.request.activitystream.responses.ActivityResponseManagerImpl.getResponse(ActivityResponseManagerImpl.java:72)
                    at
            {code}
            - In some situations, requests on the portal won't be shown at all:
             !screenshot-1.png|thumbnail!

            *Workaround*

            2 possible workarounds:
             # Remove the URL {{<JIRA_BASE_URL>/browse/BASICSD-3)}} from the comment added to BASICSD-2
             # Add the impacted user (customer1) as a participant of the request BASICSD-3
            Julien Rey made changes -
            Affects Version/s New: 3.16.10 [ 89496 ]

              Unassigned Unassigned
              jrey Julien Rey
              Affected customers:
              3 This affects my team
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: