Details

    • Type: Support Request
    • Status: Closed
    • Priority: Major
    • Resolution: Resolved Locally
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      JIRA 7.1.4

      Description

      Creating issues with Umlauts in attributes leads to error "Invalid UTF-8 ...". This worked fine with JIRA 6.4.10 using JCLI 4.5.0. Here's an example how to provoke this error:

      Z:\Programme\atlassian-cli-5.4.0>jira --server https://our.jira.server --user username --password password --action createIssue --project "JIRA" --summary "Mötörhead" --type "Suggestion" --verbose

      Server address: https://our.jira.server
      Response code: 200, message: OK, url: https://our.jira.server/rest/org.swift.jira.cli/latest/validatelicense?
      check JIRA release: 7.1.4
      URL requested: https://our.jira.server/rest/api/latest/project/JIRA?
      Request type: GET
      Content type: application/json
      Response code: 200, message: OK, url: https://our.jira.server/rest/api/latest/project/JIRA?
      URL requested: https://our.jira.server/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=JIRA&issuetypeIds=11
      Request type: GET
      Content type: application/json
      Response code: 200, message: OK, url: https://our.jira.server/rest/api/latest/issue/createmeta/?&expand=projects.issuetypes.fields&projectKeys=JIRA&issuetypeIds=11
      URL requested: https://our.jira.server/rest/api/latest/issue?
      Request type: POST
      Content type: application/json
      Post data: {"fields":{"summary":"Mötörhead","issuetype":

      {"id":"11"}

      ,"project":

      {"id":"12400","key":null}

      }}
      Response code: 400, message: Bad Request, url: https://our.jira.server/rest/api/latest/issue?
      json:

      {"errorMessages":["Invalid UTF-8 middle byte 0x74\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5cd44aac; line: 1, column: 26]"]}

      Remote error: Invalid UTF-8 middle byte 0x74
      at Source: org.apache.catalina.connector.CoyoteInputStream@5cd44aac; line: 1, column: 26
      org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Invalid UTF-8 middle byte 0x74
      at Source: org.apache.catalina.connector.CoyoteInputStream@5cd44aac; line: 1, column: 26
      at org.swift.common.cli.AbstractRestClient.printErrorMessages(AbstractRestClient.java:293)
      at org.swift.common.cli.AbstractRestClient.restRequestWithUrlConnection(AbstractRestClient.java:719)
      at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:573)
      at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:544)
      at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:519)
      at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:507)
      at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:491)
      at org.swift.jira.cli.JiraRestClient.createIssue(JiraRestClient.java:2206)
      at org.swift.jira.cli.helpers.IssueHelper.createIssue(IssueHelper.java:183)
      at org.swift.jira.cli.helpers.IssueHelper.createIssue(IssueHelper.java:156)
      at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:1030)
      at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:448)
      at org.swift.common.cli.CliClient.doWork(CliClient.java:454)
      at org.swift.jira.cli.JiraClient.main(JiraClient.java:160)

        Attachments

          Activity

            People

            • Assignee:
              bswift Bob Swift [Bob Swift Atlassian Apps]
              Reporter:
              tobias.heinemann@swisscom.com Tobias Heinemann [Swisscom]
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync