Bug #90731

Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain"

Added by Jan Kornblum 28 days ago. Updated 28 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Start date:
2020-03-11
Due date:
% Done:

0%

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

Description

A page containing an extbase plugin (list + show action) is mounted into another domain.

Domain A (Site configuration)
    - Page AA
    - Page AB - Events (Extbase Plugin with "List" + "Show" Action)
Domain B (Site configuration)
    - Page BA
    - Page BC - Events (Mountpage: "Show the mounted page", Mountpid: "Page AB")

Coming from "list" action a call to "show" action causes an error "ID was outside the domain". The link is like this:

<f:link.action pluginName="Event" controller="Event" action="show" arguments="{event: event}">

I've figured out that as soon as the "event" argument is removed, no error occures any more. So i believe this might be a bug.

History

#1 Updated by Jan Kornblum 28 days ago

Figured out something more... As soon as the route enhancer configuration is removed, everything works fine. But i don't believe the configuration itself is wrong regarding this issue:

routeEnhancers:
  EventShow:
    type: Extbase
    extension: Example
    plugin: Event
    routes:
      - { routePath: '/{event_title}', _controller: 'Event::show', _arguments: {event_title: event} }
    defaultController: 'Event::list'
    aspects:
      event_title:
        type: PersistedAliasMapper
        tableName: tx_example_domain_model_event
        routeFieldName: slug    

#2 Updated by Jan Kornblum 28 days ago

  • Subject changed from Mounted page + Extbase plugin link + Error "ID was outside the domain" to Mounted page + RouteEnhancer (Extbase Plugin) + Error "ID was outside the domain"

#3 Updated by Jan Kornblum 28 days ago

  • Subject changed from Mounted page + RouteEnhancer (Extbase Plugin) + Error "ID was outside the domain" to Mountpoint + Route Enhancer (Extbase Plugin) + Error "ID was outside the domain"

Also available in: Atom PDF