Bug #88291

Exception thrown if slash in route field of PersistedPatternMapper aspect

Added by Daniel Reichel 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-05-07
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In my site configuration I have configured a aspect of type PersistedPatternMapper for the detail view of a record of my custom extension.
If the configured route field contains a slash, a error occurs in the frontend.

Exception thrown in frontend

You can reproduce the bug using the news extension. I know, the news extension has a slug field but my custom extension which you dont't have has not.
This is the site configuration:

routeEnhancers:
  NewsPlugin:
    type: Extbase
    extension: News
    plugin: Pi1
    routes:
      - { routePath: '/news/{news}', _controller: 'News::detail', _arguments: {'news': 'news_title'} }
    defaultController: 'News::detail'
    aspects:
      news:
        type: PersistedPatternMapper
        tableName: 'tx_news_domain_model_news'
        routeFieldPattern: '^(?P<title>.+)-(?P<uid>\d+)$'
        routeFieldResult: '{title}-{uid}'

exception.jpg View - Exception thrown in frontend (137 KB) Daniel Reichel, 2019-05-07 13:40


Related issues

Related to TYPO3 Core - Bug #86596: Slash in Page Title still in URL Closed 2018-10-08
Related to TYPO3 Core - Bug #87667: Replacements not applied for existing slug Needs Feedback 2019-02-06
Related to TYPO3 Core - Bug #87656: Slugs error if title has "/" in extbase extension Closed 2019-02-05

History

#1 Updated by Daniel Reichel 6 months ago

  • Related to Bug #86596: Slash in Page Title still in URL added

#2 Updated by Daniel Reichel 6 months ago

  • Related to Bug #87667: Replacements not applied for existing slug added

#3 Updated by Daniel Reichel 6 months ago

  • Related to Bug #87656: Slugs error if title has "/" in extbase extension added

#4 Updated by Bastian Bringenberg 6 months ago

  • Project changed from forge.typo3.org to TYPO3 Core
  • TYPO3 Version set to 9

Moved Project.

#5 Updated by Riccardo De Contardi 6 months ago

  • Category set to Link Handling, Site Handling & Routing

Also available in: Atom PDF