Bug #36637

AdviceChain works with the wrong proxy instance in some cases

Added by Andreas Förthner about 1 year ago. Updated about 1 year ago.

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

100%

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

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 about 1 year 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

Updated by Gerrit Code Review about 1 year 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

Updated by Gerrit Code Review about 1 year ago

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

Updated by Andreas Förthner about 1 year ago

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

Also available in: Atom PDF