Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2252 Export & Import - Single Report Entities
  3. OPT-4641

Importing wrong JSON file does not return structured error response

    XMLWordPrintable

Details

    • Not defined

    Description

      Reproduce:

      • Import a file with the following content:
        {
          "userId": "thisisanordinaryuserid",
          "userPassword": "!§$%&/()=?",
          "userFirstName": "Üßgart",
          "userLastName": "där Schröckliche",
          "email": "uessgart.der-schroekliche@gmx.de"
        }
        

      Expected:

      • Backend response is a JSON object with a valid errorCode that can be used to display an error notification

      Observed:

      • Backend response is
        Missing type id when trying to resolve subtype of [simple type, class org.camunda.optimize.dto.optimize.rest.export.OptimizeEntityExportDto]: missing type id property 'exportEntityType'
         at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 7, column: 1]
        

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                sebastian.stamm Sebastian Stamm
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce