Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3765 | major | always | 11-16-09 15:00 | 06-21-12 00:57 | |
|
|||||
Reporter: | dobes_vandermeer | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0003765: WordPress plugin installation corrupts or truncates larger files | ||||
Description: |
This is in the version of quercus included with resin 4.0.1. In Quercus some plugins cannot be installed because some files are corrupted when they are extracted from the plugin ZIP file. The issue seems to be that the PclZip class they are using to extract files does not work in Quercus. For example if I install WordPress 2.8.6 and use the "Add New Plugin" feature to search for, install, and activate the "Flutter" plugin, several of the files are truncated. This seems related to two things: 1. fread() isn't returning the full length of data requested 2. Concatenating the results of several calls to fread() together into a string and passing that to gzinflate results in corrupt/invalid output. Part 1 I reported elsewhere and I subsequently fixed the code in WordPress' PclZip library to call fread() until it got all the data it asked for. Unfortunately, the resulting string doesn't decompress correctly - everything after the first read()'s result is garbled. I suspect this may be related to the fact that we're working with binary data, and so this may reveal some incompatibility between the way Quercus is handling binary data in strings and the way PHP handles them. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|