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

Improve the error thrown when issue copy fails

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • None
    • None
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

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

      When the remote issue copy is failing due to the "CertificateTooOldException when Configuring Trusted Communication", it throws an ugly error message on the browser:

      Remote copy fails: Unrecognized field "errorMessages"
      
      Cause:
      com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"])
      Stack Trace: [hide]
      com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable
      at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"])
      at com.atlassian.plugins.rest.module.jersey.JerseyResponse.getEntity(JerseyResponse.java:50)
      at com.atlassian.cpji.components.remote.AbstractJsonResponseHandler.handle(AbstractJsonResponseHandler.java:43)stack trace when remote
      at com.atlassian.cpji.components.remote.RemoteJiraProxy$5.handle(RemoteJiraProxy.java:176)
      at com.atlassian.cpji.components.remote.RemoteJiraProxy$5.handle(RemoteJiraProxy.java:163)
      

      I would be great to improve the error message to something like "Remote copy fails: Unrecognized field "errorMessages" - don't panic"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vkharisma vkharisma (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: