View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05909Bug reportsSurvey takingpublic2012-03-23 13:03
ReporterTmac Assigned Toc_schmitz  
PriorityhighSeveritycrash 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.92+ 
Summary05909: Re-uploading files after deletions
Description

In a survey question a user has to upload a minimum of 3 files. After the files (pictures) are uploaded, the user deletes one or more and uploads new files, the 'return to survey' and dialog close buttons do not work.

Steps To Reproduce

Set a survey to 'persistent'. Make a question with file uploads and set minimum files and maximum files to 3 in advanced. Run the survey. Upload 3 files.
Delete one file. Upload another file. Survey says 'Max files, you can return to survey' (expected).
But the 'Return to survey' and dialog close does not work. User gets blocked and cannot continue.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)120302
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL
Server OS (if known)Linux
Webserver software & version (if known)Windows 7
PHP VersionPHP Version 5.3.3-7+squeeze8

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-03-14 06:22

reporter   ~17913

Is this also a problem with 1.92?

Tmac

Tmac

2012-03-14 16:24

reporter   ~17917

I will try 1.92 but the problem appears to be with the .js files in the script directory and as far as I can see those files have not changed in 1.92.
Specifically modaldialog.js and uploader.js

c_schmitz

c_schmitz

2012-03-16 18:10

administrator   ~17949

Tmac: I just checkeded this on 1.92+ and it works fine. Can you please check it too and tell us if it works?

Tmac

Tmac

2012-03-17 13:19

reporter   ~17970

I will check that as soon as the comfort update is available. Will get back to you.
(Its just a time thing to do the manual upgrade, will wait a few days)

Tmac

Tmac

2012-03-17 20:05

reporter   ~17983

OK I have installed 1.92+ and have tried to populate a dummy survey with answers and images. Same thing, I can get the images uploaded but if I try to replace one of them by deleting and uploading another, it fails on the next upload and gets stuck.

Here is a link to see what I mean (expires next 23rd March)
http://tourismmcgregor.co.za/survey/index.php?lang=en&sid=29792&token=newtoken

The above applies to new images loaded into a new survey.

I now have new problem though maybe unrelated. The existing database/survey contains references to images in json format (as expected) but 1.92+ seems to have a problem reading the old json text from the database fields.
For eg. If I use mysql to examine the json field (image title, comment etc) it looks ok. If I then attempt to update a response with the survey form and get to the image loading question, it does not show the old image, instead just a garbled json code with 'format errors' and then without saving/submitting, if I look as the database field, the old json text is gone and replaced with <span=

c_schmitz

c_schmitz

2012-03-20 02:31

administrator   ~18000

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

c_schmitz

c_schmitz

2012-03-23 13:03

administrator   ~18063

1.92+ update released.

Related Changesets

LimeSurvey: master 273baf9a

2012-03-19 18:31:06

c_schmitz

Details Diff
Fixed issue 05909: Re-uploading files after deletions and other problems with File Upload question type and Expression Manager Affected Issues
05909
mod - admin/translate_google_api.php Diff File
mod - delete.php Diff File
mod - qanda.php Diff File
mod - scripts/modaldialog.js Diff File
mod - scripts/uploader.js Diff File

Issue History

Date Modified Username Field Change
2012-03-14 05:56 Tmac New Issue
2012-03-14 06:22 TMSWhite Note Added: 17913
2012-03-14 16:24 Tmac Note Added: 17917
2012-03-15 01:50 c_schmitz Assigned To => c_schmitz
2012-03-15 01:50 c_schmitz Status new => assigned
2012-03-16 18:10 c_schmitz Note Added: 17949
2012-03-16 18:10 c_schmitz Status assigned => feedback
2012-03-17 13:19 Tmac Note Added: 17970
2012-03-17 13:19 Tmac Status feedback => assigned
2012-03-17 13:54 c_schmitz Status assigned => feedback
2012-03-17 20:05 Tmac Note Added: 17983
2012-03-17 20:05 Tmac Status feedback => assigned
2012-03-20 02:31 c_schmitz Changeset attached => LimeSurvey master 273baf9a
2012-03-20 02:31 c_schmitz Note Added: 18000
2012-03-20 02:31 c_schmitz Resolution open => fixed
2012-03-20 02:31 c_schmitz Status assigned => resolved
2012-03-20 02:31 c_schmitz Fixed in Version => 1.92+
2012-03-23 13:03 c_schmitz Note Added: 18063
2012-03-23 13:03 c_schmitz Status resolved => closed