SSO credentials not used in IssueViewURLHandler

XMLWordPrintable

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      A customer has created a SSO plugin and are facing some specific issues in this context. When they click on the printable link of an issue (i.e: http://jira/lodh/si/jira.issueviews:issue-html/ORGJIRA-13/ORGJIRA-13.html) they get an error page indicating "the user myuser... doesn't exist..."

      They examined the Jira code and noticed that the following code is used in the class "com.atlassian.jira.plugin.issueview.IssueViewURLHandler" line 89:

      com.atlassian.jira.plugin.issueview.IssueViewURLHandler
      user = UserUtils.getUser(request.getRemoteUser());"
      

      And the usage of request.getRemoteUser() instead of the Jira API explains why it doesn't work in that context.

      They want to check if it is possible to use:

      user = ComponentManager.getInstance().getJiraAuthenticationContext().getUser();
      

      to get user instead of using a direct access to "request.getRemoteUser()" ?

      They also noticed that this code (request.getRemoteUser()) is also use in the JSP "webapp.includes.snippets.viewlinkedissuestable.jsp "

      In the other requests they don't encounter any problem.

              Assignee:
              Unassigned
              Reporter:
              Diego Alonso [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: