Fails to Attach ZIP File using Mozilla Firefox

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Trying to attach ZIP file using Mozilla Firefox failed, other browsers seems to be able to attach ZIP file properly without any issue.

The following appears in the atlassian-jira.log:

1 2 3 4 5 6 7 8 9 10 11   Caused by: java.lang.IllegalArgumentException: Error parsing media type '"application/x-zip"' at com.sun.jersey.core.impl.provider.header.MediaTypeProvider.fromString(MediaTypeProvider.java:79) at com.sun.jersey.core.impl.provider.header.MediaTypeProvider.fromString(MediaTypeProvider.java:53) at javax.ws.rs.core.MediaType.valueOf(MediaType.java:119) at com.sun.jersey.server.impl.model.HttpHelper.getContentType(HttpHelper.java:89) ... 136 more at com.sun.jersey.core.header.reader.HttpHeaderReader.nextToken(HttpHeaderReader.java:98) at com.sun.jersey.core.impl.provider.header.MediaTypeProvider.valueOf(MediaTypeProvider.java:89) at com.sun.jersey.core.impl.provider.header.MediaTypeProvider.fromString(MediaTypeProvider.java:77) ... 139 more

Cause

Antivirus is blocking ZIP files to be attached.

Resolution

Disable antivirus on the client computer and server that is hosting JIRA.

Updated on April 17, 2025

Still need help?

The Atlassian Community is here for you.