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

explicitly use Jbuilder for work-type json responses #680

Merged
merged 4 commits into from
Jan 19, 2021

Conversation

rococodogs
Copy link
Member

the default hyrax behavior (found in hyrax/app/views/hyrax/base/show.json.jbuilder) doesn't perform any sanitation on the values, and RDF::Literal or RDF::URI (i'm not really sure which or both?) values will send Rails into a tailspin and crash with a Stack level too deep error. by explicitly declaring the fields, and running possible problems through some base sanitation, we can side-step this.

@rococodogs rococodogs merged commit 3712184 into develop Jan 19, 2021
@rococodogs rococodogs deleted the bugfix/json-stack branch January 19, 2021 21:05
@rococodogs rococodogs mentioned this pull request Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant