Bug #90731

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

Added by Jan Kornblum 8 months ago. Updated 5 months ago.

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

100%

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.


Related issues

Related to TYPO3 Core - Bug #91427: Mountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist" Closed 2020-05-18

Associated revisions

Revision ba457e83 (diff)
Added by Benni Mack 5 months ago

[BUGFIX] Enable Enhancer support for MountPoints

When using e.g. PageTypeDecorator in conjunction with mountpoints
and other Enhancers, the MP parameter was not added to the
resulting PageArguments object.

In addition, when building up a RouteCollection internally, the
same page was used multiple times but was overridden with a
MountPoint argument, adding to the "last principle wins" concept.

The patch adapts the needed changes.

Resolves: #90731
Releases: master, 9.5
Change-Id: Ic8c70dd51dc37617ba97cace3b9bec63512ecad6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64403
Tested-by: Jan Kornblum <>
Tested-by: TYPO3com <>
Tested-by: Oliver Hader <>
Tested-by: Benni Mack <>
Reviewed-by: Jan Kornblum <>
Reviewed-by: Oliver Hader <>
Reviewed-by: Benni Mack <>

Revision 49096b07 (diff)
Added by Benni Mack 5 months ago

[BUGFIX] Enable Enhancer support for MountPoints

When using e.g. PageTypeDecorator in conjunction with mountpoints
and other Enhancers, the MP parameter was not added to the
resulting PageArguments object.

In addition, when building up a RouteCollection internally, the
same page was used multiple times but was overridden with a
MountPoint argument, adding to the "last principle wins" concept.

The patch adapts the needed changes.

Resolves: #90731
Releases: master, 9.5
Change-Id: Ic8c70dd51dc37617ba97cace3b9bec63512ecad6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64367
Tested-by: TYPO3com <>
Tested-by: Benni Mack <>
Reviewed-by: Benni Mack <>

History

#1 Updated by Jan Kornblum 8 months 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 8 months 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 8 months 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"

#4 Updated by Gerrit Code Review 6 months ago

  • Status changed from New to Under Review

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/+/64403

#5 Updated by Gerrit Code Review 5 months 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/+/64367

#6 Updated by Benni Mack 5 months ago

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

#7 Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed

#8 Updated by Jan Kornblum 5 months ago

  • Related to Bug #91427: Mountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist" added

#9 Updated by Jan Kornblum 5 months ago

  • Related to deleted (Bug #91427: Mountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist")

#10 Updated by Jan Kornblum 5 months ago

  • Related to Bug #91427: Mountpoint + Route Enhancer (Extbase Plugin Enhancer) + Error "The requested page does not exist" added

Also available in: Atom PDF