Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-40084

Large Image Files (> 100MB) in avatar picker causing OOME

    XMLWordPrintable

Details

    Description

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

      This bug is related to JRA-24633,

      Problem Description

      When customer upload a JPEG which is large (>100MB), it requires a lot of memory to generate the Thumbnail (e.g. in avatar picker) of the image and the instance crashes with OOME.

      It would be better if there is an error message or limit handling when it captures the size of the file and drop the thumbnail generation to ensure the instance is still running. Instead of allowing and later the instance crashes everytime the issue is loaded.
      In case of avatar picker JIRA should reject request informing user that image is too big and that smaller image should be used.

      Steps to replicate

      1. Get a huge dimension picture file (Eg, 2988 x 5312)
      2. Upload it as an avatar
      3. High possibility the instance will run into OOME

      Expected Result

      To have warning telling that image is too big, or alternatively, drop the thumbnail rendering for the file with error message.

      Workaround

      To use a smaller size image file for avatar

      Attachments

        Issue Links

          Activity

            People

              mkwidzinski Maciej Kwidziński
              rgee Richie Gee (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: