Skip to content
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

Notes and Questions Pages Returning Error Pages #11355

Closed
TildaDares opened this issue Aug 14, 2022 · 8 comments
Closed

Notes and Questions Pages Returning Error Pages #11355

TildaDares opened this issue Aug 14, 2022 · 8 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@TildaDares
Copy link
Member

Existing notes/questions and newly created notes/questions display an error page when you try to access them.

The console returns this error
Psych::DisallowedClass (Tried to load unspecified class: ActiveSupport::HashWithIndifferentAccess):

I get the same error on the stable server.

Cc @jywarren @cess

Screen.Recording.2022-08-14.at.19.32.35.mov
@TildaDares TildaDares added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label Aug 14, 2022
@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

Thank you, noticed this on stable as well: https://stable.publiclab.org/notes/juan/6-5-2012/fabaoutfit-vertical-kap-and-bap

@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

I believe this relates to YAML access security rules which have broken lots of things in Rails recently: #11274

@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

I'll try adding ActiveSupport::HashWithIndifferentAccess to the allowed list

@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

# These are required to load classes into YAML, eg /test/fixtures/user_tags.yml#L129
config.active_record.yaml_column_permitted_classes = [
OAuth::AccessToken,
OAuth::Consumer,
Symbol,
Net::HTTP,
OpenSSL::SSL::SSLContext,
OpenSSL::SSL::Session,
URI::HTTPS,
URI::RFC3986_Parser,
Regexp,
Net::HTTPOK,
ActiveSupport::HashWithIndifferentAccess
]

It's there - i'll copy it into production. Unfortunately we use lots of classes in YAML as part of config.

jywarren added a commit that referenced this issue Sep 6, 2022
@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

Made the change here: befb024

We'll monitor the URL at https://stable.publiclab.org/notes/juan/6-5-2012/fabaoutfit-vertical-kap-and-bap

@jywarren
Copy link
Member

jywarren commented Sep 6, 2022

I believe this is resolved now!

jgreidy added a commit to cul-it/blacklight-cornell that referenced this issue Sep 16, 2022
…gController#index Tried to load unspecified class: ActiveSupport::HashWithIndifferentAccess

publiclab/plots2#11355
@cesswairimu
Copy link
Collaborator

I got this locally, adding Jeff's change on the dev config fixed it. I will make an fto for it

cesswairimu added a commit that referenced this issue Sep 30, 2022
cesswairimu pushed a commit that referenced this issue Oct 2, 2022
* Changes of #11355 done.

Changes mentioned in #11355 issue are done as mentioned.

* Common Fixes

Fixed the errors mentioned previously by @cesswairimu.
@cesswairimu
Copy link
Collaborator

fto compeleted in #11453. closing this, thanks all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed
Projects
None yet
Development

No branches or pull requests

3 participants