-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot build interceptor code for private method BrowserState::initializeData() #2190
Comments
Related to #2131 (BUGFIX: Disallow advising of private methods) |
Put this in Neos, as it is exposed by a Flow change, but seems to originate in Neos.Media… |
|
Thanks for the trace! But as I feared, not helpful. 😞 |
Yeah, we need to find the aspect that targets this class. The expression is probably too loose and accidentially targets the Edit: Can't find anything in Neos.Media and Neos.Media.Browser - so another package that AOPs the Media Browser? |
The stack trace helped me a little :) |
OK, it's because we include private methods in flow-development-collection/Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php Lines 50 to 70 in e13e76d
|
Adding some if (!is_callable([$className, $methodName])) {
return false;
} there seems to do the trick but I'm not sure if that's the best way to go |
That being said, in flow-development-collection/Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php Line 65 in d291ccf
^(?:__wakeup|__construct|__destruct|__sleep|__serialize|__unserialize|__clone|shutdownObject|initializeObject|inject.*)$ (added grouping), to make ^ and $ work with all alternatives!
|
It's in Flow, after all, so I moved the issue. |
..good call (both) |
|
good point.. maybe check for private scope explicitly |
@kdambekalns @albe This issue is assigned to the three of us for some reason. |
I assigned it to us, since we discussed it this morning. Didn't @kitsunet mention he might be able to look into it? |
I'll work on this now. |
The matches() method did not skip private methods, so Flow tried to build interceptors for them. That breaks as of the bugfix in neos/flow-development-collection#2131, leading to neos/flow-development-collection#2190 Fixes #2190
Description
Updated a new Neos instance (Neos 5.3.0 and Flow 6.3.1 => 6.3.2) and ran ./flow package: rescan. Get the following error.
Affected Versions
Neos: 5.3.0
Flow: 6.3.2
The text was updated successfully, but these errors were encountered: