Failed to upload Avatar when change zoom level in IE11

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.12.3, 8.3.0
    • None
    • 7.12
    • 1
    • Severity 3 - Minor

      Summary

      Failed to upload Avatar when change zoom level in IE11.

      Environment

      • Windows 10
      • IE 11
      • Jira 7.12.3, Jira 8.3.0

      Steps to Reproduce

      1. Go to your profile
      2. Zoom in on IE11 window
      3. Click on the Avatar Picture
      4. Select a file to upload
      5. Crop the selected image into small pieces
      6. Click on Confirm button

      Expected Results

      Cropped image uploaded normally.

      Actual Results

      Console display following error.

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

      POST request to <BASE_URL>/rest/api/latest/user/avatar?username=<USER_NAME>&atl_token=<TOKEN> endpoint return 400 error.

      Request body :

      {"cropperOffsetX":"90","cropperOffsetY":"90","cropperWidth":"78.79998779296875"}

      Response :

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

      Notes

      Ref. JRASERVER-33956

      Workaround

      • Reset browser zoom setting
      • Upload square image and crop full size of image

              Assignee:
              Unassigned
              Reporter:
              Tomoko Suzuki
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: