Uploading a JIRA Avatar in IE10 results in errors.

XMLWordPrintable

    • 1
    • Severity 2 - Major

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

      Steps to replicate:

      1. Go to your profile
      2. Click on the Avatar Picture
      3. Select a file to upload
      4. Crop the selected image
      5. Click on Confirm, nothing happens.

      When you click on on Confirm this shows up on the console:

      ajax[39132742] error :
      { successful : false, status : 400, statusText : error, hasData : true, readyState : 4, requestId : 39132742, aborted : undefined, }
      

      The following request to https://example.atlassian.net/rest/api/latest/user/avatar?username=username responds with a 400 and a response body similar to the one below:

      {"errorMessages":["Can not construct instance of int from String value '24.4000244140625': not a valid Integer value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@ab879d; line: 1, column: 2] (through reference chain: com.atlassian.jira.rest.v2.issue.AvatarCroppingBean[\"cropperOffsetX\"])"]}
      

      The request body is:

      {"cropperOffsetX":"24.4000244140625","cropperOffsetY":"0","cropperWidth":"150"}
      

      For some reason a non integer value is being passed and this error happens.

              Assignee:
              Unassigned
              Reporter:
              Marlon Aguiar
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: