MantisBT - v4.0 Release (Planning)
View Issue Details
0000663v4.0 Release (Planning)Core Infrastructurepublic2010-12-22 10:362016-12-29 10:16
Reportereureka 
Assigned Tocaseydk 
PrioritynormalSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target Version4.0Fixed in Version 
Summary0000663: module loader accepts only "application/zip"
Descriptionfor "application/x-zip" and "application/x-gzip", i suggest :

replace (line 317) :

        if ($this->filetype != 'application/zip') {

by :

            if (! preg_match("#^application/(x-g?)?zip$#", $this->filetype)) {
TagsNo tags attached.
Attached Files

Notes
(0001490)
caseydk   
2010-12-22 17:43   
Yes, that's because this was the proof of concept implementation. If everyone seems relatively happy with it, I'll expand it to include gz for a later release (2.3? 3.0?) and eventually add Phar support once PHP5.3 has better penetration.
(0001493)
eureka   
2010-12-22 23:35   
When i download a module from web2project-mod of sourceforge (Download GNU tarball), its filetype is application/x-gzip. I must first unzip it on my computer to install it.

When i upload a module from my computer , its filetype is application/x-zip
(0002230)
caseydk   
2011-10-01 22:43   
I've been working on this one.. gz isn't supported in core PHP. The only options are either dropping to shell_exec or to use a slightly odd PEAR Archive module.

This isn't likely to make it into v3.0
(0003629)
caseydk   
2014-08-25 22:30   
Since we've moved everything to Github, the default download format is a zip file so the "zip only" limitation is no longer a problem.
(0003838)
caseydk   
2016-12-29 10:16   

I'm changing this issue to acknowledged.

While it's resolved in the v4.0 development branch. That is going to be reviewed commit by commit and merged into a new development branch over the next couple months.

Issue History
2010-12-22 10:36eurekaNew Issue
2010-12-22 17:43caseydkNote Added: 0001490
2010-12-22 23:35eurekaNote Added: 0001493
2011-01-08 09:40caseydkSeverityminor => feature
2011-02-24 00:55caseydkProjectPending Requests => v2.4 Release (Closed)
2011-07-18 12:23caseydkProjectv2.4 Release (Closed) => v3.0 Release
2011-10-01 22:43caseydkNote Added: 0002230
2011-10-18 23:00caseydkProjectv3.0 Release => Pending Requests
2014-01-01 16:59caseydkProjectPending Requests => v4.0 Release (Planning)
2014-01-21 17:57caseydkTarget Version => 4.0
2014-03-30 22:13caseydkCategoryGeneral => Core Infrastructure
2014-08-25 22:30caseydkNote Added: 0003629
2014-08-25 22:30caseydkStatusnew => resolved
2014-08-25 22:30caseydkResolutionopen => won't fix
2014-08-25 22:30caseydkAssigned To => caseydk
2016-12-29 10:16caseydkStatusresolved => acknowledged
2016-12-29 10:16caseydkNote Added: 0003838