Deleting submissions using webform_submission_bulk_form fails

Created on 6 March 2024, over 1 year ago

Problem/Motivation

On the submissions page (/admin/structure/webform/manage/webform_id/results/submissions), deleting submissions fails with the error

The submitted value <em class="placeholder">280</em> in the <em class="placeholder">items</em> element is not allowed.

Steps to reproduce

On my website, this happens every time I check the checkbox of the table, pick โ€œDelete submissionโ€ from the select and press the โ€œApply to selected itemsโ€ button.

Proposed resolution

Figure out what causes this.

Remaining tasks

Write a patch or document the incompatiblity.

User interface changes

None.

API changes

None.

Data model changes

None.

Here are the installed modules according to drush cget core.extension

  • announcements_feed
  • automated_cron
  • big_pipe
  • block
  • block_content
  • breakpoint
  • ckeditor5
  • config
  • contextual
  • datetime
  • dblog
  • dynamic_page_cache
  • editor
  • field
  • field_ui
  • file
  • filter
  • help
  • history
  • image
  • language
  • link
  • locale
  • mail_login
  • menu_link_content
  • menu_ui
  • mysql
  • nagios
  • node
  • options
  • page_cache
  • path
  • path_alias
  • search
  • smtp
  • system
  • taxonomy
  • text
  • token
  • token_filter
  • twig_field_value
  • twig_tweak
  • update
  • user
  • views_slideshow
  • views_slideshow_cycle
  • views_ui
  • webform
  • webform_counter
  • webform_crowdacting_social_progress_bar
  • webform_ui
  • webform_views
  • pathauto
  • views

๐Ÿ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany gogowitsch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @gogowitsch
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany gogowitsch

    Here is a stack trace from the debugger:

    Drupal\Core\Form\FormErrorHandler->displayErrorMessages(Array, Object) (Line: 23)
    Drupal\Core\Form\FormErrorHandler->handleFormErrors(Array, Object) (Line: 199)
    Drupal\Core\Form\FormValidator->finalizeValidation(Array, Object, 'webform_submission_bulk_form') (Line: 119)
    Drupal\Core\Form\FormValidator->validateForm('webform_submission_bulk_form', Array, Object) (Line: 593)
    Drupal\Core\Form\FormBuilder->processForm('webform_submission_bulk_form', Array, Object) (Line: 325)
    Drupal\Core\Form\FormBuilder->buildForm('\Drupal\webform\Form\WebformSubmissionBulkForm', Object) (Line: 224)
    Drupal\Core\Form\FormBuilder->getForm('\Drupal\webform\Form\WebformSubmissionBulkForm', Array, 1) (Line: 577)
    Drupal\webform\WebformSubmissionListBuilder->buildEntityList() (Line: 462)
    Drupal\webform\WebformSubmissionListBuilder->render() (Line: 23)
    Drupal\Core\Entity\Controller\EntityListController->listing('webform_submission')
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
  • Status changed to Needs review over 1 year ago
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.4 + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    536 pass
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany gogowitsch

    I added a patch.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jrockowitz Brooklyn, NY
  • Status changed to Postponed: needs info 21 days ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jrockowitz Brooklyn, NY

    I can't replicate this issue

    โ†’

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany gogowitsch

    Thanks, @jrockowitz โ†’ , for trying to reproduce this. It turns out that sorting is important to produce this problem. I have updated the steps above.

    Here is a recording โ†’ .

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jrockowitz Brooklyn, NY
  • Pipeline finished with Failed
    6 days ago
    Total: 729s
    #596498
  • Pipeline finished with Failed
    6 days ago
    #596568
  • Pipeline finished with Failed
    5 days ago
    Total: 495s
    #596967
  • Pipeline finished with Failed
    5 days ago
    Total: 714s
    #596989
  • Pipeline finished with Success
    5 days ago
    #597120
  • Pipeline finished with Skipped
    5 days ago
    #597485
  • Pipeline finished with Skipped
    5 days ago
    #597486
  • Pipeline finished with Failed
    5 days ago
    Total: 1271s
    #597484
Production build 0.71.5 2024