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

      Problem:

      When accessing an issue in JIRA, the Attachment web panel failed to load. Attached SSS_test.jpg is the same jpg file that triggered rendering error on JRA-17036:

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

      Workaround:

      This problem occurs due to data inconsistency in the database, please see the instructions in this KB article on how to fix it.

      There is also this bug with the same error, but different stacktrace error and to which the KB does not apply.

            [JRASERVER-29357] Error in attachmentmodule when some files is attached

            Babade Adewole added a comment - - edited

            If the resolutions provided in the kb article does not work for you, it may be that attachments are not turned on your instance, and this is more likely if you have just done a cloud to server restore. 

            Ensure attachments are turned on before attempting the recommended resolutions . Turn on Attachments from Settings -> Advanced -> Attachments

             

            Babade Adewole added a comment - - edited If the resolutions provided in the kb article does not work for you, it may be that attachments are not turned on your instance, and this is more likely if you have just done a cloud to server restore.  Ensure attachments are turned on before attempting the recommended resolutions . Turn on Attachments from Settings -> Advanced -> Attachments  

            We experience it with Issues having more than 50+ attachments. We kludge through by selecting the Manage Attachments option which does display all attachments in JIRA 6.2

            Bruce Boutet added a comment - We experience it with Issues having more than 50+ attachments. We kludge through by selecting the Manage Attachments option which does display all attachments in JIRA 6.2

            This is happening in 6.3.10 also when issues has multiple attachements in rest.

            Martin Poirier added a comment - This is happening in 6.3.10 also when issues has multiple attachements in rest.

            Even we had this issue with 6.4.9 when trying to attach PNG or JPG files.
            Any resolution to get rid of this issue?

            We get it like "cannot create it to to the data/jira/attachments folder".

            raghav.bhatlapenumerthi@innovapptive.com added a comment - Even we had this issue with 6.4.9 when trying to attach PNG or JPG files. Any resolution to get rid of this issue? We get it like "cannot create it to to the data/jira/attachments folder".

            Occuring on 6.3.10 still..

            Darren Pegg added a comment - Occuring on 6.3.10 still..

            Agree with @Kim, experiencing it with v6.3.15#6346-sha1:dbc023d
            For me, this happens when I uploaded multiple files at once, in this case, a .PNG and a .TXT.

            Mahmoud Al-Qudsi added a comment - Agree with @Kim, experiencing it with v6.3.15#6346-sha1:dbc023d For me, this happens when I uploaded multiple files at once, in this case, a .PNG and a .TXT.

            Kim Paulson added a comment - - edited

            Issue occurs in our JIRA Version 6.3 with .png and .jpg file types.
            It occurs sporadically but usually after attaching multiple files.

            Kim Paulson added a comment - - edited Issue occurs in our JIRA Version 6.3 with .png and .jpg file types. It occurs sporadically but usually after attaching multiple files.

            I also had this problem with JIRA 6.3.15

            2015-04-09 12:46:26,990 ajp-bio-8049-exec-2471 ERROR a.ugolini@kion.it 766x861340x18 c3c11d 85.18.201.6 /browse/SDCS-56 [jira.web.component.ModuleWebComponentImpl] An exc
            eption occured while rendering the web panel: com.atlassian.jira.jira-view-issue-plugin:attachmentmodule (null)
            java.lang.ArrayIndexOutOfBoundsException: 13
                    at org.apache.commons.compress.archivers.zip.X7875_NewUnix.parseFromLocalFileData(X7875_NewUnix.java:199)
                    at org.apache.commons.compress.archivers.zip.X7875_NewUnix.parseFromCentralDirectoryData(X7875_NewUnix.java:220)
                    at org.apache.commons.compress.archivers.zip.ExtraFieldUtils.parse(ExtraFieldUtils.java:174)
                    at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setCentralDirectoryExtra(ZipArchiveEntry.java:476)
                    at org.apache.commons.compress.archivers.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:575)
                    at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:492)
                    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:216)
                    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:192)
                    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:153)
                    at com.atlassian.jira.issue.attachment.AttachmentZipKit.isZip(AttachmentZipKit.java:174)
                    at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.shouldExpandAsZip(AttachmentBlockContextProvider.java:205)
                    at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.convertToSimpleAttachments(AttachmentBlockContextProvider.java:164)
                    at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.getContextMap(AttachmentBlockContextProvider.java:120)
                    at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:70)
                    at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:46)
                    at com.atlassian.jira.plugin.webfragment.contextproviders.MultiContextProvider.getContextMap(MultiContextProvider.java:99)
                    at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:144)
                    at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:94)
                    at com.atlassian.jira.web.component.ModuleWebComponentImpl.access$000(ModuleWebComponentImpl.java:31)
                    at com.atlassian.jira.web.component.ModuleWebComponentImpl$1.run(ModuleWebComponentImpl.java:77)
                    at com.atlassian.ozymandias.SafePluginPointAccess.runnable(SafePluginPointAccess.java:201)
                    at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModuleAndLetNoThrowablesEscape(ModuleWebComponentImpl.java:70)
                    at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:59)  <+2> (DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:606)
            

            Marco Brizi added a comment - I also had this problem with JIRA 6.3.15 2015-04-09 12:46:26,990 ajp-bio-8049-exec-2471 ERROR a.ugolini@kion.it 766x861340x18 c3c11d 85.18.201.6 /browse/SDCS-56 [jira.web.component.ModuleWebComponentImpl] An exc eption occured while rendering the web panel: com.atlassian.jira.jira-view-issue-plugin:attachmentmodule (null) java.lang.ArrayIndexOutOfBoundsException: 13 at org.apache.commons.compress.archivers.zip.X7875_NewUnix.parseFromLocalFileData(X7875_NewUnix.java:199) at org.apache.commons.compress.archivers.zip.X7875_NewUnix.parseFromCentralDirectoryData(X7875_NewUnix.java:220) at org.apache.commons.compress.archivers.zip.ExtraFieldUtils.parse(ExtraFieldUtils.java:174) at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setCentralDirectoryExtra(ZipArchiveEntry.java:476) at org.apache.commons.compress.archivers.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:575) at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:492) at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:216) at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:192) at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:153) at com.atlassian.jira.issue.attachment.AttachmentZipKit.isZip(AttachmentZipKit.java:174) at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.shouldExpandAsZip(AttachmentBlockContextProvider.java:205) at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.convertToSimpleAttachments(AttachmentBlockContextProvider.java:164) at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.getContextMap(AttachmentBlockContextProvider.java:120) at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:70) at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:46) at com.atlassian.jira.plugin.webfragment.contextproviders.MultiContextProvider.getContextMap(MultiContextProvider.java:99) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:144) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:94) at com.atlassian.jira.web.component.ModuleWebComponentImpl.access$000(ModuleWebComponentImpl.java:31) at com.atlassian.jira.web.component.ModuleWebComponentImpl$1.run(ModuleWebComponentImpl.java:77) at com.atlassian.ozymandias.SafePluginPointAccess.runnable(SafePluginPointAccess.java:201) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModuleAndLetNoThrowablesEscape(ModuleWebComponentImpl.java:70) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:59) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606)

            I see this issue with ZIP files in JIRA 6.3.9

            Steven F Behnke added a comment - I see this issue with ZIP files in JIRA 6.3.9

            It appears to be the following attachments.

            *.msg, *.log, *.sdf, *.xsd, *.dump, *.UPS

            Kota Sreenivasa Shravana Kumar added a comment - It appears to be the following attachments. *.msg, *.log, *.sdf, *.xsd, *.dump, *.UPS

              pniewiadomski Pawel Niewiadomski (Inactive)
              fe0712986f64 Danny Hendargo
              Affected customers:
              14 This affects my team
              Watchers:
              48 Start watching this issue

                Created:
                Updated:
                Resolved: