URI Too Long when trying to page selection on content browser modal

Created on 11 October 2023, 9 months ago
Updated 20 November 2023, 7 months ago

Problem/Motivation

I have an issue where the pager in the content browser modal fails due to receiving an Ajax error from Apache. Request-URI Too Long

Here is the error with the URL sanitized -

Uncaught 
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 414\nDebugging information follows.\nPath: /views/ajax?uuid=a3619d5a37fb37c64d9aa8edbad2a8e99092ce40&original_path=/admin/structure/entityqueue/electric_utility_page/electric_issues\nStatusText: Request-URI Too Long\nResponseText: \n414 Request-URI Too Long\nRequest-URI Too Long\nThe requested URL's length exceeds the capacity\nlimit for this server.\nApache/2.4.52 (Ubuntu) Server at www.example.com Port 443\n", name: "AjaxError", stack: "@https://www.example.com/sites/default/files/js/js_p7jUkkSlFK5bjQbCWkggzNHH1Qs4ZI9yb2vlpmPvPWY.js?scope=footer&delta=0&language=en&theme=bootstrap_5&include=eJx9UlF2gyAQvBCBr56Ht-BGNwJr2TWJPX1Rkzax7_VHh9kRZkYiV3SXzxnrYqBQBkUPZXEPbGBW9gNSP6hb8Q7faCqkBIm-0MQRO1KunkqHRUPiOLoXbOJ6XFfnCZKdKvcVRRpZFO86Q3qOfplTojKKOTcCbiic0b1gK9f-v5mVgbLpmfu0xoK0KEVxR2K3dZFTZB4JTeYOkp-gR7fB0wqNcGwxfW4RwW-23F_K6oC5aRdRzC6AoOEYfWBW0QqT_3CiS8K3JiAqXXGLalrs9f0cPZa_zUJsX3bExf0ge65rX6Vrm6YEk9BefKJQoRKKlUQdnjA1a0UPqtWIaTTp4kPlm2B178v9BxX9GWcQLu3CHPkr4c2sD9mg2Nbe_MxKTVtb43a_bfbMNb-J4QL3XRogjoFLq3FoHQ-yaw8et8MOnEIQE6j3E01tmwf4Bk-yItA:51:2411\n@https://www.example.com/sites/default/files/js/js_p7jUkkSlFK5bjQbCWkggzNHH1Qs4ZI9yb2vlpmPvPWY.js?scope=footer&delta=0&language=en&theme=bootstrap_5&include=eJx9UlF2gyAQvBCBr56Ht-BGNwJr2TWJPX1Rkzax7_VHh9kRZkYiV3SXzxnrYqBQBkUPZXEPbGBW9gNSP6hb8Q7faCqkBIm-0MQRO1KunkqHRUPiOLoXbOJ6XFfnCZKdKvcVRRpZFO86Q3qOfplTojKKOTcCbiic0b1gK9f-v5mVgbLpmfu0xoK0KEVxR2K3dZFTZB4JTeYOkp-gR7fB0wqNcGwxfW4RwW-23F_K6oC5aRdRzC6AoOEYfWBW0QqT_3CiS8K3JiAqXXGLalrs9f0cPZa_zUJsX3bExf0ge65rX6Vrm6YEk9BefKJQoRKKlUQdnjA1a0UPqtWIaTTp4kPlm2B178v9BxX9GWcQLu3CHPkr4c2sD9mg2Nbe_MxKTVtb43a_bfbMNb-J4QL3XRogjoFLq3FoHQ-yaw8et8MOnEIQE6j3E01tmwf4Bk-yItA:51:19298\n" }
5 js_p7jUkkSlFK5bjQbCWkggzNHH1Qs4ZI9yb2vlpmPvPWY.js:51:2411

Steps to reproduce

I just created a content browser and in the content browser view keep the default pager. When you try to page it sends a ridiculously long URI to Apache resulting in an AJAX Error. I haven't tried to recreate this yet from a clean install to ensure that there wasn't something specific to my site that was causing this error to manifest or if the pager will always fail within the content browser modal.

Proposed resolution

Possible rewrite to use the ViewsAjaxController to avoid running into this error - got this suggestion from - https://www.drupal.org/project/viewsreference/issues/3364798 πŸ› Views reference is adding many query string variables to the pager URLs RTBC - since it is a similar views based module running into a similar error.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robbt

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

Comments & Activities

Production build 0.69.0 2024