Participant sent wrong token

More
5 months 3 days ago #156696 by blocka
blocka created the topic: Participant sent wrong token
I have a participant list of about 15,000 emails. I've generated tokens, and I've confirmed running count(distinct)) on the tokens table that all tokens are indeed distinct.

I started sending email invitations, using this html in the email:
<a href="https://mysurveyurl.com/index.php/582531?token={TOKEN}&amp;lang=en">Click here to begin survey</a>

After sending out several 1000 emails, we have had some participants report back that when then click on the link, they get the notice:

This invitation has already been used.
We are sorry but you are not allowed to enter this survey.

When I check the token in their invitation email, I see that the token is for another participant (a test record we created -- the 2nd row in our token table).

Any ideas why some participants would be receiving the wrong token ID in their invitations?

I'm running version 2.67.1, build 170626.

Please Log in to join the conversation.

More
4 months 4 weeks ago #156828 by blocka
blocka replied the topic: Participant sent wrong token
This has occurred again, on a second, different survey.

After using the Send Invitations screen to send to ~3000 participants, we received reports of people receiving invitations with same token.

To test, we added a test participant to the survey with a token of ABCD1234 and sent an single invitation. In the invitation, we used the URL like:
<a href="https://mysurveyurl.com/index.php/762788?token={TOKEN}&amp;lang=en">Click here to begin survey</a>

and beneath it, we used {SURVEYURL}

The {token} URL had wrong tokenID -- but the {SURVEYURL} had the right token ID. See attached image.

I found bugs.limesurvey.org/view.php?id=9862 was reported in 2015, and sounds similar to issue we are experiencing... but that was fixed long ago... or was it?
Attachments:

Please Log in to join the conversation.

More
4 months 4 weeks ago #156829 by DenisChenu
DenisChenu replied the topic: Participant sent wrong token
If you can reproduce with a simple string, for example
- SURVEYURL : {SURVEYURL}<br>
- TOKEN : {TOKEN}<br>
- TOKEN:TOKEN : {TOKEN:TOKEN}<br>

It's great to report the bug (and maybe TOKEN:TOKEN is OK here ?)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 months 4 weeks ago #156830 by DenisChenu
DenisChenu replied the topic: Participant sent wrong token
PS : else : why you don't use @@SURVEYURL@@ ?
manual.limesurvey.org/Survey_participants#Email_placeholders

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 months 3 weeks ago #156892 by blocka
blocka replied the topic: Participant sent wrong token
Thanks, I'll run some tests and see if I can get useful information to add to a ticket.
I do know that this issue occurred between early June and now -- as I have another survey where we used {TOKEN} in the HTML for the link, and everything sent okay.

Please Log in to join the conversation.

More
4 months 3 weeks ago #156984 by UC3MOE
UC3MOE replied the topic: Participant sent wrong token
I have had the same problem recently. I am using domain alias.

Please Log in to join the conversation.

More
4 months 3 weeks ago #156999 by blocka
blocka replied the topic: Participant sent wrong token
Good to hear another person had this issue (although sorry you had to!). I planned to test various scenarios to recreate this scenario so I can report a bug, but I'm currently on vacation, so will have to wait until August 1st.
The following user(s) said Thank You: UC3MOE

Please Log in to join the conversation.

More
4 months 2 weeks ago #157096 by blocka
blocka replied the topic: Participant sent wrong token
I've had a second survey where this occurred, this time when {token} was used in the body of the email reminder, not when embedded as part of the survey Url.

In both cases, the surveys were multilingual, if that has any bearing on things.

Please Log in to join the conversation.

More
4 months 2 weeks ago #157152 by artemis
artemis replied the topic: Participant sent wrong token
I have the same problem about using {TOKEN} in my email template, please fix that!

Please Log in to join the conversation.

More
4 months 2 weeks ago #157156 by jelo
jelo replied the topic: Participant sent wrong token

artemis wrote: I have the same problem about using {TOKEN} in my email template, please fix that!

You might raise the attention of a developer with submitting a bug ticket.

Please Log in to join the conversation.

More
4 months 2 weeks ago #157229 by DenisChenu
DenisChenu replied the topic: Participant sent wrong token

DenisChenu wrote: If you can reproduce with a simple string, for example
- SURVEYURL : {SURVEYURL}<br>
- TOKEN : {TOKEN}<br>
- TOKEN:TOKEN : {TOKEN:TOKEN}<br>

It's great to report the bug (and maybe TOKEN:TOKEN is OK here ?)

But for sure : using TOKEN:TOKEN work better

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 months 1 week ago - 4 months 3 days ago #157277 by blocka
blocka replied the topic: Participant sent wrong token
So, is the recommendation to use(?):

<a href=" mysurveyurl.example.com/index.php/762788...TOKEN:TOKEN}&lang=en ">Click here to begin survey</a>
Last Edit: 4 months 3 days ago by DenisChenu. Reason: Usage of example.(com|org) please

Please Log in to join the conversation.

More
4 months 3 days ago #157459 by DenisChenu
DenisChenu replied the topic: Participant sent wrong token

DenisChenu wrote: PS : else : why you don't use @@SURVEYURL@@ ?
manual.limesurvey.org/Survey_participants#Email_placeholders

I recommend to use

<a href="@@SURVEYURL@@">Click here to begin survey</a>

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #158955 by zfocuz
zfocuz replied the topic: Participant sent wrong token
I have done some testing and have come to the following conclusion:

{SURVEYURL} = The correct survey URL including token
@@SURVEYURL@@ = Same as above, but always points to the start (this can also be used in html code like <a href="@@SURVEYURL@@">)
{TOKEN} = Points to the recipient's token OR the token you have last used to access this survey
{TOKEN:TOKEN} = Same as above

I believe the {TOKEN} field can indeed contain the wrong token, but only if you have used a token to test the survey.

For example: You have created a test participant with token 1234. You test the survey with this token while being logged in. You send the invitation e-mails to all participants using the {TOKEN} or {TOKEN:TOKEN} field to display the participants token. Now all participants will get an e-mail with the {TOKEN} field being replace with 1234 instead of the expected behavior.

Can someone please confirm this?



I'm running LimeSurvey 2.67.3+170728 on PHP 7.0.
Last Edit: 2 months 2 weeks ago by zfocuz.

Please Log in to join the conversation.

More
2 months 2 weeks ago #158956 by DenisChenu
DenisChenu replied the topic: Participant sent wrong token
When sending email by admin GUI ? I'm 100% sure to have this bug before but already fixed.
Maybe come back again, maybe the best is to make the bug report : www.limesurvey.org/community/bug-tracker

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!