View Issue Details

This bug affects 1 person(s).
 260
IDProjectCategoryView StatusLast Update
08231Bug reportsSecuritypublic2013-11-07 15:03
Reportergilsbert Assigned Toc_schmitz  
PriorityurgentSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.05+ 
Summary08231: Anonymous survery + "no" on "Allow multiple responses or update responses with one token" -> error: it is allowing two answers
Description

I work in a public university in Brazil and we use Limesurvery to collect anonymous votes for elections.
Each person should vote only one time.
The option "Allow multiple responses or update responses with one token" is set with "no".
But each token is allowing two answers for each person.

Steps To Reproduce
  1. Create a survey, a group question, a question with radio buttons.
  2. Set the survery to anonymous, initiate the tokens.
  3. Manually add an user.
  4. Generate the token.
  5. Send the invitation email.
  6. Use the link sent by email and register the answer.
    The system is saving as a complete answer but it is not properly updating the user/token information and it is allowing a second answer.
  7. Click on the link again.
    Now the system will save the answer and correctly update the user/token information.
Additional Information

Maybe I'm using the system incorrectly or it is related with my server. I'm happy to send more information but I dont know what exactly to report now.

TagsNo tags attached.
Attached Files
Bug heat260
Complete LimeSurvey version number (& build)Versão 2.00+ Build 130929
I will donate to the project if issue is resolvedNo
BrowserChrome (only tested in chrome)
Database type & versionPostgresql 9.1.9
Server OS (if known)OpenSuse 12.1 / Kernel 3.1.10-1.29
Webserver software & version (if known)Apache 2
PHP Version5.3.8

Users monitoring this issue

gilsbert

Activities

DenisChenu

DenisChenu

2013-10-04 17:49

developer   ~26517

I can not reproduce in last GIT version

http://limesurvey.sondages.pro/survey/index/sid/463935/token/6qbx73t3djjm4hx/lang/pt-BR/newtest/Y

http://limesurvey.sondages.pro/survey/index/sid/463935/token/ujkiascts63sqss/lang/pt-BR/newtest/Y (this one was not done now).

The token have UseLeft at 1 ?

gilsbert

gilsbert

2013-10-04 21:11

reporter   ~26525

Hello Denis.

I tested using your link and there was no bug.
Am I using the same version as you?

By the way, answering your question: yes. The token was left with "UseLeft = 1" and "Completed = N" but the answer was saved.

I tested again on my server.

If I add the user, generate the token, send the invitation email and click on the link sent by email the bug is reproduced (you should not close the browser where the user addition + token generation + invitation email were made and the link must open a new tab on this browser instance).

When I use a different browser the bug doesn't happen.
This may explain why I could not see the bug in your link!

Maybe it is related with session/cookie?

DenisChenu

DenisChenu

2013-10-05 09:08

developer   ~26527

OK,

Test again with:

  • Create a new user
  • Generate token
  • Send email
  • Click on link on email (don't close browser)
  • Go to then end of survey, and validate (until end page)
  • Look again to "token table'
  • Retry to click on same link

Denis

DenisChenu

DenisChenu

2013-10-08 12:07

developer   ~26615

Mazi : i can't reproduce.

Can you try to reproduce when you have some time ?

c_schmitz

c_schmitz

2013-10-09 10:44

administrator   ~26645

I am unable to reproduce this, too. A new build will be released soon, please try then again. If it is still not resolved feel free to reopen this issue. Thank you.

gilsbert

gilsbert

2013-10-11 15:30

reporter   ~26730

Hi.
I tested using version 131009 and unfortunately the bug is still happening.
For the test please remember you must create the survery, add the participant, generate the token, send the invitation email and answer the survey using the very same browser instance otherwise the bug will not happen.
I made a video to help you see this issue.
I dont know how to add a new file so I'm sending the file using "sendspace".
The file is an avi video but to make it smaller I used 7zip to compact.

http://www.sendspace.com/file/9ch5s1

Regards,
Gilsberty

gilsbert

gilsbert

2013-10-11 15:39

reporter   ~26731

Ops, I found the option to send a new file!

Mazi

Mazi

2013-10-15 15:39

updater   ~26805

"and answer the survey using the very same browser instance otherwise the bug will not happen."

-> That sounds like a cache/session issue. Maybe the session isn't destroyed as usually when using that survey mode?

DenisChenu

DenisChenu

2013-10-15 15:57

developer   ~26806

Mazi : i try in same browser, with or without "print answer' .

I can't reproduce .... :)

c_schmitz

c_schmitz

2013-10-21 15:50

administrator   ~26874

Thank you very much. That detailed instruction video helped alot and I was able to locate the issue. It only happens under rare conditions though (directly after you created a token table). Just changing the survey once or re-login would 'fix' the issue.

c_schmitz

c_schmitz

2013-10-21 15:51

administrator   ~26875

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

c_schmitz

c_schmitz

2013-10-21 15:52

administrator   ~26876

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

gilsbert

gilsbert

2013-10-21 16:13

reporter   ~26881

Thank you very much!

DenisChenu

DenisChenu

2013-10-21 16:16

developer   ~26882

Ah, yes ... again the dirtyflag.

It's only for the admin user gilsbert :) not for real user

c_schmitz

c_schmitz

2013-10-22 15:33

administrator   ~26907

Version 2.00+ Build 131022 released.

gilsbert

gilsbert

2013-10-24 14:26

reporter   ~26982

Hi.
I tested Versão 2.00+ Build 131022 and the issue is still happening.
Should I restart apache server or clean a specific cache?
Regards,
Gilsberty

gilsbert

gilsbert

2013-10-24 14:43

reporter   ~26983

Hi.

More details: the new build partially fixes the issue.

If you test using my reported scenario the issue is gone.

But the issue is happening in the following scenario:
1 - create survey / group question / question and start survey with anonymous + the token table
2 - close the browser (all the instances)
3 - relog and now: create user, generate token, send invitation email, open your email and click the link to answer the survey (it will let you answer twice).

Without the "new" step (2) the issue is fixed.

Regards,
Gilsberty

c_schmitz

c_schmitz

2013-10-24 22:23

administrator   ~26986

Please create a new movie and attach it, thank you.

gilsbert

gilsbert

2013-10-25 12:50

reporter   ~26989

Hi the second video is attached.

I'm sorry but I misspelled the word "again" in the video.

Regards,
Gilsberty

c_schmitz

c_schmitz

2013-10-30 09:37

administrator   ~27024

Can you attach the last movie again, please?
I accidentally deleted it.

gilsbert

gilsbert

2013-10-30 12:17

reporter   ~27028

Okie dokie!
:-)

c_schmitz

c_schmitz

2013-10-31 14:41

administrator   ~27059

This is fixed in 2.05. This won't be fixed anymore in 2.0 because the changes might impact stability. It is alss a minor issue and happens only in this scenario and if you are an administrator and the first time you are taking the survey.

gilsbert

gilsbert

2013-10-31 14:52

reporter   ~27060

Hi.
Thank you very much for all the effort.
I will migrate to 2.05+ as soon there is a stable version.
Regards,
Gilsberty

Related Changesets

LimeSurvey: master 468bbf4f

2013-10-21 13:51:21

c_schmitz

Details Diff
Fixed issue 08231: Anonymous survery with tokens allow multiple responses directly after token table creation Affected Issues
08231
mod - application/controllers/admin/tokens.php Diff File
mod - application/helpers/admin/activate_helper.php Diff File

LimeSurvey: 2.05 e013e49b

2013-10-21 13:52:40

c_schmitz

Details Diff
Fixed issue 08231: Anonymous survery with tokens allow multiple responses directly after token table creation Affected Issues
08231
mod - application/controllers/admin/tokens.php Diff File
mod - application/helpers/admin/activate_helper.php Diff File
mod - application/views/admin/participants/displayParticipants_view.php Diff File

Issue History

