Problem/Motivation

I want to limit the submissions to one by user and by entity source.

I added a webform field to my node.

In the parameters of the webform, I put 1 for "Per user submission limit per source entity".

When I save my choice, I have an error: "A forbidden choice was detected. Please contact the administrator of the site." (translated).

Then, in my node, no limitation is taken, i can submit forms as often as I wish.

Comments

Paulset created an issue. See original summary.

Paulset’s picture

Issue summary: View changes
Paulset’s picture

Issue summary: View changes
jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new520.54 KB

I am able to update the submission limits without any problems. I am assuming that user submission limits are working because there are automated tests. Please fully document the steps required to reproduce this issue.

Paulset’s picture

OK, I understood.

It works with the contact demo webform, but not with "Demo: Application Evaluation" (I tried with this webform)

If it works in a general way, no problem thus...

Paulset’s picture

StatusFileSize
new347.16 KB

I always have the problem. And I even found another bug.

I created a new webform (no "demo: application evaluation"), with as limit submission: 1 for "Per user submission limit per source entity".

I created two nodes : node 1, node 2.

I added to these nodes both a field " reference > webform " which references the webform which I created.

First bug : I disconnected, and as an anonymous, I can submit so many forms as I wish.

Second bug: when I submit a form in node 2, once the submitted form, in the breadcrumb i have "Home >> Node 1" (while I have just submitted a form for the node 2)

I was able to notice another problem which explains can be these bugs, when I click in a form: parameters > submission, a brief moment errors displaying then disappear, I managed to make a screenshot:

error sub

Paulset’s picture

More information:

1/ the limitation works for the registred users, but not for the anonymous

2/ For the anonymous, the limitation of submission does not work on "source entity" or in the webform itself

jrockowitz’s picture

Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Needs work

There needs to be a webform setting to track anonymous users via $_SESSION.

#2907459: Anonymous form submissions create a session cookie which may cause performance and scalability issues. caused this regression.

  • jrockowitz committed 5b91d96 on 2908808-user-limit
    Issue #2908808 by Paulset, jrockowitz: Impossible to limit the number of...

  • jrockowitz committed f987ff5 on 2908808-user-limit-v2
    Issue #2908808 by Paulset, jrockowitz: Impossible to limit the number of...
jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new12.73 KB

  • jrockowitz committed 398c328 on 2908808-user-limit-v2
    Issue #2908808 by Paulset, jrockowitz: Impossible to limit the number of...

Status: Needs review » Needs work

The last submitted patch, 11: impossible_to_limit_the-2908808-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed 2b1f332 on 2908808-user-limit-v2
    Issue #2908808 by Paulset, jrockowitz: Impossible to limit the number of...
jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new13.5 KB

  • jrockowitz committed e1d8c54 on 8.x-5.x
    Issue #2908808 by jrockowitz, Paulset: Impossible to limit the number of...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.