Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15132

Creating a Trusted Application relationship fails with a less than useful error if the public key cannot be parsed correctly

    XMLWordPrintable

Details

    Description

      If the Public Key returned from the server cannot be parsed correctly a 500 page is thrown with the following stacktrace:

      Cause: 
      java.lang.IllegalArgumentException: Invalid TrustedApplication
      
      Stack Trace: [hide]
      
      java.lang.IllegalArgumentException: Invalid TrustedApplication
      	at com.atlassian.jira.security.auth.trustedapps.DefaultTrustedApplicationService.store(DefaultTrustedApplicationService.java:95)
      	at com.atlassian.jira.web.action.admin.trustedapps.EditTrustedApplication.doExecuteAction(EditTrustedApplication.java:29)
      	at com.atlassian.jira.web.action.admin.trustedapps.AbstractTrustedApplicationAction.doExecute(AbstractTrustedApplicationAction.java:37)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:153)
              ...
      

      This is caused by the requester not being able to parse the public key correctly and not properly validating this case.

      Attachments

        Activity

          People

            jed Jed Wesley-Smith (Inactive)
            jed Jed Wesley-Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: