Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-29106

Better messaging when there is an error in rendering attachment web panel

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

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

      When there is a problem in parsing a file, for example a corrupted zip file for e.g.:

      2012-07-24 21:05:12.337121500 2012-07-24 21:05:12,334 TP-Processor14 ERROR sysadmin 1265x24125x1 30xmyz 211.24.247.39,131.103.26.83 /browse/TEST-17 [jira.web.component.ModuleWebComponentImpl] Error rendering web panel: com.atlassian.jira.jira-view-issue-plugin:attachmentmodule (null)
      2012-07-24 21:05:12.337124500 java.lang.IllegalArgumentException: invalid extra field length
      2012-07-24 21:05:12.337124500 	at java.util.zip.ZipEntry.setExtra(ZipEntry.java:232)
      2012-07-24 21:05:12.337125500 	at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:455)
      2012-07-24 21:05:12.337137500 	at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.addExtraField(ZipArchiveEntry.java:351)
      2012-07-24 21:05:12.337137500 	at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.mergeExtraFields(ZipArchiveEntry.java:625)
      2012-07-24 21:05:12.337138500 	at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:440)
      2012-07-24 21:05:12.337139500 	at org.apache.commons.compress.archivers.zip.ZipFile.resolveLocalFileHeaderData(ZipFile.java:833)
      2012-07-24 21:05:12.337140500 	at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:208)
      2012-07-24 21:05:12.337141500 	at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)
      2012-07-24 21:05:12.337154500 	at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)
      2012-07-24 21:05:12.337154500 	at com.atlassian.jira.issue.attachment.AttachmentZipKit.isZip(AttachmentZipKit.java:174)
      2012-07-24 21:05:12.337155500 	at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.shouldExpandAsZip(AttachmentBlockContextProvider.java:197)
      

      If this happens, JIRA will stop displaying the attachment panel nicely but throws this error message instead:

      Error rendering 'com.atlassian.jira.jira-view-issue-plugin:attachmentmodule'. Please contact your JIRA administrators.

      This behaviour does not exist in JIRA 5.0.x

        1. 40094.jpg
          40094.jpg
          110 kB
        2. 40097.jpg
          40097.jpg
          110 kB
        3. 40100.jpg
          40100.jpg
          110 kB
        4. panel-error.png
          panel-error.png
          11 kB

          Form Name

            [JRACLOUD-29106] Better messaging when there is an error in rendering attachment web panel

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3147922 ] New: JAC Suggestion Workflow 3 [ 3646752 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - TEMP [ 2328523 ] New: JAC Suggestion Workflow [ 3147922 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]
            Eric S (Inactive) made changes -
            Component/s New: Issue [ 51491 ]
            Component/s Original: Issue - Attachments [ 46518 ]
            Katherine Yabut made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 2096205 ] New: JIRA Bug Workflow w Kanban v6 - TEMP [ 2328523 ]
            Katherine Yabut made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - TEMP [ 2059967 ] New: JIRA Bug Workflow w Kanban v6 [ 2096205 ]
            Katherine Yabut made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 1822506 ] New: JIRA Bug Workflow w Kanban v6 - TEMP [ 2059967 ]
            jonah (Inactive) made changes -
            Description Original: When there is a problem in parsing a file, for example a corrupted zip file for e.g.:

            {code}
            2012-07-24 21:05:12.337121500 2012-07-24 21:05:12,334 TP-Processor14 ERROR sysadmin 1265x24125x1 30xmyz 211.24.247.39,131.103.26.83 /browse/TEST-17 [jira.web.component.ModuleWebComponentImpl] Error rendering web panel: com.atlassian.jira.jira-view-issue-plugin:attachmentmodule (null)
            2012-07-24 21:05:12.337124500 java.lang.IllegalArgumentException: invalid extra field length
            2012-07-24 21:05:12.337124500 at java.util.zip.ZipEntry.setExtra(ZipEntry.java:232)
            2012-07-24 21:05:12.337125500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:455)
            2012-07-24 21:05:12.337137500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.addExtraField(ZipArchiveEntry.java:351)
            2012-07-24 21:05:12.337137500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.mergeExtraFields(ZipArchiveEntry.java:625)
            2012-07-24 21:05:12.337138500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:440)
            2012-07-24 21:05:12.337139500 at org.apache.commons.compress.archivers.zip.ZipFile.resolveLocalFileHeaderData(ZipFile.java:833)
            2012-07-24 21:05:12.337140500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:208)
            2012-07-24 21:05:12.337141500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)
            2012-07-24 21:05:12.337154500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)
            2012-07-24 21:05:12.337154500 at com.atlassian.jira.issue.attachment.AttachmentZipKit.isZip(AttachmentZipKit.java:174)
            2012-07-24 21:05:12.337155500 at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.shouldExpandAsZip(AttachmentBlockContextProvider.java:197)
            {code}

            If this happens, JIRA will stop displaying the attachment panel nicely but throws this error message instead:

            bq. Error rendering 'com.atlassian.jira.jira-view-issue-plugin:attachmentmodule'. Please contact your JIRA administrators.

            This behaviour does not exist in JIRA 5.0.x
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This suggestion is for *JIRA Cloud*. Using *JIRA Server*? [See the corresponding suggestion|http://jira.atlassian.com/browse/JRASERVER-29106].
              {panel}

            When there is a problem in parsing a file, for example a corrupted zip file for e.g.:

            {code}
            2012-07-24 21:05:12.337121500 2012-07-24 21:05:12,334 TP-Processor14 ERROR sysadmin 1265x24125x1 30xmyz 211.24.247.39,131.103.26.83 /browse/TEST-17 [jira.web.component.ModuleWebComponentImpl] Error rendering web panel: com.atlassian.jira.jira-view-issue-plugin:attachmentmodule (null)
            2012-07-24 21:05:12.337124500 java.lang.IllegalArgumentException: invalid extra field length
            2012-07-24 21:05:12.337124500 at java.util.zip.ZipEntry.setExtra(ZipEntry.java:232)
            2012-07-24 21:05:12.337125500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:455)
            2012-07-24 21:05:12.337137500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.addExtraField(ZipArchiveEntry.java:351)
            2012-07-24 21:05:12.337137500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.mergeExtraFields(ZipArchiveEntry.java:625)
            2012-07-24 21:05:12.337138500 at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtra(ZipArchiveEntry.java:440)
            2012-07-24 21:05:12.337139500 at org.apache.commons.compress.archivers.zip.ZipFile.resolveLocalFileHeaderData(ZipFile.java:833)
            2012-07-24 21:05:12.337140500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:208)
            2012-07-24 21:05:12.337141500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)
            2012-07-24 21:05:12.337154500 at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)
            2012-07-24 21:05:12.337154500 at com.atlassian.jira.issue.attachment.AttachmentZipKit.isZip(AttachmentZipKit.java:174)
            2012-07-24 21:05:12.337155500 at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.shouldExpandAsZip(AttachmentBlockContextProvider.java:197)
            {code}

            If this happens, JIRA will stop displaying the attachment panel nicely but throws this error message instead:

            bq. Error rendering 'com.atlassian.jira.jira-view-issue-plugin:attachmentmodule'. Please contact your JIRA administrators.

            This behaviour does not exist in JIRA 5.0.x
            jonah (Inactive) made changes -
            Link New: This issue is related to JRASERVER-29106 [ JRASERVER-29106 ]
            vkharisma made changes -
            Project Import New: Sat Apr 01 19:36:47 UTC 2017 [ 1491075407146 ]
            Oswaldo Hernandez (Inactive) made changes -

              Unassigned Unassigned
              amohdaris Azwandi Mohd Aris (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: