-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error on Raygun.cfc Line 260: "java.lang.UnsupportedOperationException" when using contentFilter #58
Comments
Another way that fixes the issue is wrapping return on RaygunClient.cfc line 168, with duplcate():
|
@gedas20 I can't reproduce this issue: Say, I have
I know that
Tried with ACF@2018, ACF@2021, Lucee 5.4 |
This is interesting, after applying the fix for #57, i tried to reproduce #58 again, and same as you i could not reproduce it. So i figured maybe the #57 fix has something to do with this, cause the messageData goes trough nultiple cfc as it gets build. So try reverting #57 and see if you can reproduce this bug. |
Yeah, ok - I see what that issue is now. This happens if there's not at least a Just another really weird behaviour from ACF - it seems that |
) * Fixes 2 issues found when using RG4CFML in a new project (#3) * Fixing some small issues * Setting version to 1.7.0-SNAPSHOT * Feature/#56 java memory management (#4) * Documenting the issue from the OP in the ticekt. * Wrapping access to getMemoryXBean into try/catch. * Test scenario and fix. (#5) * Changed supported versions of ACF/Lucee * fix: applyFilter deep search (#6) * Fixes core problem in #62. * Testcase * Prep for 1.7.0 release * Test for GH #58 * Documentation/Changelog updates
Using ColdFusion 2018.
When attempting to use the contentFilter parameter in the RaygunClient.cfc component, an error occurs on line 260, throwing a "java.lang.UnsupportedOperationException." The issue arises when the key specified in matcher.filter doesn't exist in element.owner.
Steps to Reproduce:
Instantiate the RaygunClient with a contentFilter containing a filter-replacement pair.
Trigger an error, such as sending an exception to Raygun using raygun.send().
Expected Behavior:
The structFindKey function should return an empty array if the specified key is not found in arguments.messageData.
Actual Behavior:
structFindKey returns an array with a struct even if the key is not present, leading to an "UnsupportedOperationException" on line 260.
If arguments.messageData is duplicated before the structFindKey call (e.g., arguments.messageData = duplicate(arguments.messageData);), the issue does not occur.
The text was updated successfully, but these errors were encountered: