An update to symfony/http-foundation plus a trailing space took down the views UI

Created on 7 November 2024, 2 months ago

Problem/Motivation

symfony/http-foundation released a security update so we updated our Drupal 10.3 site to version 6.4.14 from 6.4.12. Here is the diff.

We noticed that after doing that the site worked by the Views page /admin/structure/views was not loading and this error appeared in watchdog:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Invalid URI: A URI must not start nor end with ASCII control characters or spaces. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /var/www/vendor/symfony/http-kernel/HttpKernel.php).

Turns out a trailing space in one of our view's paths caused the above error. That error was a new exception that was added to symfony/http-foundation. So I think Views UI potentially should be looking for bad characters and fail more gracefully. I am not sure if this affects Drupal 11 yet but will try that next.

Steps to reproduce

1. Create a view and add a trailing space to the path.
2. Update to latest version of symfony/http-foundation.
3. Try to load /admin/structure/views.

Proposed resolution

TBD

Remaining tasks

Test against Drupal 11.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.3

Component

views_ui.module

Created by

🇺🇸United States dmundra Eugene, OR

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024