Project

General

Profile

Actions

Bug #88291

closed

Exception thrown if slash in route field of PersistedPatternMapper aspect

Added by Daniel Reichel over 5 years ago. Updated over 4 years ago.

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

100%

Estimated time:
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}'

Files

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

Related issues 7 (1 open6 closed)

Related to TYPO3 Core - Bug #86596: Slash in Page Title still in URLClosed2018-10-08

Actions
Related to TYPO3 Core - Bug #87667: Replacements not applied for existing slugNew2019-02-06

Actions
Related to TYPO3 Core - Bug #87656: Slugs error if title has "/" in extbase extensionClosed2019-02-05

Actions
Related to TYPO3 Core - Bug #87333: Slug fieldSeparator default value collides with symfony strict requirementsClosed2019-01-05

Actions
Related to TYPO3 Core - Bug #89263: TCEMAIN.preview doesn't work for routed controller with empty argumentsClosed2019-09-25

Actions
Related to TYPO3 Core - Bug #90531: Requirements are not considered when an aspect is presentClosed2020-02-25

Actions
Related to TYPO3 Core - Feature #90814: Allow slash in routeFieldResult and routeFieldPattern to allow optional pathsClosed2020-03-23

Actions
Actions #1

Updated by Daniel Reichel over 5 years ago

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

Updated by Daniel Reichel over 5 years ago

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

Updated by Daniel Reichel over 5 years ago

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

Updated by Bastian Bringenberg over 5 years ago

  • Project changed from 9 to TYPO3 Core
  • TYPO3 Version set to 9

Moved Project.

Actions #5

Updated by Riccardo De Contardi over 5 years ago

  • Category set to Site Handling, Site Sets & Routing
Actions #6

Updated by Christian Eßl almost 5 years ago

  • Related to Bug #87333: Slug fieldSeparator default value collides with symfony strict requirements added
Actions #7

Updated by Christian Eßl almost 5 years ago

  • Related to Bug #89263: TCEMAIN.preview doesn't work for routed controller with empty arguments added
Actions #8

Updated by Christian Eßl almost 5 years ago

  • Related to Bug #90531: Requirements are not considered when an aspect is present added
Actions #9

Updated by Gerrit Code Review almost 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63529

Actions #10

Updated by Gerrit Code Review almost 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63529

Actions #11

Updated by Gerrit Code Review almost 5 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63529

Actions #12

Updated by Gerrit Code Review almost 5 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63529

Actions #13

Updated by Gerrit Code Review over 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63655

Actions #14

Updated by Christian Eßl over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Patrick Crausaz over 4 years ago

  • Related to Feature #90814: Allow slash in routeFieldResult and routeFieldPattern to allow optional paths added
Actions #16

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF