Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-12050

Failing validation checks on External Imports in Assets has non-translated error messages

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: no

      Steps to Reproduce

      1. Create Object Schema (if you don't already have an existing one)
      2. Create an External Import
      3. Follow this guide 
      4. Fail the validation with a reference object more than 30 characters  { "label": false, "description": "", "name": "Failover Replica Database Instance", "referenceObjectTypeName": "Database Instance", "type": "referenced_object" }

        ,

      Expected Results

      The actual response should be reporting the translated error message 

      `Name must contain at least 2 and max 30 characters`

      {
          "errorMessages": [
              "com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException: ValidationInsightException: Validation errors were found: name: ErrorMessage{Name must contain at least 2 and max 30 characters', parameters=[], additionalMessage=null}; "
          ],
          "errors": {}
      } 

      Actual Results

      Response returned from the endpoint

      {
          "errorMessages": [
              "com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException: ValidationInsightException: Validation errors were found: name: ErrorMessage{i18nKey='rlabs.insight.i18n.constraint.violation.ReferenceTypeBean.Size.name', parameters=[], additionalMessage=null}; "
          ],
          "errors": {}
      }...

      Workaround

      Currently you can search up the il8nKey in go/sourcegraph and find it. However there isn't a clear workaround.

              Unassigned Unassigned
              139904013ba4 Daniel Lau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: