Looks like this is still the case with Drupal 11.0.1 too. I just tested this on a standard install of Drupal 11 with only media en media_browser enabled as extra.
When filtering and paginating, the query parameters are duplicated. resulting in a "request URI too long" error on our firewall.
From 10.2.3 onwards this is a problem for all our site's. I found a lot of issues regarding this but all proposed solutions do not work.
Could this be a nginx problem? But I tried this on a docker-drupal setup with apache and it's the same there.
I just don't know where to look in ajax code. Please advise. Thank you.
@gwvoigt, what patch did you applied for Drupal 10.2.7? Thank you
I have the same issue as @useernamee that the query parameter is too long. Ajax query parameters are duplicated on each request. Media browser popup with an exposed filter active and going to page 2 triggers the web application firewall error that the request entity is too long. This is also with a clean core install of Drupal 10.2.7 and besides media and media browser no extra other modules installed. I have that issue on local machine too. Browsed trough all of the issues about that but no luck finding a working patch. Please advise.
I have the same issue as #56 🐛 Query string is appended multiple time after each AJAX request Needs work on 10.2.5. The query parameters are duplicated and is too long for our WAF policy.
I am not using facets module.
Patches I have tried:
- Ajax Pager broken after upgrade 10.0.9 to 10.1.2 🐛 Ajax Pager broken after upgrade 10.0.9 to 10.1.2 Needs work
- 📌 Compress ajax_page_state Fixed
- Ajax attached to Views exposed filter form does not trigger callbacks 🐛 Ajax attached to Views exposed filter form does not trigger callbacks Needs work
- Page index isn't reset when use AJAX for Views module 🐛 Pagination not working correctly in AJAX view with exposed filters Needs review
- The patch from #49 🐛 Query string is appended multiple time after each AJAX request Needs work does not work on 10.2.5
I am using version 8.x-1.3 with php version 8.1.10 and Drupal core 9.5.8. The x-Frame-Options is always set as SAMEORIGIN. No matter what setting I use in the module.
Hi
Can you provide an example of updating facet fields based on form states with ajax? I am using the FacetsManager class.
Saying you have a facet id "job_type". and based on that value, the location will change.
I can't seem to figure it out. My code gives an error "Call to a member function getFacetSourceId() on string"
<?php
$facetsource_id = 'search_api:views_page__job_search__page_1';
$jobDefault = 'Administrator';
$facets = $this->facetsManager->getFacetsByFacetSourceId($facetsource_id);
if($jobDefault) {
$this->facetsManager->setFacets(['job_type' => $jobDefault]);
}
$this->facetsManager->updateResults($facetsource_id); // Gives an error in the facet Class "DefaultFacetManager". "Call to a member function getFacetSourceId() on string"
?>
Above code lives in buildForm method.
My FacetManager is correctly declared.
I have also a declaration of "FacetsUrlGenerator". But I have no idea what to do with it.
How can I retrieve the correct facet values for both job_type and location?
Thank you.
I have the same error as #110 🐛 Error generating document: Failed to generate PDF with DOMPDF Needs work With patch from 118 and entity_print 2.11 and dompdf v1.2.2 as v2.0.1. But even with dompdf v2.0.1 it's not working.