Date Modified Username Field Change
2013-10-03 21:26 gilsbert New Issue
2013-10-03 21:26 gilsbert File Added: limesurvey_survey_463935.lss
2013-10-04 17:42 DenisChenu Assigned To => DenisChenu
2013-10-04 17:42 DenisChenu Status new => assigned
2013-10-04 17:49 DenisChenu Note Added: 26517
2013-10-04 17:49 DenisChenu Status assigned => feedback
2013-10-04 21:11 gilsbert Note Added: 26525
2013-10-04 21:11 gilsbert Status feedback => assigned
2013-10-05 09:08 DenisChenu Note Added: 26527
2013-10-08 12:07 DenisChenu Assigned To DenisChenu => Mazi
2013-10-08 12:07 DenisChenu Note Added: 26615
2013-10-09 10:44 c_schmitz Note Added: 26645
2013-10-09 10:44 c_schmitz Status assigned => resolved
2013-10-09 10:44 c_schmitz Resolution open => fixed
2013-10-09 10:44 c_schmitz Assigned To Mazi => c_schmitz
2013-10-09 10:45 c_schmitz Resolution fixed => unable to reproduce
2013-10-11 11:08 c_schmitz Status resolved => closed
2013-10-11 15:26 gilsbert Issue Monitored: gilsbert
2013-10-11 15:30 gilsbert Note Added: 26730
2013-10-11 15:30 gilsbert Status closed => feedback
2013-10-11 15:30 gilsbert Resolution unable to reproduce => reopened
2013-10-11 15:38 gilsbert File Added: Limesurvery-2answers-1token.7z
2013-10-11 15:39 gilsbert Note Added: 26731
2013-10-11 15:39 gilsbert Status feedback => assigned
2013-10-15 15:39 Mazi Note Added: 26805
2013-10-15 15:57 DenisChenu Note Added: 26806
2013-10-21 15:50 c_schmitz Note Added: 26874
2013-10-21 15:50 c_schmitz Status assigned => resolved
2013-10-21 15:50 c_schmitz Fixed in Version => 2.00+
2013-10-21 15:50 c_schmitz Resolution reopened => fixed
2013-10-21 15:51 c_schmitz Changeset attached => LimeSurvey master 468bbf4f
2013-10-21 15:51 c_schmitz Note Added: 26875
2013-10-21 15:52 c_schmitz Changeset attached => LimeSurvey 2.05 e013e49b
2013-10-21 15:52 c_schmitz Note Added: 26876
2013-10-21 16:13 gilsbert Note Added: 26881
2013-10-21 16:16 DenisChenu Note Added: 26882
2013-10-22 15:33 c_schmitz Note Added: 26907
2013-10-22 15:33 c_schmitz Status resolved => closed
2013-10-24 14:26 gilsbert Note Added: 26982
2013-10-24 14:26 gilsbert Status closed => feedback
2013-10-24 14:26 gilsbert Resolution fixed => reopened
2013-10-24 14:43 gilsbert Note Added: 26983
2013-10-24 14:43 gilsbert Status feedback => assigned
2013-10-24 22:23 c_schmitz Note Added: 26986
2013-10-24 22:23 c_schmitz Status assigned => feedback
2013-10-25 12:48 gilsbert File Added: LimeSurvey - issue 08231 - 2nd video.7z
2013-10-25 12:50 gilsbert Note Added: 26989
2013-10-25 12:50 gilsbert Status feedback => assigned
2013-10-30 09:37 c_schmitz Note Added: 27024
2013-10-30 09:56 c_schmitz Status assigned => feedback
2013-10-30 12:16 gilsbert File Added: LimeSurvey - issue 08231 - 2nd video.7z
2013-10-30 12:17 gilsbert Note Added: 27028
2013-10-30 12:17 gilsbert Status feedback => assigned
2013-10-31 12:14 c_schmitz File Deleted: Limesurvery-2answers-1token.7z
2013-10-31 14:41 c_schmitz Note Added: 27059
2013-10-31 14:41 c_schmitz Status assigned => resolved
2013-10-31 14:41 c_schmitz Fixed in Version 2.00+ => 2.05+
2013-10-31 14:41 c_schmitz Resolution reopened => fixed
2013-10-31 14:52 gilsbert Note Added: 27060
2013-11-07 15:03 c_schmitz Status resolved => closed
2021-08-09 21:27 guest Bug heat 258 => 260