Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-32857

Improve the error thrown when issue copy fails

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? 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: