Bug #36637

AdviceChain works with the wrong proxy instance in some cases

Added by Andreas Förthner over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2012-04-26
Priority:Should have Due date:
Assigned To:Andreas Förthner % Done:

100%

Category:AOP
Target version:TYPO3 Flow Base Distribution - 1.1 beta 1
PHP Version: Complexity:easy
Has patch:No Affected Flow version:Git master

Description

As the AdviceChain gets its proxy by a constructor argument, it might work on the wrong instance if the advice is used in different instances of the same object type. To solve this, the advice chain should always fetch the proxy instance from the current joinpoint.

Associated revisions

Revision 7a79ea2c
Added by Andreas Förthner over 3 years ago

[BUGFIX] AdviceChain has to take the proxy from the joinpoint

The advice chain object got its proxy instance in the constructor,
which was possibly not the correct instance for a given joinpoint.
This change removes the constructor parameter and fetches the proxy
instance always from the current joinpoint.

Change-Id: I4df61c9ff73c0890555270bcc92a007dbe5c4a70
Resolves: #36637

History

#1 Updated by Gerrit Code Review over 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/10803

#2 Updated by Gerrit Code Review over 3 years ago

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

#3 Updated by Andreas Förthner over 3 years ago

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

Also available in: Atom PDF