Passing non ascii/special character can cause a database exception in the menu active trail

Created on 12 October 2015, almost 9 years ago
Updated 14 February 2023, over 1 year ago

Problem/Motivation

\Drupal\system\Tests\Menu\MenuRouterTest::doTestExoticPath uses a pretty exotic path,
but this causes a database exception:
[12-Oct-2015 13:03:48 Europe/Berlin] Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC3\xA9\xC3\xB8\xC3\xAF...' for column 'name' at row 1: INSERT INTO {semaphore} (name, value, expire) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array

Given that this URL could be passed in by the user, this could be problematic.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

9.5

Component
Menu systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany dawehner

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    There is only one report of this problem, from 8 years ago. Hopefully, this has been resolved in the meantime. Steps to reproduce were asked for 10 months ago. Since that information is needed to investigate this I am closing this issue.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue β†’ (starting from "Install Drupal core").

Production build 0.71.5 2024