View Issue Details

This bug affects 2 person(s).
 10
IDProjectCategoryView StatusLast Update
20238Bug reportsRemoteControlpublic2025-09-15 18:03
Reporterginosupport Assigned Totibor.pacalat  
PrioritynoneSeveritypartial_block 
Status assignedResolutionopen 
Summary20238: invite_participants does not consider participant-validity
Description

The RemoteControl invite_participants endpoint does not consider the validity dates of participants. As a result, depending on your configured batch size, not all participants that are valid are invited. It might not invite anyone at all, even if you have valid participants.

Steps To Reproduce

Steps to reproduce

  • In the general settings -> email, configure a configure an email batch size of 5
  • Create any survey and start it, making sure it uses participants
  • Add 5 participants with an email address, with a validity that starts in the future
  • Add 5 more participants with an email address that are valid now
  • Use RemoteControl API invite_participants to send invitations, without specifying specific participants to invite (so aTokenIds = null).

Expected result

There are 5 invitations sent, for the 5 participants that are valid now. The first 5 participants should be completely disregarded.

The same problem happens if the first 5 participants do not start in the future, but end in the past.

It does work as expected when a valid participant does not have an email address at all. In that case, the participants that cannot be invited are ignored.

Actual result

No invitations are sent. I feel like it's querying the first 5 of all the participants that have not received an invitation yet, and going through those, and then deciding not to send anything because none of them are valid yet. Participants that are not valid yet/anymore should be disregarded for this process completely, not queried first and then filtered out.

It should apply the same logic as it does for participants without an emailaddress for participants that are not valid yet/not valid anymore.

The effect of the current behavior is that large surveys with many participants that become valid in the future, may not send any invitations at all, even if there are participants that can be invited.

TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build) 6.15.5+250724
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgreSQL
Server OS (if known)
Webserver software & version (if known)
PHP Version8.X

Users monitoring this issue

There are no users monitoring this issue.

Activities

tibor.pacalat

tibor.pacalat

2025-09-15 17:06

administrator   ~83402

I can not reproduce this on latest version 6.15.11+250909 locally.

ginosupport

ginosupport

2025-09-15 18:03

reporter   ~83403

I just updated to 6.15.11+250909 and it's still wrong in the same way as before.

I have attached 3 files, which i took in order:

  • batchsize-config: my configured batch size (via settings -> general -> email)
  • invite_participants-nothing-sent: an example with 5 participants that are not yet valid and 1 that is valid. I executed invite_participants on this survey without supplying specific participants to invite. Nothing was sent at all, as you can see in this screenshot.
  • invite_participants-1-sent: i updated 1 participant somewhere in the middle (so now there are 2 valid participants). I then repeated the invite_participants call. Only the one in the middle was invited, as you can see in this screenshot.

That last participant is just not invited, as long as there are at least [batchsize] participants before it that have not received an invitation yet.

invite_participants-1-sent.png (89,172 bytes)   
invite_participants-1-sent.png (89,172 bytes)   
batchsize-config.png (34,457 bytes)   
batchsize-config.png (34,457 bytes)   

Issue History

Date Modified Username Field Change
2025-08-22 14:54 ginosupport New Issue
2025-08-29 14:00 guest Bug heat 0 => 6
2025-09-15 17:06 tibor.pacalat Note Added: 83402
2025-09-15 17:06 tibor.pacalat Bug heat 6 => 8
2025-09-15 17:06 tibor.pacalat Assigned To => tibor.pacalat
2025-09-15 17:06 tibor.pacalat Status new => feedback
2025-09-15 18:03 ginosupport Note Added: 83403
2025-09-15 18:03 ginosupport File Added: invite_participants-1-sent.png
2025-09-15 18:03 ginosupport File Added: invite_participants-nothing-sent.png
2025-09-15 18:03 ginosupport File Added: batchsize-config.png
2025-09-15 18:03 ginosupport Bug heat 8 => 10
2025-09-15 18:03 ginosupport Status feedback => assigned