Incompatibility with antibot module

Created on 22 September 2023, over 1 year ago
Updated 3 January 2024, 12 months ago

Hello all,

Problem/Motivation

I have a webform on my Drupal site and I'm protecting it by antibot module. After activating boost module, I'm getting the error message below, when I try to submit a form as an anoymous user:

Submission failed

You have reached this page because you submitted a form that required JavaScript to be enabled on your browser. This protection is in place to attempt to prevent automated submissions made on forms. Please return to the page that you came from and enable JavaScript on your browser before attempting to submit the form again.

Also, I'm receiving the errror message below, on the recent log messages:

Retrieve route public://boost/en/sites/default/files/js/js_K7AXaE0-AEgftI2OvWaZZRrzIqCvEU5Ghxzn-s_EvtM.js?scope=footer&delta=2&language=tr&theme=revolt&include=eJxtjltywzAIRTfkWEvSIJmqxAQcQJl693XiODPu9AfuPTx99cBbKuA4VDVM13tHW3fdZULzp9x9gToXlVPn-KV2O4FO46JOQSo7n6wvwONEvjBUPMHXtOFDOVJjLcAXj5VJ2kGFKl4cGWsc6IEyqQ1NtTHmgJbaFv76Ea7wMxSMQMuulYCzf4Ntu3PpESqejlsgQUUjvfP-1r1TnbfynD4qk1D8V_gFfm1_yA.html can not be done.

Steps to reproduce

  • Install Drupal
  • Install webform and antibot
  • Create a form and activate antibot for that
  • Install boost and activate

What could be done?

Best,
Orkut

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇹🇷Turkey orkut murat yılmaz Istanbul

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

Comments & Activities

  • Issue created by @orkut murat yılmaz
  • 🇮🇳India shiv_yadav

    Hello Orkut, I followed given reproduced step. after that submit form but I haven't got any error.

    my configuation- drupal-9.5.10
    Php -8.1.2

  • Status changed to Needs review about 1 year ago
  • Status changed to Active about 1 year ago
  • 🇹🇷Turkey orkut murat yılmaz Istanbul

    My Drupal version is 10.1.3 and I've tried it both with php8.1 and php8.2.

  • 🇮🇳India shiv_yadav

    Hello Orkut Murat Yılmaz, I have followed given reproduce step in drupal 10 but not got any error.
    Attached configuration screenshot as well.

  • 🇹🇷Turkey orkut murat yılmaz Istanbul

    Sorry @shiv_yadav, but I haven't mentioned that I've applied the patch on this issue 🐛 PHP Fatal Error after drush cex RTBC too. Can you try with it as well?

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    The error message shows involved JS file to be handle via boost. This doesn't make sense. So we currently have a deeper problem which s just triggered by antibot in this case.

    I'm still very busy in some customer projects. But soon I can invest some time to get this module stable.

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    Because I currently have to solve customer problem with css/js aggregation I took a deeper look inside the new strategy of the core with the routes 'system.css_asset' and system.js_asset ("core/modules/system/src/Routing/AssetRoutes.php"). The core is now acting a little bit like the boost module is doing. It first tries to deliver existing files, generates if needed and finally dumps them to file system. On a first step we should just exclude this routes from caching because the core already creates static files. Maybe it makes sense to include them with some configurable logic in future.

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    Beside my thoughts above about CSS/JS aggregation there is alos an impact of webserver configuration and core version.
    @Orkut Murat Yılmaz Can you please add some information about core version and webserver configuration which helps to reproduce this specific situation.

  • Status changed to Closed: works as designed 12 months ago
  • 🇹🇷Turkey orkut murat yılmaz Istanbul

    I've re-installed the boost module with applying the patch on this issue 🐛 PHP Fatal Error after drush cex RTBC . This time it worked perfect.

    My configuration is:

    Drupal 10.2.0
    Boost 8.x-1.x-dev (with the patch I've mentioned above)
    Web Server: nginx/1.24.0
    DB: PostgreSQL 15.5
    PHP: 8.1.27

    Thank you @C-Logemann, for reminding and for your efforts too. I guess that we can close this issue now.

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    @Orkut Murat Yılmaz Good that your system is working with the patch. But your error message showed me some potential problems we need to check and fix if needed. For this I created an new issue: 📌 Core 10.1 follow up: check and update event handler to avoid css/js Active

Production build 0.71.5 2024