Bug #87653

cHash error with extbase plugin and routeEnhancer

Added by Alexander Vogt 12 days ago. Updated 1 day ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-02-05
Due date:
% Done:

0%

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

Description

I get the following error message after calling a mapped news detail URL: "Request parameters could not be validated (&cHash empty)".

Url generation:

<f:link.action action="show" arguments="{article: record}">text</f:link.action>

Route enhancer:

routeEnhancers:
  newsdetail:
    type: Extbase
    extension: Demo
    plugin: Newsdetail
    routes:
      -
        routePath: '/detail/{news_title}'
        _controller: 'News::show'
        _arguments:
          news_title: article
    defaultController: 'News::show'
    aspects:
      news_title:
        tableName: tx_demo_domain_model_newsarticle
        routeFieldName: slug
        routeValuePrefix: /
    limitToPages:
      - 55

Generated url: /de/news/detail/demo-article-title

How can i solve this? I am currently using the setting "feature.requireCHashArgumentForActionArguments = 0" to avoid this issue.

History

#1 Updated by Alexander Vogt 1 day ago

I have solved the issue. The error has occurred due to a "config.defaultGetVars" config.

#2 Updated by Markus Klein 1 day ago

  • Status changed from New to Closed

Also available in: Atom PDF