Bug #42082

uriFor in subrequest does override explicit empty subpackageKey

Added by Christopher Hlubek almost 3 years ago. Updated almost 3 years ago.

Status:Resolved Start date:2012-10-17
Priority:Must have Due date:
Assigned To:Christopher Hlubek % Done:

100%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:Git 1.2 (master)

Description

This is a bug that was probably introduced or noticed after change Iae8a2a8a39d47d7e99743d78188dccdd4238ccfb.

This causes a problem in ExtDirect subrequests that generate URLs to Controllers not inside a subpackage because the subpackageKey from the current request will always be used (e.g. Service\ExtDirect\V1).

Associated revisions

Revision 8ebb3f6e
Added by Christopher Hlubek almost 3 years ago

[BUGFIX] Respect explicit empty subpackage in uriFor with subrequests

This change just checks for the empty string in the routing arguments and
sets a controller argument for building the URL. That way no subpackage
argument will be overriden from the subrequest.

Change-Id: Ie7be696c6de415e2fa0277c33065074bfd5b3efd
Fixes: #42082
Releases: 1.2

History

#1 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15764

#2 Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15764

#3 Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15764

#4 Updated by Christopher Hlubek almost 3 years ago

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

Also available in: Atom PDF