View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
11868Bug reportsImport/Exportpublic2017-06-15 15:56
Reporterjsmith Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.55.x 
Fixed in Version2.65.x 
Summary11868: Error al descargar datos adjuntos desde el sistema, LimeSurvey Versión 2.55.1+161026
Description

Buen día, al crear cualquier encuesta e incluir preguntas para datos adjuntos el sistema funciona correctamente, carga los archivos y los almacena en el hosting. El problema radica cuando se van a descargar los archivos, ingresando por ver respuestas se ven los archivos cargados (.jpg, .pdf, .png) y el link de acceso, al seleccionarlo el archivo descarga correctamente, pero al abrirlo muestra error, como si el archivo se corrompiera o estuviera defectuoso. Lo mismo pasa cuando se descarga el archivo en zip, con la opción que da el limesurvey, ya sea el archivo individual, seleccionando varias respuestas o seleccionándolas todas, los archivos que descarga quedan corruptos.

La única forma de tener acceso a los archivos, es descargarlos directamente desde el ftp del hosting, todos bajan con el nombre que les da el sistema y sin extensión, por lo que tok comenzar a validar uno a uno cual es su extensión y a que registro pertenece (prueba y error .pdf, .jpg, .png y por el tamaño del archivo comparándolo con el archivo que registra el limesurvey para cada respuesta.

Steps To Reproduce

Crear un formulario
incluir una o varias preguntas con datos adjuntos
intentar descargar los archivos subidos

Additional Information

Este error se presenta en la última versión del sistema, y desde hace un par de actualizaciones

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)2.55.1+161026
I will donate to the project if issue is resolvedNo
BrowserChrome, Mozilla
Database type & versionMySQL 5.5.44
Server OS (if known)Linux RHEL 2.6.32-431.1.2.el6.x86_64 x86_64
Webserver software & version (if known)ajenti
PHP VersionPHP Version 5.4.42

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2016-11-07 10:16

administrator   ~41741

Please write in English.

ollehar

ollehar

2016-11-07 10:22

administrator   ~41742

OK, so you can't download the files that were uploaded? I cannot reproduce that locally. It might be a server setting of some kind. Please supply more information.

aesteban

aesteban

2016-11-07 15:45

developer   ~41753

Unable to reproduce for me too

LouisGac

LouisGac

2016-11-14 15:55

developer   ~41896

that's a known problem of pclzip component, first question of their FAQ:
http://www.phpconcept.net/pclzip/faq

"Q1 : While creating an archive with PclZip, the script terminates with an empty created zip archive, why ?

The behavior was encounter while the zlib extension is not enabled with the PHP installation. PclZip uses the compression functions from the zlib."

We should check that zlib is available before zipping anything.

c_schmitz

c_schmitz

2017-06-13 11:58

administrator   ~43888

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=22957

Related Changesets

LimeSurvey: master 7f5296db

2017-06-13 11:58:20

c_schmitz

Details Diff
Fixed issue 11868: Zlib library missing
Dev Zlib library is now an installation requirement
Affected Issues
11868
mod - application/controllers/InstallerController.php Diff File
mod - application/views/installer/precheck_view.php Diff File

Issue History

Date Modified Username Field Change
2016-11-04 17:21 jsmith New Issue
2016-11-07 10:16 ollehar Assigned To => ollehar
2016-11-07 10:16 ollehar Status new => feedback
2016-11-07 10:16 ollehar Note Added: 41741
2016-11-07 10:22 ollehar Note Added: 41742
2016-11-07 15:45 aesteban Note Added: 41753
2016-11-14 15:55 LouisGac Note Added: 41896
2016-11-14 15:55 LouisGac Assigned To ollehar => LouisGac
2017-06-13 11:58 c_schmitz Changeset attached => LimeSurvey master 7f5296db
2017-06-13 11:58 c_schmitz Note Added: 43888
2017-06-13 11:58 c_schmitz Assigned To LouisGac => c_schmitz
2017-06-13 11:58 c_schmitz Resolution open => fixed
2017-06-13 11:58 c_schmitz Status feedback => resolved
2017-06-13 11:58 c_schmitz Fixed in Version => 2.65.x
2017-06-13 11:59 c_schmitz Product Version => 2.55.x
2017-06-15 15:56 c_schmitz Status resolved => closed