Closed (fixed)
Project:
Webform REST
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2026 at 05:23 UTC
Updated:
12 Aug 2026 at 02:50 UTC
Jump to comment: Most recent
Unlike WebformSubmissionResource, which explicitly checks that the loaded submission actually belongs to the given $webform_id:
$submission_webform_id = $webform_submission->get('webform_id')->getString();
if ($submission_webform_id == $webform_id) {
// ... proceed
}WebformCompleteSubmissionResource::get never does this.
Add the check, update tests
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
acbramley commented