-
Notifications
You must be signed in to change notification settings - Fork 336
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
Psych::DisallowedClass: Tried to load unspecified class: Symbol #374
Comments
It is mentioned that you can allow specific classes with: config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time] Does that help? |
I have an app with both |
We realized the However, we are still concerned about this problem because some other classes also can cause this problem again. |
I am a bit worried about what data is accepted inside |
The same data as in Hash, this is just a wrapper. And regarding the fix in the second comment, yes this is the only way to do it - you have to whitelist explicitly. This breaks Rails apps even without public_activity. |
From what I'm seeing this `Psych::DisallowedClass` error is somewhat common, I fixed/addressed it by allowiing the classes the error was complaining about, as show in these links: - ruby/psych#564 - https://stackoverflow.com/q/71332602 - public-activity/public_activity#374 Refs: #4366
From what I'm seeing this `Psych::DisallowedClass` error is somewhat common, I fixed/addressed it by allowiing the classes the error was complaining about, as show in these links: - ruby/psych#564 - https://stackoverflow.com/q/71332602 - public-activity/public_activity#374 Refs: #4366
I updated rails to 7.0.3.1 ([CVE-2022-32224] Possible RCE escalation bug with Serialized Columns in Active Record )
now I have this issue:
`Failure/Error: @casting.create_activity(key: "xxx", owner: current_user, parameters: { email_subject: 'xxx' })
The text was updated successfully, but these errors were encountered: